c089acba8aa7921319889860b23131d0276016e6
[strongswan.git] / src / checksum / Makefile.am
1 ipsec_LTLIBRARIES = libchecksum.la
2 noinst_PROGRAMS = checksum_builder
3
4 libchecksum_la_SOURCES = checksum.c
5
6 checksum_builder_SOURCES = checksum_builder.c
7 checksum_builder_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
8
9 BUILT_SOURCES = checksum.c
10 CLEANFILES = checksum.c checksum_builder
11 INCLUDES = -I$(top_srcdir)/src/libstrongswan
12 AM_CFLAGS = -rdynamic
13
14 libs =  $(shell find $(top_builddir)/src/libstrongswan $(top_builddir)/src/charon \
15                         -name 'libstrongswan*.so') \
16                 $(top_builddir)/src/charon/.libs/charon \
17                 $(top_builddir)/src/pluto/.libs/pluto
18
19 checksum.c : checksum_builder $(libs)
20                 ./checksum_builder $(libs) > checksum.c