]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - linux/src/tests/Makefile.am
3059e3a0ad7eb0ed890c7189d8681386496550d3
[ipc/ipcdev.git] / linux / src / tests / Makefile.am
1 ##
2 ##  Copyright (c) 2013-2014, 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 \
36         -I$(top_srcdir)/hlos_common/include \
37         -I$(top_srcdir)/packages \
38         -I$(KERNEL_INSTALL_DIR)/include/generated/uapi \
39         -D_GNU_SOURCE -Wall @AM_CFLAGS@
41 if DRM
42 AM_CFLAGS += \
43         -I$(DRM_PREFIX)/usr/include \
44         -I$(DRM_PREFIX)/usr/include/libdrm \
45         -I$(DRM_PREFIX)/usr/include/omap
46 endif
48 if CMEM
49 AM_CFLAGS += \
50         -I$(CMEM_INSTALL_DIR)/include
51 endif
53 VPATH = ../../../packages/ti/ipc/tests
55 ###############################################################################
56 # THE PROGRAMS TO BUILD
57 ###############################################################################
59 # the program to build (the names of the final binaries)
60 bin_PROGRAMS = ping_rpmsg MessageQApp  MessageQBench MessageQMulti \
61                 NameServerApp Msgq100
64 if OMAP54XX_SMP
65 # Add platform specific bin application's here
66   bin_PROGRAMS +=
67 if KDIR
68 if DRM
69   bin_PROGRAMS += mmrpc_test
70 endif
71 endif
72 else
73 if DRA7XX
74 # Add platform specific bin application's here
75   bin_PROGRAMS +=
76 if KDIR
77 if DRM
78   bin_PROGRAMS += mmrpc_test
79 endif
80 endif
81 else
82 if OMAPL138
83 # Add platform specific bin application's here
84   bin_PROGRAMS +=
85 if CMEM
86   bin_PROGRAMS += nano_test
87 endif
88 else
89 if TCI6614
90 # Add platform specific bin application's here
91   bin_PROGRAMS +=
92 else
93 if TCI6630
94 # Add platform specific bin applications here
95   bin_PROGRAMS +=
96 else
97 if TCI6636
98 # Add platform specific bin application's here
99   bin_PROGRAMS +=
100 else
101 if TCI6638
102 # Add platform specific bin application's here
103   bin_PROGRAMS +=
104 else
105 # Add platform independent apps here or above in bin_PROGRAMS
106 if CMEM
107   bin_PROGRAMS += nano_test
108 endif
109 if KDIR
110 if DRM
111   bin_PROGRAMS += mmrpc_test
112 endif
113 endif
114 endif
115 endif
116 endif
117 endif
118 endif
119 endif
120 endif
122 common_sources = \
123                 $(top_srcdir)/linux/include/ti/ipc/Std.h \
124                 $(top_srcdir)/packages/ti/ipc/Ipc.h \
125                 $(top_srcdir)/packages/ti/ipc/MessageQ.h
127 nameServer_common_sources = \
128                 $(top_srcdir)/linux/include/ti/ipc/Std.h \
129                 $(top_srcdir)/linux/include/ladclient.h \
130                 $(top_srcdir)/hlos_common/include/_NameServer.h \
131                 $(top_srcdir)/packages/ti/ipc/NameServer.h \
132                 NameServerApp.c
134 # list of sources for the 'ping_rpmsg' binary
135 ping_rpmsg_SOURCES = ping_rpmsg.c
137 # list of sources for the 'mmrpc_test' binary
138 mmrpc_test_SOURCES = $(top_srcdir)/packages/ti/ipc/tests/Mx.c \
139                 $(top_srcdir)/packages/ti/ipc/tests/Mx.h \
140                 $(top_srcdir)/packages/ti/ipc/tests/mmrpc_test.c
142 # list of sources for the 'MessageQApp' binary
143 MessageQApp_SOURCES = $(common_sources) MessageQApp.c
145 # list of sources for the 'MessageQBench' binary
146 MessageQBench_SOURCES = $(common_sources) MessageQBench.c
148 # list of sources for the 'MessageQMulti' binary
149 MessageQMulti_SOURCES = $(common_sources) MessageQMulti.c
151 # list of sources for the 'NameServerApp' binary
152 NameServerApp_SOURCES = $(nameServer_common_sources)
154 # list of sources for the 'nano_test' binary
155 nano_test_SOURCES = $(common_sources) nano_test.c
157 # list of sources for the 'Msgq100' binary
158 Msgq100_SOURCES = $(common_sources) Msgq100.c
160 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la \
161                 $(top_builddir)/linux/src/utils/libtiipcutils.la
163 # the additional libraries to link ping_rpmsg
164 ping_rpmsg_LDADD = -lrt
166 # the additional libraries to link mmrpc_test
167 mmrpc_test_LDADD = $(common_libraries) \
168                 $(top_builddir)/linux/src/mm/libmmrpc.la \
169                 $(DRM_PREFIX)/usr/lib/libdrm.la \
170                 $(DRM_PREFIX)/usr/lib/libdrm_omap.la
172 # the additional libraries needed to link MessageQApp
173 MessageQApp_LDADD = $(common_libraries) \
174                 $(AM_LDFLAGS)
176 # the additional libraries needed to link MessageQBench
177 MessageQBench_LDADD = $(common_libraries) -lrt \
178                 $(AM_LDFLAGS)
180 # the additional libraries needed to link MessageQMulti
181 MessageQMulti_LDADD = $(common_libraries) \
182                 $(AM_LDFLAGS)
184 # the additional libraries needed to link NameServerApp
185 NameServerApp_LDADD = $(common_libraries) \
186                 $(AM_LDFLAGS)
188 # the additional libraries needed to link nano_test
189 nano_test_LDADD = $(common_libraries) \
190                 $(CMEM_INSTALL_DIR)/src/cmem/api/.libs/libticmem.a \
191                 $(AM_LDFLAGS)
193 # the additional libraries needed to link Msgq100
194 Msgq100_LDADD = $(common_libraries) \
195                 $(AM_LDFLAGS)
197 ###############################################################################