Create a dummy pthread key for value "0", as some buggy PKCS#11 libraries mangle it
[strongswan.git] / Makefile.am
index 4114e3f..4757c8c 100644 (file)
@@ -1,12 +1,30 @@
-SUBDIRS = src
-EXTRA_DIST = Doxyfile.in
-CLEANFILES = apidoc Doxyfile
+SUBDIRS = src man init testing
+
+if USE_SCRIPTS
+  SUBDIRS += scripts
+endif
+
+ACLOCAL_AMFLAGS = -I m4/config
+
+EXTRA_DIST = Doxyfile.in CREDITS Android.mk.in Android.mk
+CLEANFILES = Doxyfile
+BUILT_SOURCES = Android.mk
+MAINTAINERCLEANFILES = Android.mk
+
+Android.mk :   Android.mk.in configure.in
+               sed \
+               -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
+               $(srcdir)/$@.in > $@
 
 Doxyfile :     Doxyfile.in
                sed \
                -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
                -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
 
 Doxyfile :     Doxyfile.in
                sed \
                -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
                -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
-               $< > $@
+               -e "s:\@SRC_DIR\@:$(srcdir):" \
+               $(srcdir)/$@.in > $@
 
 apidoc :       Doxyfile
                doxygen
 
 apidoc :       Doxyfile
                doxygen
+
+clean-local:
+               rm -rf apidoc