summaryrefslogtreecommitdiff
path: root/src/libhydra/plugins/kernel_netlink/Makefile.am
blob: cc885540662cadf387a3f4915771a5717d5d5448 (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
AM_CPPFLAGS = \
	-I${linux_headers} \
	-I$(top_srcdir)/src/libstrongswan \
	-I$(top_srcdir)/src/libhydra \
	-DROUTING_TABLE=${routing_table} \
	-DROUTING_TABLE_PRIO=${routing_table_prio}

AM_CFLAGS = \
	$(PLUGIN_CFLAGS)

if MONOLITHIC
noinst_LTLIBRARIES = libstrongswan-kernel-netlink.la
else
plugin_LTLIBRARIES = libstrongswan-kernel-netlink.la
endif

libstrongswan_kernel_netlink_la_SOURCES = \
	kernel_netlink_plugin.h kernel_netlink_plugin.c \
	kernel_netlink_ipsec.h kernel_netlink_ipsec.c \
	kernel_netlink_net.h kernel_netlink_net.c \
	kernel_netlink_shared.h kernel_netlink_shared.c

libstrongswan_kernel_netlink_la_LDFLAGS = -module -avoid-version


TESTS = tests

check_PROGRAMS = $(TESTS)

tests_SOURCES = \
	tests.h tests.c \
	suites/test_socket.c \
	kernel_netlink_shared.c

tests_CFLAGS = \
	-I$(top_srcdir)/src/libstrongswan \
	-I$(top_srcdir)/src/libstrongswan/tests \
	-DNETLINK_MSG_LOSS_HOOK=netlink_msg_loss \
	@COVERAGE_CFLAGS@

tests_LDFLAGS = @COVERAGE_LDFLAGS@
tests_LDADD = \
	$(top_builddir)/src/libstrongswan/libstrongswan.la \
	$(top_builddir)/src/libstrongswan/tests/libtest.la