7e23bf53dc5939cd426c2720c5397d0b103fb70f
[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
21 #       $(BLUEZ)/attrib/interactive.o \
22 #       $(BLUEZ)/client/display.o