From db0ac71a71b4f4621a1128b1b663aa5081a2de10 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 1 Sep 2015 15:18:35 +0100 Subject: fish --- AUTHORS | 0 COPYING | 0 ChangeLog | 0 Makefile | 41 ----------------------------------------- NEWS | 0 README | 0 6 files changed, 41 deletions(-) create mode 100644 AUTHORS create mode 100644 COPYING create mode 100644 ChangeLog delete mode 100644 Makefile create mode 100644 NEWS create mode 100644 README diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..e69de29 diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/Makefile b/Makefile deleted file mode 100644 index 5566f0b..0000000 --- a/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -CSRCS=nrfdfu.c util.c zip.c ble.c manifest.c dfu.c hexdump.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 -ZIP_INCLUDES=$(shell pkg-config --cflags libzip) -ZIP_LIBS=$(shell pkg-config --libs libzip) -JSON_C_INCLUDES=$(shell pkg-config --cflags json-c) -JSON_C_LIBS=$(shell pkg-config --libs json-c) -BLUEZ_INCLUDES=$(shell pkg-config --cflags bluez) -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} ${WARN} -OBJS=${CSRCS:%.c=%.o} ${BLUEZ_SRCS:%.c=%.o} - - -all: ${PROG} - -${PROG}:${OBJS} - ${CC} ${CFLAGS} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBS} - -protos: - echo > prototypes.h - ${CPROTO} ${CPPFLAGS} -e -v ${CSRCS} > prototypes.new - mv prototypes.new prototypes.h - -clean: - /bin/rm -f ${OBJS} ${PROG} *~ core.* core - -test: ${PROG} - ./${PROG} -b fd:f9:62:4a:8a:c8 -p test.zip - diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3