]> www.average.org Git - pulsecounter.git/blob - linux/Makefile
fix total calculation for empty dataset
[pulsecounter.git] / linux / Makefile
1 CFLAGS += -g -I$(BLUEZ) `pkg-config --cflags glib-2.0` \
2         `pkg-config mariadb --cflags`
3 LDLIBS = $(BLUEZ)/lib/.libs/libbluetooth-internal.a \
4         $(BLUEZ)/src/.libs/libshared-glib.a \
5         `pkg-config --libs glib-2.0` \
6         `pkg-config mariadb --libs`
7
8 all: pulsecounter
9
10 pulsecounter.o: pulsecounter.c dbstore.h
11
12 dbstore.o: dbstore.c dbstore.h
13
14 pulsecounter: pulsecounter.o dbstore.o \
15         $(BLUEZ)/attrib/att.o $(BLUEZ)/attrib/gatt.o \
16         $(BLUEZ)/attrib/gattrib.o $(BLUEZ)/btio/btio.o \
17         $(BLUEZ)/attrib/utils.o $(BLUEZ)/src/log.o
18         $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
19
20 testconf: dbstore.c dbstore.h
21         $(CC) -g `pkg-config --cflags glib-2.0` `pkg-config mariadb --cflags` \
22                 -DTEST_CONFIG $< `pkg-config --libs glib-2.0` \
23                 `pkg-config mariadb --libs` -o $@