X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=blobdiff_plain;f=linux%2FMakefile;h=7e23bf53dc5939cd426c2720c5397d0b103fb70f;hp=c23a47b6eeface90a477be7235c1bb76bfe7091e;hb=44a6bf988373b8f598481167da21504cd0118a2a;hpb=a1d335a2895b04b965d678167ecfd14ab4245960 diff --git a/linux/Makefile b/linux/Makefile index c23a47b..7e23bf5 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,11 +1,17 @@ -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