f9c1be2712f1bda0332afb649ea2f83f90874a81
[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 checksum.c : checksum_builder $(libs)
27                 ./checksum_builder $(libs) > checksum.c