]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - linux/src/tests/Makefile.am
tests: mmrpc_test: Add DRM library to Linux side makefiles.
[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)/hlos_common/include \
36         -I$(top_srcdir)/packages -I$(CMEM_INSTALL_DIR)/include \
37         -I$(top_srcdir)/packages -I$(CMEM_INSTALL_DIR)/packages \
38         -I$(DRM_PREFIX)/usr/include \
39         -I$(DRM_PREFIX)/usr/include/libdrm \
40         -I$(DRM_PREFIX)/usr/include/omap \
41         -D_GNU_SOURCE -Wall @AM_CFLAGS@
42 VPATH = ../../../packages/ti/ipc/tests
44 ###############################################################################
45 # THE PROGRAMS TO BUILD
46 ###############################################################################
48 # the program to build (the names of the final binaries)
49 bin_PROGRAMS = ping_rpmsg MessageQApp  MessageQBench MessageQMulti \
50                 NameServerApp
53 if OMAP54XX_SMP
54 # Add platform specific bin application's here
55   bin_PROGRAMS +=
56 if KDIR
57   bin_PROGRAMS += mmrpc_test
58 endif
59 else
60 if DRA7XX
61 # Add platform specific bin application's here
62   bin_PROGRAMS +=
63 if KDIR
64   bin_PROGRAMS += mmrpc_test
65 endif
66 else
67 if OMAPL138
68 # Add platform specific bin application's here
69   bin_PROGRAMS +=
70 if CMEM
71   bin_PROGRAMS += nano_test
72 endif
73 else
74 if TCI6614
75 # Add platform specific bin application's here
76   bin_PROGRAMS +=
77 else
78 if TCI6636
79 # Add platform specific bin application's here
80   bin_PROGRAMS +=
81 else
82 if TCI6638
83 # Add platform specific bin application's here
84   bin_PROGRAMS +=
85 else
86 # Add platform independent apps here or above in bin_PROGRAMS
87 if CMEM
88   bin_PROGRAMS += nano_test
89 endif
90 if KDIR
91   bin_PROGRAMS += mmrpc_test
92 endif
93 endif
94 endif
95 endif
96 endif
97 endif
98 endif
100 common_sources = \
101                 $(top_srcdir)/linux/include/ti/ipc/Std.h \
102                 $(top_srcdir)/packages/ti/ipc/Ipc.h \
103                 $(top_srcdir)/packages/ti/ipc/MessageQ.h
105 nameServer_common_sources = \
106                 $(top_srcdir)/linux/include/ti/ipc/Std.h \
107                 $(top_srcdir)/linux/include/ladclient.h \
108                 $(top_srcdir)/hlos_common/include/_NameServer.h \
109                 $(top_srcdir)/packages/ti/ipc/NameServer.h \
110                 NameServerApp.c
112 # list of sources for the 'ping_rpmsg' binary
113 ping_rpmsg_SOURCES = ping_rpmsg.c
115 # list of sources for the 'mmrpc_test' binary
116 mmrpc_test_SOURCES = $(top_srcdir)/packages/ti/ipc/tests/Mx.c \
117                 $(top_srcdir)/packages/ti/ipc/tests/Mx.h \
118                 $(top_srcdir)/packages/ti/ipc/tests/mmrpc_test.c
120 # list of sources for the 'MessageQApp' binary
121 MessageQApp_SOURCES = $(common_sources) MessageQApp.c
123 # list of sources for the 'MessageQBench' binary
124 MessageQBench_SOURCES = $(common_sources) MessageQBench.c
126 # list of sources for the 'MessageQMulti' binary
127 MessageQMulti_SOURCES = $(common_sources) MessageQMulti.c
129 # list of sources for the 'NameServerApp' binary
130 NameServerApp_SOURCES = $(nameServer_common_sources)
132 # list of sources for the 'nano_test' binary
133 nano_test_SOURCES = $(common_sources) nano_test.c
135 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la \
136                 $(top_builddir)/linux/src/utils/libtiipcutils.la \
137                 $(DRM_PREFIX)/usr/lib/libdrm.la \
138                 $(DRM_PREFIX)/usr/lib/libdrm_omap.la
140 # the additional libraries to link ping_rpmsg
141 ping_rpmsg_LDADD = -lrt
143 # the additional libraries to link mmrpc_test
144 mmrpc_test_LDADD = $(common_libraries) \
145                 $(top_builddir)/linux/src/mm/libmmrpc.la
147 # the additional libraries needed to link MessageQApp
148 MessageQApp_LDADD = $(common_libraries) \
149                 $(AM_LDFLAGS)
151 # the additional libraries needed to link MessageQBench
152 MessageQBench_LDADD = $(common_libraries) -lrt \
153                 $(AM_LDFLAGS)
155 # the additional libraries needed to link MessageQMulti
156 MessageQMulti_LDADD = $(common_libraries) \
157                 $(AM_LDFLAGS)
159 # the additional libraries needed to link NameServerApp
160 NameServerApp_LDADD = $(common_libraries) \
161                 $(AM_LDFLAGS)
163 # the additional libraries needed to link nano_test
164 nano_test_LDADD = $(common_libraries) \
165                 $(CMEM_INSTALL_DIR)/src/cmem/api/.libs/libticmem.a \
166                 $(AM_LDFLAGS)
168 ###############################################################################