sw-collector: Check for epoch-less Debian package versions
[strongswan.git] / src / libimcv / plugins / imc_swima / Makefile.am
1 regid = strongswan.org
2 unique_sw_id = strongSwan-$(PACKAGE_VERSION_MAJOR)-$(PACKAGE_VERSION_MINOR)-$(PACKAGE_VERSION_BUILD)$(PACKAGE_VERSION_REVIEW)
3 swid_tag = $(regid)__$(unique_sw_id).swidtag
4
5 swiddir = $(pkgdatadir)/swidtag
6 dist_swid_DATA = $(swid_tag)
7 EXTRA_DIST = $(regid)__strongSwan.swidtag.in
8 CLEANFILES = $(regid)__strongSwan*.swidtag
9
10 $(swid_tag) : $(regid)__strongSwan.swidtag.in
11         $(AM_V_GEN) \
12         sed \
13         -e "s:@VERSION_MAJOR@:$(PACKAGE_VERSION_MAJOR):" \
14         -e "s:@VERSION_MINOR@:$(PACKAGE_VERSION_MINOR):" \
15         -e "s:@VERSION_BUILD@:$(PACKAGE_VERSION_BUILD):" \
16         -e "s:@VERSION_REVIEW@:$(PACKAGE_VERSION_REVIEW):" \
17         $(srcdir)/$(regid)__strongSwan.swidtag.in > $@
18
19 AM_CPPFLAGS = \
20         -I$(top_srcdir)/src/libstrongswan \
21         -I$(top_srcdir)/src/libtncif \
22         -I$(top_srcdir)/src/libimcv \
23         -DPLUGINS=\""random openssl sqlite curl"\"
24
25 AM_CFLAGS = \
26         $(PLUGIN_CFLAGS) $(json_CFLAGS)
27
28 imcv_LTLIBRARIES = imc-swima.la
29
30 imc_swima_la_LIBADD = \
31         $(top_builddir)/src/libimcv/libimcv.la \
32         $(top_builddir)/src/libstrongswan/libstrongswan.la
33 imc_swima_la_SOURCES = imc_swima.c imc_swima_state.h imc_swima_state.c
34 imc_swima_la_LDFLAGS = -module -avoid-version -no-undefined
35
36 ipsec_PROGRAMS = sw-collector
37 sw_collector_SOURCES = \
38         sw_collector/sw-collector.c \
39         sw_collector/sw_collector_db.h sw_collector/sw_collector_db.c \
40         sw_collector/sw_collector_dpkg.h sw_collector/sw_collector_dpkg.c \
41         sw_collector/sw_collector_history.h sw_collector/sw_collector_history.c \
42         sw_collector/sw_collector_info.h sw_collector/sw_collector_info.c \
43         sw_collector/sw_collector_rest_api.h sw_collector/sw_collector_rest_api.c
44
45 sw_collector_LDADD = \
46         $(top_builddir)/src/libstrongswan/libstrongswan.la \
47         $(top_builddir)/src/libimcv/libimcv.la \
48         $(json_LIBS)
49
50 sw-collector.o : $(top_builddir)/config.status
51
52 templatesdir = $(pkgdatadir)/templates/database/sw-collector
53 dist_templates_DATA = sw_collector/sw_collector_tables.sql
54