Build all shared libraries with -no-undefined and link them properly
[strongswan.git] / src / libfast / Makefile.am
index 54f4491..41a489b 100644 (file)
@@ -1,13 +1,25 @@
+AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/libstrongswan \
+       -I/usr/include/ClearSilver
+
+AM_CFLAGS = \
+       -rdynamic
+
+AM_LDFLAGS = \
+       -no-undefined
+
 ipseclib_LTLIBRARIES = libfast.la
 
 libfast_la_SOURCES = \
-       dispatcher.c request.c session.c smtp.c
+       fast_dispatcher.c fast_request.c fast_session.c fast_smtp.c
 
-fast_includedir = $(includedir)/strongswan/fast
+if USE_DEV_HEADERS
+fast_includedir = ${dev_headers}/fast
 nobase_fast_include_HEADERS = \
-       context.h controller.h dispatcher.h filter.h request.h session.h smtp.h
+       fast_context.h fast_controller.h fast_dispatcher.h fast_filter.h \
+       fast_request.h fast_session.h fast_smtp.h
+endif
 
-libfast_la_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la \
-  -lfcgi $(clearsilver_LIBS) $(PTHREADLIB)
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I/usr/include/ClearSilver
-AM_CFLAGS = -rdynamic
+libfast_la_LIBADD = \
+       $(top_builddir)/src/libstrongswan/libstrongswan.la \
+       -lfcgi $(clearsilver_LIBS) $(PTHREADLIB)