aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 08587b8..f4a387b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
CSRCS=nrfdfu.c util.c zip.c ble.c manifest.c dfu.c
+BLUEZ_SRCS=bluez/att.c bluez/queue.c bluez/crypto.c bluez/util.c bluez/io-mainloop.c bluez/timeout-mainloop.c bluez/mainloop.c bluez/gatt-db.c bluez/uuid.c bluez/gatt-client.c bluez/gatt-helpers.c
PROG=nrfdfu
OPT=-g
+WARN=-Wall
CPROTO=cproto
@@ -17,8 +19,8 @@ BLUEZ_LIBS=$(shell pkg-config --libs bluez)
INCLUDES=${ZIP_INCLUDES} ${JSON_C_INCLUDES} ${BLUEZ_INCLUDES}
LIBS=${ZIP_LIBS} ${JSON_C_LIBS} ${BLUEZ_LIBS}
CPPFLAGS=${DEFINES} ${INCLUDES}
-CFLAGS=${OPT}
-OBJS=${CSRCS:%.c=%.o}
+CFLAGS=${OPT} ${WARN}
+OBJS=${CSRCS:%.c=%.o} ${BLUEZ_SRCS:%.c=%.o}
all: ${PROG}
@@ -32,4 +34,8 @@ protos:
mv prototypes.new prototypes.h
clean:
- /bin/rm -f ${OBJS}
+ /bin/rm -f ${OBJS} ${PROG} *~ core.* core
+
+test: ${PROG}
+ ./${PROG} -b fd:f9:62:4a:8a:c8 -p test.zip
+