Use an explicit plugin list instead of the unrealible "find" to build checksums
[strongswan.git] / src / checksum / Makefile.am
1 ipsec_LTLIBRARIES = libchecksum.la
2 noinst_PROGRAMS = checksum_builder
3
4 nodist_libchecksum_la_SOURCES = checksum.c
5 libchecksum_la_LDFLAGS = -module -avoid-version
6
7 checksum_builder_SOURCES = checksum_builder.c
8 checksum_builder_LDADD = \
9         $(top_builddir)/src/libstrongswan/libstrongswan.la \
10         $(top_builddir)/src/libhydra/libhydra.la \
11         $(top_builddir)/src/libcharon/libcharon.la \
12         $(DLLIB)
13
14 BUILT_SOURCES = checksum.c
15 CLEANFILES = checksum.c
16 INCLUDES = -I$(top_srcdir)/src/libstrongswan
17 AM_CFLAGS = -rdynamic \
18         -DS_PLUGINS=\""${s_plugins}\"" -DS_PATH=\""${top_builddir}/src/libstrongswan/plugins\"" \
19         -DH_PLUGINS=\""${h_plugins}\"" -DH_PATH=\""${top_builddir}/src/libhydra/plugins\"" \
20         -DP_PLUGINS=\""${p_plugins}\"" -DP_PATH=\""${top_builddir}/src/pluto/plugins\"" \
21         -DC_PLUGINS=\""${c_plugins}\"" -DC_PATH=\""${top_builddir}/src/libcharon/plugins\""
22
23 libs = $(top_builddir)/src/libstrongswan/.libs/libstrongswan.so
24
25 if USE_LIBHYDRA
26   libs += $(top_builddir)/src/libhydra/.libs/libhydra.so
27 endif
28
29 if USE_CHARON
30   libs += $(top_builddir)/src/libcharon/.libs/libcharon.so
31   libs += $(top_builddir)/src/charon/.libs/charon
32 endif
33
34 if USE_PLUTO
35   libs += $(top_builddir)/src/pluto/.libs/pluto
36 endif
37
38 if USE_TOOLS
39   libs += $(top_builddir)/src/openac/.libs/openac
40   libs += $(top_builddir)/src/pki/.libs/pki
41   libs += $(top_builddir)/src/scepclient/.libs/scepclient
42 endif
43
44 if USE_ATTR_SQL
45   libs += $(top_builddir)/src/libhydra/plugins/attr_sql/.libs/pool
46 endif
47
48 checksum.c : checksum_builder $(libs)
49                 ./checksum_builder $(libs) > checksum.c