]> www.average.org Git - pulsecounter.git/blobdiff - linux/Makefile
argh isspace(*smth)
[pulsecounter.git] / linux / Makefile
index c23a47b6eeface90a477be7235c1bb76bfe7091e..7e23bf53dc5939cd426c2720c5397d0b103fb70f 100644 (file)
@@ -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