87700a9fa22aa773612cf63b7078a4570c976ec9
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 -D_GNU_SOURCE -Wall @AM_CFLAGS@
38 VPATH = ../../../packages/ti/ipc/tests
40 ###############################################################################
41 # THE PROGRAMS TO BUILD
42 ###############################################################################
44 # the program to build (the names of the final binaries)
45 bin_PROGRAMS = ping_rpmsg MessageQApp MessageQBench MessageQMulti \
46 NameServerApp
49 if OMAP54XX_SMP
50 # Add platform specific bin application's here
51 bin_PROGRAMS +=
52 if KDIR
53 bin_PROGRAMS += mmrpc_test
54 endif
55 else
56 if DRA7XX
57 # Add platform specific bin application's here
58 bin_PROGRAMS +=
59 if KDIR
60 bin_PROGRAMS += mmrpc_test
61 endif
62 else
63 if OMAPL138
64 # Add platform specific bin application's here
65 bin_PROGRAMS +=
66 if CMEM
67 bin_PROGRAMS += nano_test
68 endif
69 else
70 if TCI6614
71 # Add platform specific bin application's here
72 bin_PROGRAMS +=
73 else
74 if TCI6636
75 # Add platform specific bin application's here
76 bin_PROGRAMS +=
77 else
78 if TCI6638
79 # Add platform specific bin application's here
80 bin_PROGRAMS +=
81 else
82 # Add platform independent apps here or above in bin_PROGRAMS
83 if CMEM
84 bin_PROGRAMS += nano_test
85 endif
86 if KDIR
87 bin_PROGRAMS += mmrpc_test
88 endif
89 endif
90 endif
91 endif
92 endif
93 endif
94 endif
96 common_sources = \
97 $(top_srcdir)/linux/include/ti/ipc/Std.h \
98 $(top_srcdir)/packages/ti/ipc/Ipc.h \
99 $(top_srcdir)/packages/ti/ipc/MessageQ.h
101 nameServer_common_sources = \
102 $(top_srcdir)/linux/include/ti/ipc/Std.h \
103 $(top_srcdir)/linux/include/ladclient.h \
104 $(top_srcdir)/hlos_common/include/_NameServer.h \
105 $(top_srcdir)/packages/ti/ipc/NameServer.h \
106 NameServerApp.c
108 # list of sources for the 'ping_rpmsg' binary
109 ping_rpmsg_SOURCES = ping_rpmsg.c
111 # list of sources for the 'mmrpc_test' binary
112 mmrpc_test_SOURCES = $(top_srcdir)/packages/ti/ipc/tests/Mx.c \
113 $(top_srcdir)/packages/ti/ipc/tests/Mx.h \
114 $(top_srcdir)/packages/ti/ipc/tests/mmrpc_test.c
116 # list of sources for the 'MessageQApp' binary
117 MessageQApp_SOURCES = $(common_sources) MessageQApp.c
119 # list of sources for the 'MessageQBench' binary
120 MessageQBench_SOURCES = $(common_sources) MessageQBench.c
122 # list of sources for the 'MessageQMulti' binary
123 MessageQMulti_SOURCES = $(common_sources) MessageQMulti.c
125 # list of sources for the 'NameServerApp' binary
126 NameServerApp_SOURCES = $(nameServer_common_sources)
128 # list of sources for the 'nano_test' binary
129 nano_test_SOURCES = $(common_sources) nano_test.c
131 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la \
132 $(top_builddir)/linux/src/utils/libtiipcutils.la
134 # the additional libraries to link ping_rpmsg
135 ping_rpmsg_LDADD = -lrt
137 # the additional libraries to link mmrpc_test
138 mmrpc_test_LDADD = $(common_libraries) \
139 $(top_builddir)/linux/src/mm/libmmrpc.la
141 # the additional libraries needed to link MessageQApp
142 MessageQApp_LDADD = $(common_libraries) \
143 $(AM_LDFLAGS)
145 # the additional libraries needed to link MessageQBench
146 MessageQBench_LDADD = $(common_libraries) -lrt \
147 $(AM_LDFLAGS)
149 # the additional libraries needed to link MessageQMulti
150 MessageQMulti_LDADD = $(common_libraries) \
151 $(AM_LDFLAGS)
153 # the additional libraries needed to link NameServerApp
154 NameServerApp_LDADD = $(common_libraries) \
155 $(AM_LDFLAGS)
157 # the additional libraries needed to link nano_test
158 nano_test_LDADD = $(common_libraries) \
159 $(CMEM_INSTALL_DIR)/src/cmem/api/.libs/libticmem.a \
160 $(AM_LDFLAGS)
162 ###############################################################################