+Mon Jun 25 21:42:51 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
+
+ * Do not add regex.h for WIN32. The affected file
+ includes/silcincludes.h.
+
+ * Added WIN32 DLL generation to lib/Makefile.am.pre. It might
+ not work yet 100%. It generates the DLL's automatically
+ when compiling with --with-win32 under cygwin.
+
Sun Jun 24 19:49:23 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
* lib/contrib/regex.c is not compiled on WIN32.
#include <limits.h>
#endif
-#endif /* !SILC_WIN32 */
-
-#ifndef HAVE_GETOPT_LONG
-#include "../lib/contrib/getopt.h"
-#endif
-
#ifndef HAVE_REGEX_H
#include "../lib/contrib/regex.h"
#else
#include <regex.h>
#endif
+#endif /* !SILC_WIN32 */
+
+#ifndef HAVE_GETOPT_LONG
+#include "../lib/contrib/getopt.h"
+#endif
+
#ifndef TRUE
#define TRUE 1
#endif
all: remove libsilc.a libsilcclient.a
else
if SILC_DIST_WIN32DLL
-all: remove libsilc.a libsilcclient.a
+all: silc.dll silcclient.dll
else
all: remove libsilc.a
endif
-rm -rf libsilc.a
-rm -rf libsilcclient.a
+if SILC_DIST_WIN32DLL
+# WIN32 DLL generation
+silc.dll: libsilc.a
+ dllwrap --export-all --output-def silc.def \
+ --implib libsilc.a --driver-name $(CC) --target i386-mingw32 \
+ --mno-cygwin -o silc.dll libsilc.a -lwsock32
+
+silcclient.dll: libsilcclient.a
+ dllwrap --export-all --output-def silcclient.def \
+ --implib libsilcclient.a --driver-name $(CC) --target i386-mingw32 \
+ --mno-cygwin -o silcclient.dll libsilcclient.a
+endif
+
libsilc.a:
find $(SILCLIB_DIRS) -type f -name *.o | xargs $(AR) cru libsilc.a
ranlib libsilc.a
*
* COPYRIGHT
*
- * Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+ * Author: Pekka Riikonen <priikone@silcnet.org>
*
- * Copyright (C) 1997 - 2000 Pekka Riikonen
+ * Copyright (C) 1997 - 2001 Pekka Riikonen
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by