ping_rpmsg: Added ping test over MessageQCopy.
[ipc/ipcdev.git] / linux / src / tests / Makefile.am
1 # src/test/Makefile.am
3 # additional include paths necessary to compile the program
4 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/packages -I$(CMEM_INSTALL_DIR)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
6 ###############################################################################
7 # THE PROGRAMS TO BUILD
8 ###############################################################################
10 # the program to build (the names of the final binaries)
11 bin_PROGRAMS = ping_rpmsg
13 if OMAP4430
14   bin_PROGRAMS += MessageQApp_omap4430 MessageQBench_omap4430 MessageQMulti_omap4430 \
15                     NameServerApp_omap4430
16 else
17 if OMAPL138
18   bin_PROGRAMS += MessageQApp_omapl138 MessageQBench_omapl138 MessageQMulti_omapl138 \
19                     NameServerApp_omapl138
20 if CMEM
21   bin_PROGRAMS += nano_test_omapl138
22 endif
23 else
24 if TCI6614
25   bin_PROGRAMS += MessageQApp_tci6614 MessageQBench_tci6614 MessageQMulti_tci6614 \
26                     NameServerApp_tci6614
27 else
28 if TCI6638
29   bin_PROGRAMS += MessageQApp_tci6638 MessageQBench_tci6638 MessageQMulti_tci6638 \
30                     NameServerApp_tci6638
31 else
32   bin_PROGRAMS += MessageQApp_omap4430 MessageQBench_omap4430 MessageQMulti_omap4430 \
33                   NameServerApp_omap4430 \
34                   MessageQApp_omapl138 MessageQBench_omapl138 MessageQMulti_omapl138 \
35                   NameServerApp_omapl138 \
36                   MessageQApp_tci6614 MessageQBench_tci6614 MessageQMulti_tci6614 \
37                   NameServerApp_tci6614 \
38                   MessageQApp_tci6638 MessageQBench_tci6638 MessageQMulti_tci6638 \
39                   NameServerApp_tci6638
40 if CMEM
41   bin_PROGRAMS += nano_test_omapl138
42 endif
43 endif
44 endif
45 endif
46 endif
48 common_sources = \
49                 $(top_srcdir)/linux/include/Std.h \
50                 $(top_srcdir)/linux/include/SysLink.h \
51                 $(top_srcdir)/packages/ti/ipc/MessageQ.h
53 nameServer_common_sources = \
54                 $(top_srcdir)/linux/include/Std.h\
55                 $(top_srcdir)/linux/include/ladclient.h \
56                 $(top_srcdir)/linux/include/_NameServer.h \
57                 $(top_srcdir)/packages/ti/ipc/NameServer.h \
58                 NameServerApp.c
60 # list of sources for the 'ping_rpmsg' binary
61 ping_rpmsg_SOURCES = ping_rpmsg.c
63 # list of sources for the 'MessageQApp' binary
64 MessageQApp_omap4430_SOURCES = $(common_sources) MessageQApp.c
65 MessageQApp_omapl138_SOURCES = $(common_sources) MessageQApp.c
66 MessageQApp_tci6614_SOURCES = $(common_sources) MessageQApp.c
67 MessageQApp_tci6638_SOURCES = $(common_sources) MessageQApp.c
69 # list of sources for the 'MessageQBench' binary
70 MessageQBench_omap4430_SOURCES = $(common_sources) MessageQBench.c
71 MessageQBench_omapl138_SOURCES = $(common_sources) MessageQBench.c
72 MessageQBench_tci6614_SOURCES  = $(common_sources) MessageQBench.c
73 MessageQBench_tci6638_SOURCES  = $(common_sources) MessageQBench.c
75 # list of sources for the 'MessageQMulti' binary
76 MessageQMulti_omap4430_SOURCES = $(common_sources) MessageQMulti.c
77 MessageQMulti_omapl138_SOURCES = $(common_sources) MessageQMulti.c
78 MessageQMulti_tci6614_SOURCES  = $(common_sources) MessageQMulti.c
79 MessageQMulti_tci6638_SOURCES  = $(common_sources) MessageQMulti.c
81 # list of sources for the 'NameServerApp' binary
82 NameServerApp_omap4430_SOURCES = $(nameServer_common_sources)
83 NameServerApp_omapl138_SOURCES = $(nameServer_common_sources)
84 NameServerApp_tci6614_SOURCES  = $(nameServer_common_sources)
85 NameServerApp_tci6638_SOURCES  = $(nameServer_common_sources)
87 # list of sources for the 'nano_test' binary
88 nano_test_omapl138_SOURCES = $(common_sources) nano_test.c
90 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la \
91                 $(top_builddir)/linux/src/utils/libtiipcutils.la
93 # the additional libraries to link ping_rpmsg
94 ping_rpmsg_LDADD = -lrt
96 # the additional libraries needed to link MessageQApp
97 MessageQApp_omap4430_LDADD = $(common_libraries) \
98                 $(top_builddir)/linux/src/family/libtiipccfg_omap4430.la $(AM_LDFLAGS)
99 MessageQApp_omapl138_LDADD = $(common_libraries) \
100                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la $(AM_LDFLAGS)
101 MessageQApp_tci6614_LDADD = $(common_libraries) \
102                 $(top_builddir)/linux/src/family/libtiipccfg_tci6614.la $(AM_LDFLAGS)
103 MessageQApp_tci6638_LDADD = $(common_libraries) \
104                 $(top_builddir)/linux/src/family/libtiipccfg_tci6638.la $(AM_LDFLAGS)
106 # the additional libraries needed to link MessageQBench
107 MessageQBench_omap4430_LDADD = $(common_libraries) \
108                 $(top_builddir)/linux/src/family/libtiipccfg_omap4430.la -lrt $(AM_LDFLAGS)
109 MessageQBench_omapl138_LDADD = $(common_libraries) \
110                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la -lrt $(AM_LDFLAGS)
111 MessageQBench_tci6614_LDADD = $(common_libraries) \
112                 $(top_builddir)/linux/src/family/libtiipccfg_tci6614.la -lrt $(AM_LDFLAGS)
113 MessageQBench_tci6638_LDADD = $(common_libraries) \
114                 $(top_builddir)/linux/src/family/libtiipccfg_tci6638.la -lrt $(AM_LDFLAGS)
116 # the additional libraries needed to link MessageQMulti
117 MessageQMulti_omap4430_LDADD = $(common_libraries) \
118                 $(top_builddir)/linux/src/family/libtiipccfg_omap4430.la $(AM_LDFLAGS)
119 MessageQMulti_omapl138_LDADD = $(common_libraries) \
120                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la $(AM_LDFLAGS)
121 MessageQMulti_tci6614_LDADD = $(common_libraries) \
122                 $(top_builddir)/linux/src/family/libtiipccfg_tci6614.la $(AM_LDFLAGS)
123 MessageQMulti_tci6638_LDADD = $(common_libraries) \
124                 $(top_builddir)/linux/src/family/libtiipccfg_tci6638.la $(AM_LDFLAGS)
126 # the additional libraries needed to link NameServerApp
127 NameServerApp_omap4430_LDADD = $(common_libraries) \
128                 $(top_builddir)/linux/src/family/libtiipccfg_omap4430.la $(AM_LDFLAGS)
129 NameServerApp_omapl138_LDADD = $(common_libraries) \
130                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la $(AM_LDFLAGS)
131 NameServerApp_tci6614_LDADD = $(common_libraries) \
132                 $(top_builddir)/linux/src/family/libtiipccfg_tci6614.la $(AM_LDFLAGS)
133 NameServerApp_tci6638_LDADD = $(common_libraries) \
134                 $(top_builddir)/linux/src/family/libtiipccfg_tci6638.la $(AM_LDFLAGS)
136 # the additional libraries needed to link nano_test
137 nano_test_omapl138_LDADD = $(common_libraries) \
138                 $(top_builddir)/linux/src/family/libtiipccfg_omapl138.la \
139                 $(CMEM_INSTALL_DIR)/packages/ti/sdo/linuxutils/cmem/lib/cmem.a470MV \
140                 $(AM_LDFLAGS)
142 ###############################################################################