6495c18071a4d8030feb8b426b2e732661af78a9
[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
26 lib_LTLIBRARIES = libvici.la
27
28 libvici_la_SOURCES = \
29         vici_message.c vici_message.h \
30         vici_builder.c vici_builder.h \
31         libvici.c libvici.h
32
33 libvici_la_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
34
35
36 TESTS = vici_tests
37
38 check_PROGRAMS = $(TESTS)
39
40 vici_tests_SOURCES = \
41         suites/test_socket.c \
42         suites/test_message.c \
43         suites/test_request.c \
44         suites/test_event.c \
45         vici_socket.c \
46         vici_message.c \
47         vici_builder.c \
48         vici_dispatcher.c \
49         libvici.c \
50         vici_tests.h vici_tests.c
51
52 vici_tests_CFLAGS = \
53         -I$(top_srcdir)/src/libstrongswan \
54         -I$(top_srcdir)/src/libstrongswan/tests \
55         @COVERAGE_CFLAGS@
56
57 vici_tests_LDFLAGS = @COVERAGE_LDFLAGS@
58 vici_tests_LDADD = \
59         $(top_builddir)/src/libcharon/libcharon.la \
60         $(top_builddir)/src/libhydra/libhydra.la \
61         $(top_builddir)/src/libstrongswan/libstrongswan.la \
62         $(top_builddir)/src/libstrongswan/tests/libtest.la