Linux: Converted all SysLink references to Ipc
[ipc/ipcdev.git] / linux / src / tests / Makefile.am
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/test/Makefile.am ========
32 ##
34 # additional include paths necessary to compile the program
35 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/packages  \
36         -I$(CMEM_INSTALL_DIR)/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 = ping_rpmsg
45 if OMAP4430
46   bin_PROGRAMS += MessageQApp_omap4430 MessageQBench_omap4430 \
47                 MessageQMulti_omap4430 NameServerApp_omap4430
48 else
49 if OMAPL138
50   bin_PROGRAMS += MessageQApp_omapl138 MessageQBench_omapl138 \
51                 MessageQMulti_omapl138 NameServerApp_omapl138
52 if CMEM
53   bin_PROGRAMS += nano_test_omapl138
54 endif
55 else
56 if TCI6614
57   bin_PROGRAMS += MessageQApp_tci6614 MessageQBench_tci6614 \
58                 MessageQMulti_tci6614 NameServerApp_tci6614
59 else
60 if TCI6638
61   bin_PROGRAMS += MessageQApp_tci6638 MessageQBench_tci6638 \
62                 MessageQMulti_tci6638 NameServerApp_tci6638
63 else
64   bin_PROGRAMS += MessageQApp_omap4430 MessageQBench_omap4430 \
65                 MessageQMulti_omap4430 NameServerApp_omap4430 \
66                 MessageQApp_omapl138 MessageQBench_omapl138 \
67                 MessageQMulti_omapl138 NameServerApp_omapl138 \
68                 MessageQApp_tci6614 MessageQBench_tci6614 \
69                 MessageQMulti_tci6614 NameServerApp_tci6614 \
70                 MessageQApp_tci6638 MessageQBench_tci6638 \
71                 MessageQMulti_tci6638 NameServerApp_tci6638
72 if CMEM
73   bin_PROGRAMS += nano_test_omapl138
74 endif
75 endif
76 endif
77 endif
78 endif
80 common_sources = \
81                 $(top_srcdir)/linux/include/Std.h \
82                 $(top_srcdir)/packages/ti/ipc/Ipc.h \
83                 $(top_srcdir)/packages/ti/ipc/MessageQ.h
85 nameServer_common_sources = \
86                 $(top_srcdir)/linux/include/Std.h\
87                 $(top_srcdir)/linux/include/ladclient.h \
88                 $(top_srcdir)/linux/include/_NameServer.h \
89                 $(top_srcdir)/packages/ti/ipc/NameServer.h \
90                 NameServerApp.c
92 # list of sources for the 'ping_rpmsg' binary
93 ping_rpmsg_SOURCES = ping_rpmsg.c
95 # list of sources for the 'MessageQApp' binary
96 MessageQApp_omap4430_SOURCES = $(common_sources) MessageQApp.c
97 MessageQApp_omapl138_SOURCES = $(common_sources) MessageQApp.c
98 MessageQApp_tci6614_SOURCES = $(common_sources) MessageQApp.c
99 MessageQApp_tci6638_SOURCES = $(common_sources) MessageQApp.c
101 # list of sources for the 'MessageQBench' binary
102 MessageQBench_omap4430_SOURCES = $(common_sources) MessageQBench.c
103 MessageQBench_omapl138_SOURCES = $(common_sources) MessageQBench.c
104 MessageQBench_tci6614_SOURCES  = $(common_sources) MessageQBench.c
105 MessageQBench_tci6638_SOURCES  = $(common_sources) MessageQBench.c
107 # list of sources for the 'MessageQMulti' binary
108 MessageQMulti_omap4430_SOURCES = $(common_sources) MessageQMulti.c
109 MessageQMulti_omapl138_SOURCES = $(common_sources) MessageQMulti.c
110 MessageQMulti_tci6614_SOURCES  = $(common_sources) MessageQMulti.c
111 MessageQMulti_tci6638_SOURCES  = $(common_sources) MessageQMulti.c
113 # list of sources for the 'NameServerApp' binary
114 NameServerApp_omap4430_SOURCES = $(nameServer_common_sources)
115 NameServerApp_omapl138_SOURCES = $(nameServer_common_sources)
116 NameServerApp_tci6614_SOURCES  = $(nameServer_common_sources)
117 NameServerApp_tci6638_SOURCES  = $(nameServer_common_sources)
119 # list of sources for the 'nano_test' binary
120 nano_test_omapl138_SOURCES = $(common_sources) nano_test.c
122 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la \
123                 $(top_builddir)/linux/src/utils/libtiipcutils.la
125 # the additional libraries to link ping_rpmsg
126 ping_rpmsg_LDADD = -lrt
128 # the additional libraries needed to link MessageQApp
129 MessageQApp_omap4430_LDADD = $(common_libraries) \
130                 $(top_builddir)/linux/src/family/libtiipccfg_omap4430.la \
131                 $(AM_LDFLAGS)
132 MessageQApp_omapl138_LDADD = $(common_libraries) \
133                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la \
134                 $(AM_LDFLAGS)
135 MessageQApp_tci6614_LDADD = $(common_libraries) \
136                 $(top_builddir)/linux/src/family/libtiipccfg_tci6614.la \
137                 $(AM_LDFLAGS)
138 MessageQApp_tci6638_LDADD = $(common_libraries) \
139                 $(top_builddir)/linux/src/family/libtiipccfg_tci6638.la \
140                 $(AM_LDFLAGS)
142 # the additional libraries needed to link MessageQBench
143 MessageQBench_omap4430_LDADD = $(common_libraries) \
144                 $(top_builddir)/linux/src/family/libtiipccfg_omap4430.la -lrt \
145                 $(AM_LDFLAGS)
146 MessageQBench_omapl138_LDADD = $(common_libraries) \
147                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la -lrt \
148                 $(AM_LDFLAGS)
149 MessageQBench_tci6614_LDADD = $(common_libraries) \
150                 $(top_builddir)/linux/src/family/libtiipccfg_tci6614.la -lrt \
151                 $(AM_LDFLAGS)
152 MessageQBench_tci6638_LDADD = $(common_libraries) \
153                 $(top_builddir)/linux/src/family/libtiipccfg_tci6638.la -lrt \
154                 $(AM_LDFLAGS)
156 # the additional libraries needed to link MessageQMulti
157 MessageQMulti_omap4430_LDADD = $(common_libraries) \
158                 $(top_builddir)/linux/src/family/libtiipccfg_omap4430.la \
159                 $(AM_LDFLAGS)
160 MessageQMulti_omapl138_LDADD = $(common_libraries) \
161                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la \
162                 $(AM_LDFLAGS)
163 MessageQMulti_tci6614_LDADD = $(common_libraries) \
164                 $(top_builddir)/linux/src/family/libtiipccfg_tci6614.la \
165                 $(AM_LDFLAGS)
166 MessageQMulti_tci6638_LDADD = $(common_libraries) \
167                 $(top_builddir)/linux/src/family/libtiipccfg_tci6638.la \
168                 $(AM_LDFLAGS)
170 # the additional libraries needed to link NameServerApp
171 NameServerApp_omap4430_LDADD = $(common_libraries) \
172                 $(top_builddir)/linux/src/family/libtiipccfg_omap4430.la \
173                 $(AM_LDFLAGS)
174 NameServerApp_omapl138_LDADD = $(common_libraries) \
175                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la \
176                 $(AM_LDFLAGS)
177 NameServerApp_tci6614_LDADD = $(common_libraries) \
178                 $(top_builddir)/linux/src/family/libtiipccfg_tci6614.la \
179                 $(AM_LDFLAGS)
180 NameServerApp_tci6638_LDADD = $(common_libraries) \
181                 $(top_builddir)/linux/src/family/libtiipccfg_tci6638.la \
182                 $(AM_LDFLAGS)
184 # the additional libraries needed to link nano_test
185 nano_test_omapl138_LDADD = $(common_libraries) \
186                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la \
187                 $(CMEM_INSTALL_DIR)/packages/ti/sdo/linuxutils/cmem/lib/cmem.a470MV \
188                 $(AM_LDFLAGS)
190 ###############################################################################