forked from CESARBR/knot-hal-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
85 lines (73 loc) · 2.71 KB
/
Makefile.am
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
78
79
80
81
82
83
84
85
# TODO: change this variables according to operating system
MKDIR=mkdir
CP=cp
ZIP=zip
AM_MAKEFLAGS = --no-print-directory
SUBDIRS = src/spi src/nrf24l01 src/hal/storage src/hal/time src/hal/log \
src/hal/comm src/drivers src/hal/gpio
AM_CFLAGS = $(WARNING_CFLAGS) $(BUILD_CFLAGS)
AM_LDFLAGS = $(BUILD_LDFLAGS)
bin_PROGRAMS = proxy/spiproxyd src/nrfd/nrfd src/lorad/lorad tools/sniffer tools/rpiecho \
src/seriald/seriald
proxy_spiproxyd_SOURCES = proxy/main.c
proxy_spiproxyd_LDADD = libs/libspi.a libs/libnrf24l01.a @GLIB_LIBS@
proxy_spiproxyd_LDFLAGS = $(AM_LDFLAGS)
proxy_spiproxyd_CFLAGS = $(AM_CFLAGS) @GLIB_CFLAGS@
src_nrfd_nrfd_SOURCES = src/nrfd/main.c \
src/nrfd/manager.h src/nrfd/manager.c
src_nrfd_nrfd_LDADD = libs/libhallog.a libs/libhalcommnrf24.a \
libs/libphy_driver.a \
libs/libhaltime.a \
libs/libhalstorage.a \
libs/libnrf24l01.a \
libs/libspi.a \
@GLIB_LIBS@ @JSON_LIBS@ \
@GIO_UNIX_LIBS@
src_nrfd_nrfd_LDFLAGS = $(AM_LDFLAGS)
src_nrfd_nrfd_CFLAGS = $(AM_CFLAGS) @GLIB_CFLAGS@ \
@GIO_UNIX_CFLAGS@ \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/nrf24l01 \
-I$(top_srcdir)/src/drivers \
-I$(top_srcdir)/src/hal/comm \
-I$(top_srcdir)/src/nrf24l01 @JSON_CFLAGS@
src_lorad_lorad_SOURCES = src/lorad/main.c
src_lorad_lorad_LDADD = @GLIB_LIBS@
src_lorad_lorad_LDFLAGS = $(AM_LDFLAGS)
src_lorad_lorad_CFLAGS = $(AM_CFLAGS) @GLIB_CFLAGS@
tools_sniffer_SOURCES = tools/sniffer.c
tools_sniffer_LDADD = libs/libphy_driver.a \
libs/libhalcommnrf24.a \
libs/libhaltime.a \
libs/libnrf24l01.a \
libs/libspi.a \
libs/libhallog.a \
@GLIB_LIBS@
tools_sniffer_LDFLAGS = $(AM_LDFLAGS)
tools_sniffer_CFLAGS = $(AM_CFLAGS) @GLIB_CFLAGS@ \
-I$(top_srcdir)/src/drivers -I$(top_srcdir)/src/hal/comm \
-I$(top_srcdir)/src/spi \
-I$(top_srcdir)/src/nrf24l01
tools_rpiecho_SOURCES = tools/rpiecho.c
tools_rpiecho_LDADD = libs/libphy_driver.a \
libs/libnrf24l01.a libs/libspi.a \
libs/libhaltime.a \
@GLIB_LIBS@
tools_rpiecho_LDFLAGS = $(AM_LDFLAGS)
tools_rpiecho_CFLAGS = $(AM_CFLAGS) @GLIB_CFLAGS@ \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/spi \
-I$(top_srcdir)/src/nrf24l01 \
-I$(top_srcdir)/nrf
src_seriald_seriald_SOURCES = src/seriald/main.c \
src/seriald/manager.h src/seriald/manager.c
src_seriald_seriald_LDADD = libs/libhalcommserial.a @GLIB_LIBS@
src_seriald_seriald_LDFLAGS = $(AM_LDFLAGS)
src_seriald_seriald_CFLAGS = $(AM_CFLAGS) @GLIB_CFLAGS@ \
-I$(top_srcdir)/src
DISTCLEANFILES =
MAINTAINERCLEANFILES = Makefile.in \
aclocal.m4 configure config.h.in config.sub config.guess \
ltmain.sh depcomp compile missing install-sh
clean-local:
$(RM) -r proxy/spiproxyd src/nrfd/nrfd src/lorad/lorad tools/rpiecho tools/sniffer