Segment check added for libhydra.
[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/libcharon/libcharon.la \
11         $(DLLIB)
12
13 BUILT_SOURCES = checksum.c
14 CLEANFILES = checksum.c
15 INCLUDES = -I$(top_srcdir)/src/libstrongswan
16 AM_CFLAGS = -rdynamic
17
18 libs =  $(shell find $(top_builddir)/src/libstrongswan \
19                         $(top_builddir)/src/libcharon \
20                         $(top_builddir)/src/libhydra \
21                         -name 'libstrongswan*.so')
22
23 if USE_LIBHYDRA
24   libs += $(top_builddir)/src/libhydra/.libs/libhydra.so
25 endif
26
27 if USE_CHARON
28   libs += $(top_builddir)/src/libcharon/.libs/libcharon.so
29   libs += $(top_builddir)/src/charon/.libs/charon
30 endif
31
32 if USE_PLUTO
33   libs += $(top_builddir)/src/pluto/.libs/pluto
34 endif
35
36 if USE_TOOLS
37   libs += $(top_builddir)/src/openac/.libs/openac
38   libs += $(top_builddir)/src/pki/.libs/pki
39   libs += $(top_builddir)/src/scepclient/.libs/scepclient
40 endif
41
42 if USE_ATTR_SQL
43   libs += $(top_builddir)/src/libhydra/plugins/attr_sql/.libs/pool
44 endif
45
46 checksum.c : checksum_builder $(libs)
47                 ./checksum_builder $(libs) > checksum.c