X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=blobdiff_plain;f=linux%2FMakefile;h=bbf694c8322dd050ce5c384446cd54a62ab597a1;hp=c23a47b6eeface90a477be7235c1bb76bfe7091e;hb=88d75c965a5e62e3de6a4b735ad6f39adf059ad8;hpb=a1d335a2895b04b965d678167ecfd14ab4245960 diff --git a/linux/Makefile b/linux/Makefile index c23a47b..bbf694c 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,16 +1,23 @@ -CFLAGS += -I$(BLUEZ) `pkg-config --cflags glib-2.0` +CFLAGS += -g -I$(BLUEZ) `pkg-config --cflags glib-2.0` \ + `pkg-config mariadb --cflags` LDLIBS = $(BLUEZ)/lib/.libs/libbluetooth-internal.a \ $(BLUEZ)/src/.libs/libshared-glib.a \ - `pkg-config --libs glib-2.0` + `pkg-config --libs glib-2.0` \ + `pkg-config mariadb --libs` all: pulsecounter -pulsecounter: pulsecounter.o \ +pulsecounter.o: pulsecounter.c dbstore.h + +dbstore.o: dbstore.c dbstore.h + +pulsecounter: pulsecounter.o dbstore.o \ $(BLUEZ)/attrib/att.o $(BLUEZ)/attrib/gatt.o \ $(BLUEZ)/attrib/gattrib.o $(BLUEZ)/btio/btio.o \ $(BLUEZ)/attrib/utils.o $(BLUEZ)/src/log.o $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ - -# $(BLUEZ)/attrib/interactive.o \ -# $(BLUEZ)/client/display.o +testconf: dbstore.c dbstore.h + $(CC) -g `pkg-config --cflags glib-2.0` `pkg-config mariadb --cflags` \ + -DTEST_CONFIG $< `pkg-config --libs glib-2.0` \ + `pkg-config mariadb --libs` -o $@