2a99b1391e645190276e053b5cc2a37844ef23c2
[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_config.h vici_config.c \
24         vici_cred.h vici_cred.c \
25         vici_attribute.h vici_attribute.c \
26         vici_logger.h vici_logger.c \
27         vici_plugin.h vici_plugin.c
28
29 libstrongswan_vici_la_LDFLAGS = -module -avoid-version
30
31
32 lib_LTLIBRARIES = libvici.la
33
34 libvici_la_SOURCES = \
35         vici_message.c vici_message.h \
36         vici_builder.c vici_builder.h \
37         libvici.c libvici.h
38
39 libvici_la_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
40
41
42 TESTS = vici_tests
43
44 check_PROGRAMS = $(TESTS)
45
46 vici_tests_SOURCES = \
47         suites/test_socket.c \
48         suites/test_message.c \
49         suites/test_request.c \
50         suites/test_event.c \
51         vici_socket.c \
52         vici_message.c \
53         vici_builder.c \
54         vici_dispatcher.c \
55         libvici.c \
56         vici_tests.h vici_tests.c
57
58 vici_tests_CFLAGS = \
59         -I$(top_srcdir)/src/libstrongswan \
60         -I$(top_srcdir)/src/libstrongswan/tests \
61         @COVERAGE_CFLAGS@
62
63 vici_tests_LDFLAGS = @COVERAGE_LDFLAGS@
64 vici_tests_LDADD = \
65         $(top_builddir)/src/libstrongswan/libstrongswan.la \
66         $(top_builddir)/src/libstrongswan/tests/libtest.la