1 # linux/src/daemon/Makefile.am
3 # additional include paths necessary to compile the program
4 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
6 ###############################################################################
7 # THE PROGRAMS TO BUILD
8 ###############################################################################
10 # the program to build (the names of the final binaries)
11 bin_PROGRAMS =
13 if OMAP4430
14 bin_PROGRAMS += lad_omap4430
15 else
16 if OMAPL138
17 bin_PROGRAMS += lad_omapl138
18 else
19 if TCI6614
20 bin_PROGRAMS += lad_tci6614
21 else
22 if TCI6638
23 bin_PROGRAMS += lad_tci6638
24 else
25 bin_PROGRAMS += lad_omap4430 lad_omapl138 lad_tci6614 lad_tci6638
26 endif
27 endif
28 endif
29 endif
31 common_sources = \
32 lad.c \
33 MessageQ_daemon.c \
34 NameServer_daemon.c \
35 $(top_srcdir)/linux/include/Std.h \
36 $(top_srcdir)/linux/include/_NameServerRemoteRpmsg.h \
37 $(top_srcdir)/linux/include/_MessageQ.h \
38 $(top_srcdir)/linux/include/_NameServer.h \
39 $(top_srcdir)/linux/include/_MultiProc.h \
40 $(top_srcdir)/linux/include/_lad.h \
41 $(top_srcdir)/linux/include/SocketFxns.h \
42 $(top_srcdir)/linux/include/ladclient.h \
43 $(top_srcdir)/linux/include/net/rpmsg.h \
44 $(top_srcdir)/packages/ti/ipc/MessageQ.h \
45 $(top_srcdir)/packages/ti/ipc/NameServer.h \
46 $(top_srcdir)/packages/ti/ipc/MultiProc.h
48 # list of sources for the 'lad' binary and to add to the source distribution
49 lad_omap4430_SOURCES = $(common_sources)
50 lad_omapl138_SOURCES = $(common_sources)
51 lad_tci6614_SOURCES = $(common_sources)
52 lad_tci6638_SOURCES = $(common_sources)
54 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la $(top_builddir)/linux/src/utils/libtiipcutils.la
56 # the additional libraries needed to link program
57 lad_omap4430_LDADD = $(common_libraries) \
58 $(top_builddir)/linux/src/family/libtiipccfg_omap4430.la $(AM_LDFLAGS)
59 lad_omapl138_LDADD = $(common_libraries) \
60 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la $(AM_LDFLAGS)
61 lad_tci6614_LDADD = $(common_libraries) \
62 $(top_builddir)/linux/src/family/libtiipccfg_tci6614.la $(AM_LDFLAGS)
63 lad_tci6638_LDADD = $(common_libraries) \
64 $(top_builddir)/linux/src/family/libtiipccfg_tci6638.la $(AM_LDFLAGS)
66 ###############################################################################