aboutsummaryrefslogtreecommitdiff
path: root/test/Makefile.inc
blob: 6d14f9c175b63df6ddd1d8299eadb01408ab5cb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
if PLATFORM_IS_LINUX_DPDK
include $(top_srcdir)/platform/@with_platform@/Makefile.inc
endif

include $(top_srcdir)/Makefile.inc

COMMON_DIR = $(top_builddir)/test/common

LIBODP = $(LIB)/libodphelper.la $(LIB)/lib$(ODP_LIB_NAME).la

LIBCUNIT_COMMON = $(COMMON_DIR)/libcunit_common.la
LIBCPUMASK_COMMON = $(COMMON_DIR)/libcpumask_common.la
LIBPACKET_COMMON = $(COMMON_DIR)/libpacket_common.la
LIBTHRMASK_COMMON = $(COMMON_DIR)/libthrmask_common.la

#in the following line, the libs using the symbols should come before
#the libs containing them! The includer is given a chance to add things
#before libodp by setting PRELDADD before the inclusion.
LDADD = $(PRELDADD) $(LIBODP)
PRELDADD =

AM_CPPFLAGS = \
	$(ODP_INCLUDES) \
	$(HELPER_INCLUDES) \
	-I$(top_srcdir)/test/common

AM_CFLAGS += $(CUNIT_CFLAGS)

if STATIC_APPS
AM_LDFLAGS += -static
endif

AM_LDFLAGS += $(PLAT_DEP_LIBS)

@VALGRIND_CHECK_RULES@

TESTS_ENVIRONMENT = ODP_PLATFORM=${with_platform} \
		    EXEEXT=${EXEEXT}