aaed128dce09372270bde77a959cefafe308608b
[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 -name 'libstrongswan*.so')
15
16 checksum.c : checksum_builder $(libs)
17                 ./checksum_builder $(libs) > checksum.c