Make SWID directory where tags are stored configurable
[strongswan.git] / src / libpts / plugins / imc_swid / Makefile.am
1 regid = regid.2004-03.org.strongswan
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 = $(prefix)/share/$(regid)
6 swid_DATA = $(swid_tag)
7 ipsec_DATA = $(swid_tag)
8 EXTRA_DIST = $(regid)_strongSwan.swidtag.in
9 CLEANFILES = $(regid)_strongSwan*.swidtag
10
11 $(swid_tag) : regid.2004-03.org.strongswan_strongSwan.swidtag.in
12         $(AM_V_GEN) \
13         sed \
14         -e "s:@VERSION_MAJOR@:$(PACKAGE_VERSION_MAJOR):" \
15         -e "s:@VERSION_MINOR@:$(PACKAGE_VERSION_MINOR):" \
16         -e "s:@VERSION_BUILD@:$(PACKAGE_VERSION_BUILD):" \
17         -e "s:@VERSION_REVIEW@:$(PACKAGE_VERSION_REVIEW):" \
18         $(srcdir)/$(regid)_strongSwan.swidtag.in > $@
19
20 AM_CPPFLAGS = \
21         -I$(top_srcdir)/src/libstrongswan \
22         -I$(top_srcdir)/src/libtncif \
23         -I$(top_srcdir)/src/libimcv \
24         -I$(top_srcdir)/src/libpts \
25         -DSWID_DIRECTORY=\"${prefix}/share\"
26
27 AM_CFLAGS = \
28         -rdynamic
29
30 imcv_LTLIBRARIES = imc-swid.la
31
32 imc_swid_la_LIBADD = \
33         $(top_builddir)/src/libimcv/libimcv.la \
34         $(top_builddir)/src/libpts/libpts.la \
35         $(top_builddir)/src/libstrongswan/libstrongswan.la
36
37 imc_swid_la_SOURCES = imc_swid.c imc_swid_state.h imc_swid_state.c
38
39 imc_swid_la_LDFLAGS = -module -avoid-version