@@ -2,21 +2,4 @@
# build specific ODP applications, (i.e those whose do more than validation
# test wrapping)
-AM_LDFLAGS = -static
-
-AM_CFLAGS = $(CUNIT_CFLAGS)
-
-LIBCUNIT_COMMON = $(top_builddir)/test/common/libcunit_common.la
-LIB = $(top_builddir)/lib
-LIBODP = $(LIB)/libodphelper.la $(LIB)/libodp-linux.la $(DPDK_LIBS_LT)
-
-INCCUNIT_COMMON = -I$(top_srcdir)/test/common
-INCODP = \
- -I$(top_builddir)/include \
- -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@/arch/$(ARCH_DIR) \
- -I$(top_srcdir)/platform/@with_platform@/include \
- -I$(top_srcdir)/test
+include $(top_srcdir)/test/Makefile.inc
@@ -1 +1 @@
-include $(top_srcdir)/platform/linux-generic/test/validation/Makefile.inc
+include $(top_srcdir)/test/validation/api/Makefile.inc
@@ -7,16 +7,9 @@ test_PROGRAMS = shmem_linux shmem_odp1 shmem_odp2
shmem_linux_SOURCES = shmem_linux.c shmem_linux.h shmem_common.h
shmem_linux_CFLAGS = $(AM_CFLAGS) -I$(top_builddir)/include
shmem_linux_LDFLAGS = $(AM_LDFLAGS) -lrt
+shmem_linux_LDADD =
#shmem_odp1 and shmem_odp2 are the 2 ODP processes:
shmem_odp1_SOURCES = shmem_odp1.c shmem_odp1.h shmem_common.h
-shmem_odp1_CFLAGS = $(AM_CFLAGS) \
- $(INCCUNIT_COMMON) \
- $(INCODP)
-shmem_odp1_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
shmem_odp2_SOURCES = shmem_odp2.c shmem_odp2.h shmem_common.h
-shmem_odp2_CFLAGS = $(AM_CFLAGS) \
- $(INCCUNIT_COMMON) \
- $(INCODP)
-shmem_odp2_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,8 +2,9 @@ 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)/libodp-linux.la $(DPDK_LIBS_LT)
+#before libodp by setting PRELDADD before the inclusion.
+LDADD = $(PRELDADD) $(LIB)/libodphelper.la $(LIB)/libodp-linux.la $(DPDK_LIBS_LT)
+PRELDADD =
INCFLAGS = \
-I$(top_builddir)/platform/@with_platform@/include \
@@ -10,3 +10,5 @@ LIBCUNIT_COMMON = $(COMMON_DIR)/libcunit_common.la
LIBCPUMASK_COMMON = $(COMMON_DIR)/libcpumask_common.la
LIBTHRMASK_COMMON = $(COMMON_DIR)/libthrmask_common.la
LIBODP = $(LIB)/libodphelper.la $(LIB)/libodp-linux.la
+
+PRELDADD += $(LIBCUNIT_COMMON)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = atomic_main
atomic_main_SOURCES = atomic_main.c atomic.c atomic.h
-atomic_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = barrier_main
barrier_main_SOURCES = barrier_main.c barrier.c barrier.h
-barrier_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = buffer_main
buffer_main_SOURCES = buffer_main.c buffer.c buffer.h
-buffer_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = chksum_main
chksum_main_SOURCES = chksum_main.c chksum.c chksum.h
-chksum_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -9,4 +9,3 @@ classification_main_SOURCES = classification_main.c \
odp_classification_common.c \
classification.c \
classification.h
-classification_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,4 @@ include ../Makefile.inc
test_PROGRAMS = cpumask_main
cpumask_main_SOURCES = cpumask_main.c cpumask.c cpumask.h
-cpumask_main_LDADD = $(LIBCPUMASK_COMMON) $(LIBCUNIT_COMMON) $(LIBODP)
+LDADD += $(LIBCPUMASK_COMMON)
@@ -8,4 +8,3 @@ crypto_main_SOURCES = crypto_main.c \
odp_crypto_test_inp.h \
test_vectors.h \
test_vectors_len.h
-crypto_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = errno_main
errno_main_SOURCES = errno_main.c errno.c errno.h
-errno_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = event_main
event_main_SOURCES = event_main.c event.c event.h
-event_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = hash_main
hash_main_SOURCES = hash_main.c hash.c hash.h
-hash_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -7,6 +7,3 @@ test_PROGRAMS = init_main_abort init_main_log init_main_ok
init_main_abort_SOURCES = init_main_abort.c init.c init.h
init_main_log_SOURCES = init_main_log.c init.c init.h
init_main_ok_SOURCES = init_main_ok.c init.c init.h
-init_main_abort_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
-init_main_log_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
-init_main_ok_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -21,7 +21,4 @@ ipsec_async_SOURCES = ipsec_async.c
ipsec_inline_in_SOURCES = ipsec_inline_in.c
ipsec_inline_out_SOURCES = ipsec_inline_out.c
-ipsec_sync_LDADD = libtestipsec.la $(LIBCUNIT_COMMON) $(LIBODP)
-ipsec_async_LDADD = libtestipsec.la $(LIBCUNIT_COMMON) $(LIBODP)
-ipsec_inline_in_LDADD = libtestipsec.la $(LIBCUNIT_COMMON) $(LIBODP)
-ipsec_inline_out_LDADD = libtestipsec.la $(LIBCUNIT_COMMON) $(LIBODP)
+LDADD += libtestipsec.la
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = lock_main
lock_main_SOURCES = lock_main.c lock.c lock.h
-lock_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = packet_main
packet_main_SOURCES = packet_main.c packet.c packet.h
-packet_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = pktio_main
pktio_main_SOURCES = pktio_main.c parser.c parser.h pktio.c pktio.h
-pktio_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = pool_main
pool_main_SOURCES = pool_main.c pool.c pool.h
-pool_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = queue_main
queue_main_SOURCES = queue_main.c queue.c queue.h
-queue_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = random_main
random_main_SOURCES = random_main.c random.c random.h
-random_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = scheduler_main
scheduler_main_SOURCES = scheduler_main.c scheduler.c scheduler.h
-scheduler_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = shmem_main
shmem_main_SOURCES = shmem_main.c shmem.c shmem.h
-shmem_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = std_clib_main
std_clib_main_SOURCES = std_clib_main.c std_clib.c std_clib.h
-std_clib_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = system_main
system_main_SOURCES = system_main.c system.c system.h
-system_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -3,4 +3,4 @@ include ../Makefile.inc
test_PROGRAMS = thread_main
thread_main_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_THRMASK
thread_main_SOURCES = thread_main.c thread.c thread.h
-thread_main_LDADD = $(LIBTHRMASK_COMMON) $(LIBCUNIT_COMMON) $(LIBODP)
+LDADD += $(LIBTHRMASK_COMMON)
@@ -9,7 +9,6 @@ TESTS = $(TESTSCRIPTS)
test_PROGRAMS = time_main
time_main_SOURCES = time_main.c time.c time_test.h
-time_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
dist_check_SCRIPTS = $(TESTSCRIPTS)
test_SCRIPTS = $(dist_check_SCRIPTS)
@@ -2,4 +2,3 @@ include ../Makefile.inc
test_PROGRAMS = timer_main
timer_main_SOURCES = timer_main.c timer.c timer.h
-timer_main_LDADD = $(LIBCUNIT_COMMON) $(LIBODP)
@@ -9,7 +9,7 @@ TESTS = $(TESTSCRIPTS)
test_PROGRAMS = traffic_mngr_main
traffic_mngr_main_SOURCES = traffic_mngr_main.c traffic_mngr.c traffic_mngr.h
-traffic_mngr_main_LDADD = -lm $(LIBCUNIT_COMMON) $(LIBODP)
+LDADD += -lm
dist_check_SCRIPTS = $(TESTSCRIPTS)
test_SCRIPTS = $(dist_check_SCRIPTS)