vici: Add a control backend, currently to initiate connections by name
[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_query.h vici_query.c \
22         vici_control.h vici_control.c \
23         vici_plugin.h vici_plugin.c
24
25 libstrongswan_vici_la_LDFLAGS = -module -avoid-version
26
27
28 lib_LTLIBRARIES = libvici.la
29
30 libvici_la_SOURCES = \
31         vici_message.c vici_message.h \
32         vici_builder.c vici_builder.h \
33         libvici.c libvici.h
34
35 libvici_la_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
36
37
38 TESTS = vici_tests
39
40 check_PROGRAMS = $(TESTS)
41
42 vici_tests_SOURCES = \
43         suites/test_socket.c \
44         suites/test_message.c \
45         suites/test_request.c \
46         suites/test_event.c \
47         vici_socket.c \
48         vici_message.c \
49         vici_builder.c \
50         vici_dispatcher.c \
51         libvici.c \
52         vici_tests.h vici_tests.c
53
54 vici_tests_CFLAGS = \
55         -I$(top_srcdir)/src/libstrongswan \
56         -I$(top_srcdir)/src/libstrongswan/tests \
57         @COVERAGE_CFLAGS@
58
59 vici_tests_LDFLAGS = @COVERAGE_LDFLAGS@
60 vici_tests_LDADD = \
61         $(top_builddir)/src/libcharon/libcharon.la \
62         $(top_builddir)/src/libhydra/libhydra.la \
63         $(top_builddir)/src/libstrongswan/libstrongswan.la \
64         $(top_builddir)/src/libstrongswan/tests/libtest.la