From 7e25356deec3369773e3949fe7336d84c10834c0 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 1 Sep 2015 10:10:22 +0100 Subject: fish --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 + -- cgit v1.2.3