From 12babeda63deaf8cd38a62bc2f3d3e3458b71d86 Mon Sep 17 00:00:00 2001 From: Romain Chantereay Date: Tue, 3 Aug 2004 15:12:45 +0000 Subject: New Autotools infrastructure. Don't hesitate to report bug (if any). Main changes: - No more, or so few AM_CONDITIONAL. - Binding compilation use AC_SUBST top level Makefile SUBDIRS. - Change order of AM Macro. - Added Macro. - Fix Windows Compilation. - New way to handle version number. - Use of lasso_config.h - more ? I do not remember. --- java/src/c/Makefile.am | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 java/src/c/Makefile.am (limited to 'java/src/c/Makefile.am') diff --git a/java/src/c/Makefile.am b/java/src/c/Makefile.am new file mode 100644 index 00000000..eec8fca9 --- /dev/null +++ b/java/src/c/Makefile.am @@ -0,0 +1,34 @@ +if MINGW +JAVA_CFLAGS = -mno-cygwin -mwindows -D_MSC_VER=1 \ + -D_WIN32 -DWIN32 -DLASSO_DEBUG \ + -I../../.. \ + -I../../win32 \ + -I. -g \ + -I/usr/local/include \ + -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include \ + -I/usr/local/include/libxml2 \ + -DXMLSEC_CRYPTO="openssl" -DXMLSEC_LIBXML_260=1 \ + -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_XKMS=1 \ + -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 +else +JAVA_CFLAGS = \ + -g \ + -I. -I/opt/jdk/include -I/opt/jdk/include/linux \ + -I../../.. \ + -I/usr/include/libxml2 \ + -I/usr/include/glib-2.0 \ + -I/usr/lib/glib-2.0/include \ + -DXMLSEC_LIBXML_260=1 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=\"openssl\" +endif +C_SOURCE = ${wildcard *.c} +C_OBJECT = ${C_SOURCE:.c=.o} + +.PHONY: clean all + +all: ${C_OBJECT} + +%.o: %.c %.h + ${CC} $(JAVA_CFLAGS) -c $< + +clean: + rm -f ${C_OBJECT} *~ -- cgit