]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - linux/src/tests/Makefile.am
b59af3748e0588cc64345c6bc9411a05d9636f23
[ipc/ipcdev.git] / linux / src / tests / Makefile.am
1 ##
2 ##  Copyright (c) 2013-2017 Texas Instruments Incorporated - http://www.ti.com
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)/hlos_common/include -D_GNU_SOURCE -Wall -pthread
37 if DRM
38 AM_CFLAGS += \
39         -I$(DRM_PREFIX)/usr/include \
40         -I$(DRM_PREFIX)/usr/include/libdrm \
41         -I$(DRM_PREFIX)/usr/include/omap
42 endif
44 if CMEM
45 AM_CFLAGS += -I$(CMEM_INSTALL_DIR)/include
46 endif
48 if KERNEL_INSTALL_DIR
49 AM_CFLAGS += -I$(KERNEL_INSTALL_DIR)/include/generated/uapi
50 endif
52 if AF_RPMSG
53 AM_CFLAGS += -DAF_RPMSG=$(AF_RPMSG)
54 endif
56 AM_CFLAGS += -I$(top_srcdir)/linux/include -I$(top_srcdir)/packages @AM_CFLAGS@
58 VPATH = ../../../packages/ti/ipc/tests
60 ###############################################################################
61 # THE PROGRAMS TO BUILD
62 ###############################################################################
64 # the program to build (the names of the final binaries)
65 bin_PROGRAMS = ping_rpmsg MessageQApp  MessageQBench MessageQMulti \
66                 MessageQMultiMulti NameServerApp Msgq100 MessageQFaultApp
69 if OMAP54XX_SMP
70 # Add platform specific bin application's here
71   bin_PROGRAMS +=
72 if KDIR
73 if DRM
74   bin_PROGRAMS += mmrpc_test
75 endif
76 endif
77 else
78 if DRA7XX
79 # Add platform specific bin application's here
80   bin_PROGRAMS +=
81 if CMEM
82   bin_PROGRAMS += GateMPApp
83 endif
84 if KDIR
85 if DRM
86   bin_PROGRAMS += mmrpc_test
87 endif
88 endif
89 else
90 if OMAPL138
91 # Add platform specific bin application's here
92   bin_PROGRAMS +=
93 if CMEM
94   bin_PROGRAMS += nano_test
95 endif
96 else
97 if C66AK2E
98 # Add platform specific bin application's here
99   bin_PROGRAMS +=
100 else
101 if TCI6614
102 # Add platform specific bin application's here
103   bin_PROGRAMS +=
104 else
105 if TCI6630
106 # Add platform specific bin applications here
107   bin_PROGRAMS +=
108 else
109 if TCI6636
110 # Add platform specific bin application's here
111   bin_PROGRAMS +=
112 else
113 if TCI6638
114 # Add platform specific bin application's here
115   bin_PROGRAMS +=
116 else
117 if C66AK2G
118 # Add platform specific bin application's here
119   bin_PROGRAMS +=
120 else
121 # Add platform independent apps here or above in bin_PROGRAMS
122 if CMEM
123   bin_PROGRAMS += nano_test
124 endif
125 if KDIR
126 if DRM
127   bin_PROGRAMS += mmrpc_test
128 endif
129 endif
130 endif
131 endif
132 endif
133 endif
134 endif
135 endif
136 endif
137 endif
138 endif
140 common_sources = \
141                 $(top_srcdir)/linux/include/ti/ipc/Std.h \
142                 $(top_srcdir)/packages/ti/ipc/Ipc.h \
143                 $(top_srcdir)/packages/ti/ipc/MessageQ.h
145 nameServer_common_sources = \
146                 $(top_srcdir)/linux/include/ti/ipc/Std.h \
147                 $(top_srcdir)/linux/include/ladclient.h \
148                 $(top_srcdir)/hlos_common/include/_NameServer.h \
149                 $(top_srcdir)/packages/ti/ipc/NameServer.h \
150                 NameServerApp.c
153 # list of sources for the 'ping_rpmsg' binary
154 ping_rpmsg_SOURCES = ping_rpmsg.c
156 # list of sources for the 'mmrpc_test' binary
157 mmrpc_test_SOURCES = $(top_srcdir)/packages/ti/ipc/tests/Mx.c \
158                 $(top_srcdir)/packages/ti/ipc/tests/Mx.h \
159                 $(top_srcdir)/packages/ti/ipc/tests/mmrpc_test.c
161 # list of sources for the 'MessageQFaultApp' binary
162 MessageQFaultApp_SOURCES = $(common_sources) MessageQFaultApp.c
164 # list of sources for the 'MessageQApp' binary
165 MessageQApp_SOURCES = $(common_sources) MessageQApp.c
167 # list of sources for the 'MessageQBench' binary
168 MessageQBench_SOURCES = $(common_sources) MessageQBench.c
170 # list of sources for the 'MessageQMulti' binary
171 MessageQMulti_SOURCES = $(common_sources) MessageQMulti.c
173 # list of sources for the 'MessageQMultiMulti' binary
174 MessageQMultiMulti_SOURCES = $(common_sources) MessageQMultiMulti.c
176 # list of sources for the 'NameServerApp' binary
177 NameServerApp_SOURCES = $(nameServer_common_sources)
179 # list of sources for the 'nano_test' binary
180 nano_test_SOURCES = $(common_sources) nano_test.c
182 # list of sources for the 'Msgq100' binary
183 Msgq100_SOURCES = $(common_sources) Msgq100.c
185 # list of sources for the 'GateMPApp' binary
186 GateMPApp_SOURCES = $(common_sources) \
187                 $(top_srcdir)/linux/src/tests/main_host.c \
188                 $(top_srcdir)/linux/src/tests/GateMPApp.c \
189                 $(top_srcdir)/linux/src/tests/GateMPApp.h \
190                 $(top_srcdir)/packages/ti/ipc/GateMP.h \
191                 $(top_srcdir)/packages/ti/ipc/tests/GateMPAppCommon.h
193 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la \
194                 $(top_builddir)/linux/src/utils/libtiipcutils.la \
195                 $(top_builddir)/linux/src/transport/libtitransportrpmsg.la
198 # the additional libraries to link ping_rpmsg
199 ping_rpmsg_LDADD = -lrt
201 # the additional libraries to link mmrpc_test
202 mmrpc_test_LDADD = $(common_libraries) \
203                 $(top_builddir)/linux/src/mm/libmmrpc.la \
204                 $(DRM_PREFIX)/usr/lib/libdrm.la \
205                 $(DRM_PREFIX)/usr/lib/libdrm_omap.la
207 # the additional libraries needed to link MessageQFaultApp
208 MessageQFaultApp_LDADD = $(common_libraries) \
209                 $(AM_LDFLAGS)
211 # the additional libraries needed to link MessageQApp
212 MessageQApp_LDADD = $(common_libraries) \
213                 $(AM_LDFLAGS)
215 # the additional libraries needed to link MessageQBench
216 MessageQBench_LDADD = $(common_libraries) -lrt \
217                 $(AM_LDFLAGS)
219 # the additional libraries needed to link MessageQMulti
220 MessageQMulti_LDADD = $(common_libraries) \
221                 $(AM_LDFLAGS)
223 # the additional libraries needed to link MessageQMultiMulti
224 MessageQMultiMulti_LDADD = $(common_libraries) \
225                 $(AM_LDFLAGS)
227 # the additional libraries needed to link NameServerApp
228 NameServerApp_LDADD = $(common_libraries) \
229                 $(AM_LDFLAGS)
231 # the additional libraries needed to link nano_test
232 nano_test_LDADD = $(common_libraries) \
233                 $(CMEM_INSTALL_DIR)/src/cmem/api/.libs/libticmem.a \
234                 $(AM_LDFLAGS)
236 # the additional libraries needed to link Msgq100
237 Msgq100_LDADD = $(common_libraries) \
238                 $(AM_LDFLAGS)
240 # the additional libraries needed to link GateMPApp
241 GateMPApp_LDADD = $(common_libraries) \
242                 $(CMEM_INSTALL_DIR)/src/cmem/api/.libs/libticmem.a \
243                 $(AM_LDFLAGS)
245 ###############################################################################