9540c2063d0681722b9aea1a0c553f3ac19ed081
[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         $(PLUGIN_CFLAGS)
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_version.c vici_version.h \
18         vici_socket.h vici_socket.c \
19         vici_message.h vici_message.c \
20         vici_builder.h vici_builder.c \
21         vici_dispatcher.h vici_dispatcher.c \
22         vici_cert_info.c vici_cert_info.h \
23         vici_query.h vici_query.c \
24         vici_control.h vici_control.c \
25         vici_config.h vici_config.c \
26         vici_cred.h vici_cred.c \
27         vici_attribute.h vici_attribute.c \
28         vici_authority.h vici_authority.c \
29         vici_logger.h vici_logger.c \
30         vici_plugin.h vici_plugin.c
31
32 libstrongswan_vici_la_LDFLAGS = -module -avoid-version
33
34
35 EXTRA_DIST = README.md
36
37
38 ipseclib_LTLIBRARIES = libvici.la
39
40 libvici_la_SOURCES = \
41         vici_message.c vici_message.h \
42         vici_builder.c vici_builder.h \
43         vici_version.c vici_version.h \
44         vici_cert_info.c vici_cert_info.h \
45         libvici.c libvici.h
46
47 libvici_la_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
48
49
50 TESTS = vici_tests
51
52 check_PROGRAMS = $(TESTS)
53
54 vici_tests_SOURCES = \
55         suites/test_socket.c \
56         suites/test_message.c \
57         suites/test_request.c \
58         suites/test_event.c \
59         vici_socket.c \
60         vici_message.c \
61         vici_builder.c \
62         vici_dispatcher.c \
63         libvici.c \
64         vici_tests.h vici_tests.c
65
66 vici_tests_CFLAGS = \
67         -I$(top_srcdir)/src/libstrongswan \
68         -I$(top_srcdir)/src/libstrongswan/tests \
69         @COVERAGE_CFLAGS@
70
71 vici_tests_LDFLAGS = @COVERAGE_LDFLAGS@
72 vici_tests_LDADD = \
73         $(top_builddir)/src/libstrongswan/libstrongswan.la \
74         $(top_builddir)/src/libstrongswan/tests/libtest.la
75
76
77 SUBDIRS =
78
79 if USE_RUBY_GEMS
80 SUBDIRS += ruby
81 endif
82
83 if USE_PYTHON_EGGS
84 SUBDIRS += python
85 endif
86
87 if USE_PERL_CPAN
88 SUBDIRS += perl
89 endif