handle --disable-pluto/charon with --enable-integrity-test
[strongswan.git] / src / checksum / Makefile.am
index aaed128..440d3a8 100644 (file)
@@ -11,7 +11,16 @@ CLEANFILES = checksum.c checksum_builder
 INCLUDES = -I$(top_srcdir)/src/libstrongswan
 AM_CFLAGS = -rdynamic
 
-libs = $(shell find $(top_builddir)/src -name 'libstrongswan*.so')
+libs = $(shell find $(top_builddir)/src/libstrongswan $(top_builddir)/src/charon \
+                       -name 'libstrongswan*.so')
+
+if USE_CHARON
+  libs += $(top_builddir)/src/charon/.libs/charon
+endif
+
+if USE_PLUTO
+  libs += $(top_builddir)/src/pluto/.libs/pluto
+endif
 
 checksum.c : checksum_builder $(libs)
                ./checksum_builder $(libs) > checksum.c