blob: 480e6d5548bb0465959619f914436b72e25dcec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#
#
# Makefile.am:
#
# Copyright (c) 2015 James McKenzie <software@madingley.org>,
# All rights reserved.
#
#
#
AUTOMAKE_OPTIONS = subdir-objects
man1_MANS=nrfdfu.man
bin_PROGRAMS = nrfdfu
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
AM_CPPFLAGS = ${BLUEZ_CFLAGS} ${JSON_C_CFLAGS} ${LIBZIP_CFLAGS}
noinst_HEADERS= prototypes.h ${CHDRS} ${BLUEZ_HDRS}
nrfdfu_SOURCES = ${CSRCS} ${BLUEZ_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
protos:
echo > prototypes.h
${CPROTO} ${AM_CPPFLAGS} -e -v ${CSRCS} > prototypes.new
mv prototypes.new prototypes.h
|