updates.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 25 Jun 2001 21:16:48 +0000 (21:16 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 25 Jun 2001 21:16:48 +0000 (21:16 +0000)
CHANGES
includes/silcincludes.h
lib/Makefile.am.pre
lib/silcmath/silcmp.h

diff --git a/CHANGES b/CHANGES
index 5fed3955a779dda5f564608fcc470efe4ab5e4e5..22ad867123fa334a5b0c6288e4083f02861aaabd 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,12 @@
+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.
index 3f9c41b4e6717b926760790dffa5c3127c93cdc4..ad8ac5426784b611da0510989ed893e7535248c7 100644 (file)
 #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
index 60b16fb12cd8c9f525d9e3c3c60a13cde825e8de..0b553b69a08c7e9f48c6308905e0d548d8f67db4 100644 (file)
@@ -60,7 +60,7 @@ if SILC_DIST_TOOLKIT
 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
@@ -71,6 +71,19 @@ remove:
        -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
index 42d99057d43077aa29704b6aec9c41e982652386..62d7a0d015a0598f9fc16749cbdcfeea7341243b 100644 (file)
@@ -6,9 +6,9 @@
  *
  * 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