removed trailing spaces ([[:space:]]+$)
[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
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/charon \
16                         -name 'libstrongswan*.so')
17
18 if USE_CHARON
19   libs += $(top_builddir)/src/charon/.libs/charon
20 endif
21
22 if USE_PLUTO
23   libs += $(top_builddir)/src/pluto/.libs/pluto
24 endif
25
26 if USE_TOOLS
27   libs += $(top_builddir)/src/openac/.libs/openac
28   libs += $(top_builddir)/src/pki/.libs/pki
29   libs += $(top_builddir)/src/scepclient/.libs/scepclient
30 endif
31
32 if USE_SQL
33   libs += $(top_builddir)/src/charon/plugins/sql/.libs/pool
34 endif
35
36 checksum.c : checksum_builder $(libs)
37                 ./checksum_builder $(libs) > checksum.c