aboutsummaryrefslogtreecommitdiff
path: root/example/ipsec_crypto/Makefile.am
blob: 1db0d72d0f8f6265d23f06fa460477ada98894d7 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
include $(top_srcdir)/example/Makefile.inc

bin_PROGRAMS = odp_ipsec_crypto

if test_example
TESTS = \
	odp_ipsec_crypto_run_ah_in.sh \
	odp_ipsec_crypto_run_ah_out.sh \
	odp_ipsec_crypto_run_both_in.sh \
	odp_ipsec_crypto_run_both_out.sh \
	odp_ipsec_crypto_run_esp_in.sh \
	odp_ipsec_crypto_run_esp_out.sh \
	odp_ipsec_crypto_run_live.sh \
	odp_ipsec_crypto_run_router.sh \
	odp_ipsec_crypto_run_simple.sh
endif
EXTRA_DIST = \
	odp_ipsec_crypto_run_ah_in.sh \
	odp_ipsec_crypto_run_ah_out.sh \
	odp_ipsec_crypto_run_both_in.sh \
	odp_ipsec_crypto_run_both_out.sh \
	odp_ipsec_crypto_run_esp_in.sh \
	odp_ipsec_crypto_run_esp_out.sh \
	odp_ipsec_crypto_run_live.sh \
	odp_ipsec_crypto_run_router.sh \
	odp_ipsec_crypto_run_simple.sh

odp_ipsec_crypto_SOURCES = \
		odp_ipsec.c \
		odp_ipsec_sa_db.c \
		odp_ipsec_sp_db.c \
		odp_ipsec_fwd_db.c \
		odp_ipsec_cache.c \
		odp_ipsec_cache.h \
		odp_ipsec_fwd_db.h \
		odp_ipsec_misc.h \
		odp_ipsec_sa_db.h \
		odp_ipsec_sp_db.h

if WITH_OPENSSL
odp_ipsec_crypto_SOURCES += \
		odp_ipsec_stream.c \
		odp_ipsec_stream.h

AM_CPPFLAGS = $(OPENSSL_CPPFLAGS)
LDADD += $(OPENSSL_LIBS)

else
AM_CPPFLAGS = -DNO_OPENSSL
endif

# If building out-of-tree, make check will not copy the scripts and data to the
# $(builddir) assuming that all commands are run locally. However this prevents
# running tests on a remote target using LOG_COMPILER.
# So copy all script and data files explicitly here.
all-local:
	if [ "x$(srcdir)" != "x$(builddir)" ]; then \
		for f in $(EXTRA_DIST); do \
			if [ -e $(srcdir)/$$f ]; then \
				mkdir -p $(builddir)/$$(dirname $$f); \
				cp -f $(srcdir)/$$f $(builddir)/$$f; \
			fi \
		done \
	fi
	ln -f -s ../../platform/$(with_platform)/test/example/ipsec_crypto/pktio_env pktio_env
clean-local:
	if [ "x$(srcdir)" != "x$(builddir)" ]; then \
		for f in $(EXTRA_DIST); do \
			rm -f $(builddir)/$$f; \
		done \
	fi
	rm -f pktio_env