3723966ff46c858f915fdb7fce7d3c7e0796d89b
[strongswan.git] / src / libcharon / plugins / vici / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/libstrongswan \
3         -I$(top_srcdir)/src/libhydra \
4         -I$(top_srcdir)/src/libcharon \
5         -DIPSEC_PIDDIR=\"${piddir}\"
6
7 AM_CFLAGS = \
8         -rdynamic
9
10 if MONOLITHIC
11 noinst_LTLIBRARIES = libstrongswan-vici.la
12 else
13 plugin_LTLIBRARIES = libstrongswan-vici.la
14 endif
15
16 libstrongswan_vici_la_SOURCES = \
17         vici_socket.h vici_socket.c \
18         vici_message.h vici_message.c \
19         vici_builder.h vici_builder.c \
20         vici_dispatcher.h vici_dispatcher.c \
21         vici_plugin.h vici_plugin.c
22
23 libstrongswan_vici_la_LDFLAGS = -module -avoid-version
24
25 TESTS = vici_tests
26
27 check_PROGRAMS = $(TESTS)
28
29 vici_tests_SOURCES = \
30         suites/test_socket.c \
31         suites/test_message.c \
32         vici_socket.c \
33         vici_message.c \
34         vici_builder.c \
35         vici_tests.h vici_tests.c
36
37 vici_tests_CFLAGS = \
38         -I$(top_srcdir)/src/libstrongswan \
39         -I$(top_srcdir)/src/libstrongswan/tests \
40         @COVERAGE_CFLAGS@
41
42 vici_tests_LDFLAGS = @COVERAGE_LDFLAGS@
43 vici_tests_LDADD = \
44         $(top_builddir)/src/libcharon/libcharon.la \
45         $(top_builddir)/src/libhydra/libhydra.la \
46         $(top_builddir)/src/libstrongswan/libstrongswan.la \
47         $(top_builddir)/src/libstrongswan/tests/libtest.la