Don't indirectly link dependent libraries.
[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 = $(top_builddir)/src/libstrongswan/libstrongswan.la $(DLLIB)
9
10 BUILT_SOURCES = checksum.c
11 CLEANFILES = checksum.c
12 INCLUDES = -I$(top_srcdir)/src/libstrongswan
13 AM_CFLAGS = -rdynamic
14
15 libs =  $(shell find $(top_builddir)/src/libstrongswan $(top_builddir)/src/libcharon \
16                         -name 'libstrongswan*.so')
17
18 if USE_CHARON
19   libs += $(top_builddir)/src/libcharon/.libs/libcharon.so
20   libs += $(top_builddir)/src/charon/.libs/charon
21 endif
22
23 if USE_PLUTO
24   libs += $(top_builddir)/src/pluto/.libs/pluto
25 endif
26
27 if USE_TOOLS
28   libs += $(top_builddir)/src/openac/.libs/openac
29   libs += $(top_builddir)/src/pki/.libs/pki
30   libs += $(top_builddir)/src/scepclient/.libs/scepclient
31 endif
32
33 if USE_ATTR_SQL
34   libs += $(top_builddir)/src/libstrongswan/plugins/attr_sql/.libs/pool
35 endif
36
37 checksum.c : checksum_builder $(libs)
38                 ./checksum_builder $(libs) > checksum.c