github.com/dolthub/go-mysql-server@v0.18.0/_integration/c/Makefile (about)

     1  #
     2  # Darwin: brew install mysql-connector-c
     3  # Linux:  apt-get install libmysqlclient-dev
     4  #
     5  CFLAGS=-Wall `mysql_config --cflags --libs`
     6  UNAME_S := $(shell uname -s)
     7  ifeq ($(UNAME_S),Darwin)
     8  		CFLAGS += mysqlclient
     9  endif
    10  
    11  %.c:
    12  	@echo CFLAGS: $(CFLAGS)
    13  	$(CC) *.c $(CFLAGS)
    14  
    15  test:	%.c
    16  	./a.out
    17  
    18  clean:
    19  	@rm -f *.o a.out
    20  
    21  .PHONY: test clean