2011-11-08 16:58:32 +00:00
|
|
|
# this lib is not built until make install is called (see rules at the bottom)
|
|
|
|
EXTRA_LTLIBRARIES = libchecksum.la
|
|
|
|
ipseclib_LTLIBRARIES = $(LIBCHECKSUM_LIBS)
|
2009-07-16 14:50:55 +00:00
|
|
|
nodist_libchecksum_la_SOURCES = checksum.c
|
2011-11-08 16:58:32 +00:00
|
|
|
libchecksum_la_LDFLAGS = -module -avoid-version -rpath '$(ipseclibdir)'
|
2009-06-19 09:42:54 +00:00
|
|
|
|
2011-11-08 16:58:32 +00:00
|
|
|
noinst_PROGRAMS = checksum_builder
|
2009-06-19 09:42:54 +00:00
|
|
|
checksum_builder_SOURCES = checksum_builder.c
|
2010-03-24 16:54:07 +00:00
|
|
|
checksum_builder_LDADD = \
|
|
|
|
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
2010-03-24 16:46:56 +00:00
|
|
|
$(top_builddir)/src/libhydra/libhydra.la \
|
2010-03-24 16:54:07 +00:00
|
|
|
$(top_builddir)/src/libcharon/libcharon.la \
|
|
|
|
$(DLLIB)
|
2009-06-19 09:42:54 +00:00
|
|
|
|
2009-07-16 14:50:55 +00:00
|
|
|
CLEANFILES = checksum.c
|
2011-11-08 16:58:32 +00:00
|
|
|
INCLUDES = \
|
|
|
|
-I$(top_srcdir)/src/libstrongswan \
|
|
|
|
-I$(top_srcdir)/src/libhydra \
|
2011-05-25 08:38:31 +00:00
|
|
|
-I$(top_srcdir)/src/libcharon
|
2011-11-08 16:58:32 +00:00
|
|
|
AM_CFLAGS = \
|
|
|
|
-DPLUGINDIR=\"${plugindir}\" \
|
|
|
|
-rdynamic
|
2009-06-19 09:42:54 +00:00
|
|
|
|
2011-11-08 16:58:32 +00:00
|
|
|
# we keep track of build dependencies in deps and use libs to store the paths
|
|
|
|
# to the installed libraries. for executables we use the built files directly
|
|
|
|
# as these are not relinked during installation.
|
|
|
|
deps = $(top_builddir)/src/libstrongswan/libstrongswan.la
|
|
|
|
libs = $(DESTDIR)$(ipseclibdir)/libstrongswan.so
|
|
|
|
exes =
|
2009-06-22 14:37:28 +00:00
|
|
|
|
2011-06-08 13:46:07 +00:00
|
|
|
if !MONOLITHIC
|
2011-11-08 16:58:32 +00:00
|
|
|
AM_CFLAGS += -DS_PLUGINS=\""${s_plugins}\""
|
2011-06-08 13:46:07 +00:00
|
|
|
endif
|
|
|
|
|
2010-03-24 10:00:11 +00:00
|
|
|
if USE_LIBHYDRA
|
2011-11-08 16:58:32 +00:00
|
|
|
deps += $(top_builddir)/src/libhydra/libhydra.la
|
|
|
|
libs += $(DESTDIR)$(ipseclibdir)/libhydra.so
|
2011-06-08 13:46:07 +00:00
|
|
|
if !MONOLITHIC
|
2011-11-08 16:58:32 +00:00
|
|
|
AM_CFLAGS += -DH_PLUGINS=\""${h_plugins}\""
|
|
|
|
endif
|
2010-03-24 10:00:11 +00:00
|
|
|
endif
|
2011-11-08 17:15:55 +00:00
|
|
|
|
|
|
|
if USE_TLS
|
|
|
|
deps += $(top_builddir)/src/libtls/libtls.la
|
|
|
|
libs += $(DESTDIR)$(ipseclibdir)/libtls.so
|
2011-06-08 13:46:07 +00:00
|
|
|
endif
|
2010-03-24 10:00:11 +00:00
|
|
|
|
2011-11-02 05:41:48 +00:00
|
|
|
if USE_LIBTNCCS
|
2011-11-08 16:58:32 +00:00
|
|
|
deps += $(top_builddir)/src/libtnccs/libtnccs.la
|
|
|
|
libs += $(DESTDIR)$(ipseclibdir)/libtnccs.so
|
2011-11-02 05:41:48 +00:00
|
|
|
endif
|
|
|
|
|
2011-11-04 10:27:05 +00:00
|
|
|
if USE_SIMAKA
|
2011-11-08 17:15:55 +00:00
|
|
|
deps += $(top_builddir)/src/libsimaka/libsimaka.la
|
|
|
|
libs += $(DESTDIR)$(ipseclibdir)/libsimaka.so
|
2011-11-04 10:27:05 +00:00
|
|
|
endif
|
|
|
|
|
2011-11-24 13:59:19 +00:00
|
|
|
if USE_IMCV
|
|
|
|
deps += $(top_builddir)/src/libimcv/libimcv.la
|
|
|
|
libs += $(DESTDIR)$(ipseclibdir)/libimcv.so
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_PTS
|
|
|
|
deps += $(top_builddir)/src/libpts/libpts.la
|
|
|
|
libs += $(DESTDIR)$(ipseclibdir)/libpts.so
|
|
|
|
endif
|
|
|
|
|
2009-06-22 14:37:28 +00:00
|
|
|
if USE_CHARON
|
2011-11-08 16:58:32 +00:00
|
|
|
deps += $(top_builddir)/src/libcharon/libcharon.la
|
|
|
|
libs += $(DESTDIR)$(ipseclibdir)/libcharon.so
|
|
|
|
exes += $(top_builddir)/src/charon/.libs/charon
|
2011-06-08 13:46:07 +00:00
|
|
|
if !MONOLITHIC
|
2011-11-08 16:58:32 +00:00
|
|
|
AM_CFLAGS += -DC_PLUGINS=\""${c_plugins}\""
|
2009-06-22 14:37:28 +00:00
|
|
|
endif
|
2011-06-08 13:46:07 +00:00
|
|
|
endif
|
2009-06-22 14:37:28 +00:00
|
|
|
|
|
|
|
if USE_PLUTO
|
2011-11-08 16:58:32 +00:00
|
|
|
exes += $(top_builddir)/src/pluto/.libs/pluto
|
|
|
|
AM_CFLAGS += -DP_PLUGINS=\""${p_plugins}\""
|
2009-06-22 14:37:28 +00:00
|
|
|
endif
|
2009-06-19 09:52:51 +00:00
|
|
|
|
2009-08-17 12:25:18 +00:00
|
|
|
if USE_TOOLS
|
2011-11-08 16:58:32 +00:00
|
|
|
exes += $(top_builddir)/src/openac/.libs/openac
|
|
|
|
exes += $(top_builddir)/src/pki/.libs/pki
|
|
|
|
exes += $(top_builddir)/src/scepclient/.libs/scepclient
|
2009-08-17 12:25:18 +00:00
|
|
|
endif
|
|
|
|
|
2009-10-13 15:02:29 +00:00
|
|
|
if USE_ATTR_SQL
|
2011-11-08 16:58:32 +00:00
|
|
|
exes += $(top_builddir)/src/libhydra/plugins/attr_sql/.libs/pool
|
2009-08-17 13:46:56 +00:00
|
|
|
endif
|
|
|
|
|
2011-11-24 13:59:19 +00:00
|
|
|
if USE_IMV_ATTESTATION
|
2011-11-24 23:18:58 +00:00
|
|
|
exes += $(top_builddir)/src/libpts/plugins/imv_attestation/.libs/attest
|
2011-11-24 13:59:19 +00:00
|
|
|
endif
|
|
|
|
|
2011-11-08 16:58:32 +00:00
|
|
|
checksum.c : checksum_builder $(deps) $(exes)
|
|
|
|
./checksum_builder $(libs) $(exes) > checksum.c
|
|
|
|
|
|
|
|
install-data-hook : $(EXTRA_LTLIBRARIES)
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) LIBCHECKSUM_LIBS='$(EXTRA_LTLIBRARIES)' install-ipseclibLTLIBRARIES
|
|
|
|
|
|
|
|
uninstall-hook :
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) LIBCHECKSUM_LIBS='$(EXTRA_LTLIBRARIES)' uninstall-ipseclibLTLIBRARIES
|
|
|
|
|
|
|
|
clean-local :
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) LIBCHECKSUM_LIBS='$(EXTRA_LTLIBRARIES)' clean-ipseclibLTLIBRARIES
|