fbbf52b82598224872ca96456084d3b45e5a87f9
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)/hlos_common/include \
36 -I$(top_srcdir)/packages -I$(CMEM_INSTALL_DIR)/include \
37 -I$(DRM_PREFIX)/usr/include \
38 -I$(DRM_PREFIX)/usr/include/libdrm \
39 -I$(DRM_PREFIX)/usr/include/omap \
40 -D_GNU_SOURCE -Wall @AM_CFLAGS@
41 VPATH = ../../../packages/ti/ipc/tests
43 ###############################################################################
44 # THE PROGRAMS TO BUILD
45 ###############################################################################
47 # the program to build (the names of the final binaries)
48 bin_PROGRAMS = ping_rpmsg MessageQApp MessageQBench MessageQMulti \
49 NameServerApp Msgq100
52 if OMAP54XX_SMP
53 # Add platform specific bin application's here
54 bin_PROGRAMS +=
55 if KDIR
56 if DRM
57 bin_PROGRAMS += mmrpc_test
58 endif
59 endif
60 else
61 if DRA7XX
62 # Add platform specific bin application's here
63 bin_PROGRAMS +=
64 if KDIR
65 if DRM
66 bin_PROGRAMS += mmrpc_test
67 endif
68 endif
69 else
70 if OMAPL138
71 # Add platform specific bin application's here
72 bin_PROGRAMS +=
73 if CMEM
74 bin_PROGRAMS += nano_test
75 endif
76 else
77 if TCI6614
78 # Add platform specific bin application's here
79 bin_PROGRAMS +=
80 else
81 if TCI6636
82 # Add platform specific bin application's here
83 bin_PROGRAMS +=
84 else
85 if TCI6638
86 # Add platform specific bin application's here
87 bin_PROGRAMS +=
88 else
89 # Add platform independent apps here or above in bin_PROGRAMS
90 if CMEM
91 bin_PROGRAMS += nano_test
92 endif
93 if KDIR
94 if DRM
95 bin_PROGRAMS += mmrpc_test
96 endif
97 endif
98 endif
99 endif
100 endif
101 endif
102 endif
103 endif
105 common_sources = \
106 $(top_srcdir)/linux/include/ti/ipc/Std.h \
107 $(top_srcdir)/packages/ti/ipc/Ipc.h \
108 $(top_srcdir)/packages/ti/ipc/MessageQ.h
110 nameServer_common_sources = \
111 $(top_srcdir)/linux/include/ti/ipc/Std.h \
112 $(top_srcdir)/linux/include/ladclient.h \
113 $(top_srcdir)/hlos_common/include/_NameServer.h \
114 $(top_srcdir)/packages/ti/ipc/NameServer.h \
115 NameServerApp.c
117 # list of sources for the 'ping_rpmsg' binary
118 ping_rpmsg_SOURCES = ping_rpmsg.c
120 # list of sources for the 'mmrpc_test' binary
121 mmrpc_test_SOURCES = $(top_srcdir)/packages/ti/ipc/tests/Mx.c \
122 $(top_srcdir)/packages/ti/ipc/tests/Mx.h \
123 $(top_srcdir)/packages/ti/ipc/tests/mmrpc_test.c
125 # list of sources for the 'MessageQApp' binary
126 MessageQApp_SOURCES = $(common_sources) MessageQApp.c
128 # list of sources for the 'MessageQBench' binary
129 MessageQBench_SOURCES = $(common_sources) MessageQBench.c
131 # list of sources for the 'MessageQMulti' binary
132 MessageQMulti_SOURCES = $(common_sources) MessageQMulti.c
134 # list of sources for the 'NameServerApp' binary
135 NameServerApp_SOURCES = $(nameServer_common_sources)
137 # list of sources for the 'nano_test' binary
138 nano_test_SOURCES = $(common_sources) nano_test.c
140 # list of sources for the 'Msgq100' binary
141 Msgq100_SOURCES = $(common_sources) Msgq100.c
143 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la \
144 $(top_builddir)/linux/src/utils/libtiipcutils.la
146 # the additional libraries to link ping_rpmsg
147 ping_rpmsg_LDADD = -lrt
149 # the additional libraries to link mmrpc_test
150 mmrpc_test_LDADD = $(common_libraries) \
151 $(top_builddir)/linux/src/mm/libmmrpc.la \
152 $(DRM_PREFIX)/usr/lib/libdrm.la \
153 $(DRM_PREFIX)/usr/lib/libdrm_omap.la
155 # the additional libraries needed to link MessageQApp
156 MessageQApp_LDADD = $(common_libraries) \
157 $(AM_LDFLAGS)
159 # the additional libraries needed to link MessageQBench
160 MessageQBench_LDADD = $(common_libraries) -lrt \
161 $(AM_LDFLAGS)
163 # the additional libraries needed to link MessageQMulti
164 MessageQMulti_LDADD = $(common_libraries) \
165 $(AM_LDFLAGS)
167 # the additional libraries needed to link NameServerApp
168 NameServerApp_LDADD = $(common_libraries) \
169 $(AM_LDFLAGS)
171 # the additional libraries needed to link nano_test
172 nano_test_LDADD = $(common_libraries) \
173 $(CMEM_INSTALL_DIR)/src/cmem/api/.libs/libticmem.a \
174 $(AM_LDFLAGS)
176 # the additional libraries needed to link Msgq100
177 Msgq100_LDADD = $(common_libraries) \
178 $(AM_LDFLAGS)
180 ###############################################################################