diff options
author | root <root@no.no.james.local> | 2015-09-01 10:10:22 +0100 |
---|---|---|
committer | root <root@no.no.james.local> | 2015-09-01 10:10:22 +0100 |
commit | 7e25356deec3369773e3949fe7336d84c10834c0 (patch) | |
tree | 19b4f4b2d1c56d4c33e30965dcb3405fb2aefc82 /Makefile | |
parent | 475922ce345bb0443cf4fdef00efa86676a1bf62 (diff) | |
download | nrfdfu-7e25356deec3369773e3949fe7336d84c10834c0.tar.gz nrfdfu-7e25356deec3369773e3949fe7336d84c10834c0.tar.bz2 nrfdfu-7e25356deec3369773e3949fe7336d84c10834c0.zip |
fish
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 + |