aboutsummaryrefslogtreecommitdiff
path: root/helper/test/Makefile.am
blob: a679e19735f1be5fcb7886961adb7e89c627c5f3 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
include $(top_srcdir)/platform/@with_platform@/Makefile.inc

LIB   = $(top_builddir)/lib

#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 PRE_LDADD before the inclusion.
LDADD = $(PRE_LDADD) $(LIB)/libodphelper.la $(LIB)/lib$(ODP_LIB_STR).la $(DPDK_PMDS)

INCFLAGS = \
	-I$(top_builddir)/platform/@with_platform@/include \
	-I$(top_srcdir)/helper/include \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/include/odp/arch/@ARCH_ABI@ \
	-I$(top_srcdir)/platform/@with_platform@/include \
	-I$(top_builddir)/include \
	-I$(top_srcdir)/helper

ODP_PLATFORM=${with_platform}

AM_CFLAGS += $(INCFLAGS)
AM_LDFLAGS += -static

EXECUTABLES = chksum$(EXEEXT) \
              cuckootable$(EXEEXT) \
              parse$(EXEEXT)\
              table$(EXEEXT) \
              iplookuptable$(EXEEXT)

#These are platform specific extensions that are not portable
#They are a convenience to app writers who have chosen to
#restrict their application to Linux.

if helper_linux
EXECUTABLES += linux/pthread$(EXEEXT) \
	       linux/process$(EXEEXT)
endif

COMPILE_ONLY = odpthreads

TESTSCRIPTS = odpthreads_as_processes \
	      odpthreads_as_pthreads

if test_helper
TESTS = $(EXECUTABLES) $(TESTSCRIPTS)
endif

dist_bin_SCRIPTS =

test_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY)

EXTRA_DIST = odpthreads_as_processes odpthreads_as_pthreads

dist_chksum_SOURCES = chksum.c
dist_cuckootable_SOURCES = cuckootable.c
dist_odpthreads_SOURCES = odpthreads.c
dist_parse_SOURCES = parse.c
dist_table_SOURCES = table.c
dist_iplookuptable_SOURCES = iplookuptable.c