cc885540662cadf387a3f4915771a5717d5d5448
[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/libhydra \
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_LDFLAGS = -module -avoid-version
24
25
26 TESTS = tests
27
28 check_PROGRAMS = $(TESTS)
29
30 tests_SOURCES = \
31         tests.h tests.c \
32         suites/test_socket.c \
33         kernel_netlink_shared.c
34
35 tests_CFLAGS = \
36         -I$(top_srcdir)/src/libstrongswan \
37         -I$(top_srcdir)/src/libstrongswan/tests \
38         -DNETLINK_MSG_LOSS_HOOK=netlink_msg_loss \
39         @COVERAGE_CFLAGS@
40
41 tests_LDFLAGS = @COVERAGE_LDFLAGS@
42 tests_LDADD = \
43         $(top_builddir)/src/libstrongswan/libstrongswan.la \
44         $(top_builddir)/src/libstrongswan/tests/libtest.la