0e39c0d24d47ff565ff4c3d5e5adb777ed70e41d
[strongswan.git] / src / libcharon / plugins / kernel_netlink / Makefile.am
1 AM_CPPFLAGS = \
2         -I${linux_headers} \
3         -I$(top_srcdir)/src/libstrongswan \
4         -I$(top_srcdir)/src/libcharon \
5         -DROUTING_TABLE=${routing_table} \
6         -DROUTING_TABLE_PRIO=${routing_table_prio}
7
8 AM_CFLAGS = \
9         $(PLUGIN_CFLAGS)
10
11 if MONOLITHIC
12 noinst_LTLIBRARIES = libstrongswan-kernel-netlink.la
13 else
14 plugin_LTLIBRARIES = libstrongswan-kernel-netlink.la
15 endif
16
17 libstrongswan_kernel_netlink_la_SOURCES = \
18         kernel_netlink_plugin.h kernel_netlink_plugin.c \
19         kernel_netlink_ipsec.h kernel_netlink_ipsec.c \
20         kernel_netlink_net.h kernel_netlink_net.c \
21         kernel_netlink_shared.h kernel_netlink_shared.c
22
23 libstrongswan_kernel_netlink_la_LIBADD = $(DLLIB)
24
25 libstrongswan_kernel_netlink_la_LDFLAGS = -module -avoid-version
26
27
28 TESTS = kernel_netlink_tests
29
30 check_PROGRAMS = $(TESTS)
31
32 kernel_netlink_tests_SOURCES = \
33         tests.h tests.c \
34         suites/test_socket.c \
35         kernel_netlink_shared.c
36
37 kernel_netlink_tests_CFLAGS = \
38         -I$(top_srcdir)/src/libstrongswan \
39         -I$(top_srcdir)/src/libstrongswan/tests \
40         -DNETLINK_MSG_LOSS_HOOK=netlink_msg_loss \
41         @COVERAGE_CFLAGS@
42
43 kernel_netlink_tests_LDFLAGS = @COVERAGE_LDFLAGS@
44 kernel_netlink_tests_LDADD = \
45         $(top_builddir)/src/libstrongswan/libstrongswan.la \
46         $(top_builddir)/src/libstrongswan/tests/libtest.la