f355ebf6807fce32daa3408e581cde7a1fc08f1c
[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 EXTRA_DIST = $(regid)_strongSwan.swidtag.in
8 CLEANFILES = $(regid)_strongSwan*.swidtag
9
10 $(swid_tag) : regid.2004-03.org.strongswan_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         -I$(top_srcdir)/src/libpts
24
25 AM_CFLAGS = \
26         -rdynamic
27
28 imcv_LTLIBRARIES = imc-swid.la
29
30 imc_swid_la_LIBADD = \
31         $(top_builddir)/src/libimcv/libimcv.la \
32         $(top_builddir)/src/libpts/libpts.la \
33         $(top_builddir)/src/libstrongswan/libstrongswan.la
34
35 imc_swid_la_SOURCES = imc_swid.c imc_swid_state.h imc_swid_state.c
36
37 imc_swid_la_LDFLAGS = -module -avoid-version
38
39 install-data-hook:
40         cp $(swiddir)/$(swid_tag) $(DESTDIR)$(ipsecdir)
41
42 uninstall-hook:
43         rm $(DESTDIR)$(ipsecdir)/*.swidtag
44