1 ##
2 ## Copyright (c) 2013, Texas Instruments Incorporated
3 ##
4 ## Redistribution and use in source and binary forms, with or without
5 ## modification, are permitted provided that the following conditions
6 ## are met:
7 ##
8 ## * Redistributions of source code must retain the above copyright
9 ## notice, this list of conditions and the following disclaimer.
10 ##
11 ## * Redistributions in binary form must reproduce the above copyright
12 ## notice, this list of conditions and the following disclaimer in the
13 ## documentation and/or other materials provided with the distribution.
14 ##
15 ## * Neither the name of Texas Instruments Incorporated nor the names of
16 ## its contributors may be used to endorse or promote products derived
17 ## from this software without specific prior written permission.
18 ##
19 ## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 ## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 ## THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 ## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 ## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 ## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 ## OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 ## WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 ## OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29 ## EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 ##
31 ## ======== src/daemon/Makefile.am ========
32 ##
34 # additional include paths necessary to compile the program
35 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
36 -I$(top_srcdir)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
38 ###############################################################################
39 # THE PROGRAMS TO BUILD
40 ###############################################################################
42 # the program to build (the names of the final binaries)
43 bin_PROGRAMS =
45 if OMAP54XX_SMP
46 bin_PROGRAMS += lad_omap54xx_smp
47 else
48 if DRA7XX
49 bin_PROGRAMS += lad_dra7xx
50 else
51 if OMAPL138
52 bin_PROGRAMS += lad_omapl138
53 else
54 if TCI6614
55 bin_PROGRAMS += lad_tci6614
56 else
57 if TCI6638
58 bin_PROGRAMS += lad_tci6638
59 else
60 if TCI6636
61 bin_PROGRAMS += lad_tci6636
62 else
63 bin_PROGRAMS += lad_omap54xx_smp lad_dra7xx lad_omapl138 lad_tci6614 lad_tci6636 lad_tci6638
64 endif
65 endif
66 endif
67 endif
68 endif
69 endif
71 common_sources = \
72 lad.c \
73 MessageQ_daemon.c \
74 MultiProc_daemon.c \
75 NameServer_daemon.c \
76 $(top_srcdir)/linux/include/ti/ipc/Std.h \
77 $(top_srcdir)/hlos_common/include/_NameServerRemoteRpmsg.h \
78 $(top_srcdir)/hlos_common/include/_MessageQ.h \
79 $(top_srcdir)/hlos_common/include/_NameServer.h \
80 $(top_srcdir)/linux/include/_MultiProc.h \
81 $(top_srcdir)/linux/include/_lad.h \
82 $(top_srcdir)/linux/include/SocketFxns.h \
83 $(top_srcdir)/linux/include/ladclient.h \
84 $(top_srcdir)/linux/include/net/rpmsg.h \
85 $(top_srcdir)/packages/ti/ipc/MessageQ.h \
86 $(top_srcdir)/packages/ti/ipc/NameServer.h \
87 $(top_srcdir)/packages/ti/ipc/MultiProc.h
89 # list of sources for the 'lad' binary and to add to the source distribution
90 #
91 # NOTE: 6636_SOURCES using 6638.c is not a typo! 6636 has the same
92 # MultiProc config as 6638, so we reuse that source file.
93 lad_omap54xx_smp_SOURCES = $(common_sources) MultiProcCfg_omap54xx_smp.c
94 lad_dra7xx_SOURCES = $(common_sources) MultiProcCfg_dra7xx.c
95 lad_omapl138_SOURCES = $(common_sources) MultiProcCfg_omapl138.c
96 lad_tci6614_SOURCES = $(common_sources) MultiProcCfg_tci6614.c
97 lad_tci6636_SOURCES = $(common_sources) MultiProcCfg_tci6638.c
98 lad_tci6638_SOURCES = $(common_sources) MultiProcCfg_tci6638.c
100 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la \
101 $(top_builddir)/linux/src/utils/libtiipcutils.la
103 # the additional libraries needed to link program
104 lad_omap54xx_smp_LDADD = $(common_libraries) \
105 $(AM_LDFLAGS)
106 lad_dra7xx_LDADD = $(common_libraries) \
107 $(AM_LDFLAGS)
108 lad_omapl138_LDADD = $(common_libraries) \
109 $(AM_LDFLAGS)
110 lad_tci6614_LDADD = $(common_libraries) \
111 $(AM_LDFLAGS)
112 lad_tci6636_LDADD = $(common_libraries) \
113 $(AM_LDFLAGS)
114 lad_tci6638_LDADD = $(common_libraries) \
115 $(AM_LDFLAGS)
117 ###############################################################################