diff options
author | root <root@no.no.james.local> | 2015-09-01 15:12:05 +0100 |
---|---|---|
committer | root <root@no.no.james.local> | 2015-09-01 15:12:05 +0100 |
commit | b9b824c9203a0ea331b6f33da642aeacdccd8332 (patch) | |
tree | 6a7b38b7faf8e318eea704fb67ef24688f1f8854 | |
parent | 3bfb43d37968a143bfb65d52ab9fb7e7ee7d8ad0 (diff) | |
download | nrfdfu-b9b824c9203a0ea331b6f33da642aeacdccd8332.tar.gz nrfdfu-b9b824c9203a0ea331b6f33da642aeacdccd8332.tar.bz2 nrfdfu-b9b824c9203a0ea331b6f33da642aeacdccd8332.zip |
fish
-rw-r--r-- | Makefile.am | 74 | ||||
-rw-r--r-- | configure.ac | 36 |
2 files changed, 110 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..c4f168d --- /dev/null +++ b/Makefile.am @@ -0,0 +1,74 @@ +# +# +# Makefile.am: +# +# Copyright (c) 2015 James McKenzie <software@madingley.org>, +# All rights reserved. +# +# +# +man1_MANS=nrfdfu.man + +INCLUDES= ${BLUEZ_CFLAGS} ${JSON_C_CFLAGS} ${LIBZIP_CFLAGS} + +noinst_HEADERS= prototypes.h ${CHDRS} ${BLUEZ_HDRS} + +bin_PROGRAMS = nrfdfu + +nrfdfu_SOURCES = ${SRCS} +nrfdfu_LDADD = ${BLUEZ_LIBS} ${JSON_C_LIBS} ${LIBZIP_LIBS} + +tidy: ${CSRCS} ${CHDRS} + indent -i2 -ts0 ${CSRCS} ${CHDRS} + /bin/rm -f *~ + +AM_CFLAGS=-g -Wall + + +CSRCS= \ + nrfdfu.c \ + util.c \ + zip.c \ + ble.c \ + manifest.c \ + dfu.c \ + hexdump.c + +CHDRS= \ + ble.h \ + dfu.h \ + manifest.h \ + project.h \ + +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 + +BLUEZ_HDRS= \ + bluez/att.h \ + bluez/att-types.h \ + bluez/crypto.h \ + bluez/gatt-client.h \ + bluez/gatt-db.h \ + bluez/gatt-helpers.h \ + bluez/io.h \ + bluez/mainloop.h \ + bluez/queue.h \ + bluez/timeout.h \ + bluez/util.h \ + bluez/uuid.h + +protos: + echo > prototypes.h + ${CPROTO} ${CPPFLAGS} -e -v ${CSRCS} > prototypes.new + mv prototypes.new prototypes.h + diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..18c4800 --- /dev/null +++ b/configure.ac @@ -0,0 +1,36 @@ +dnl +dnl +dnl configure.in: +dnl +dnl Copyright (c) 2015 James McKenzie <software@madingley.org>, +dnl All rights reserved. +dnl +dnl +AC_PREREQ(2.13) +AC_INIT(nrfdfu.c) + +AC_PROG_CC +AC_SYS_LARGEFILE + +VERSION=1.00 +PACKAGE=nrfdfu + +AM_INIT_AUTOMAKE($PACKAGE,$VERSION) + +AM_CONFIG_HEADER(config.h) + +AC_CHECK_PROG(CPROTO,cproto,cproto) + + +AC_CHECK_HEADERS(fcntl.h stdlib.h stdint.h unistd.h) + +AC_C_INLINE +AC_C_CONST +AC_HEADER_TIME +AC_STRUCT_TM +dnl AC_CHECK_FUNCS() + +dnl CFLAGS=-g + +AC_OUTPUT([Makefile]) + |