## Makefile for building ethereal.exe with Microsoft C and nmake
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#
-# $Id: Makefile.nmake,v 1.306 2003/06/11 22:36:17 guy Exp $
+# $Id: Makefile.nmake,v 1.307 2003/06/12 09:45:42 guy Exp $
include config.nmake
include <win32.mak>
/OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS)
<<
-config.h : config.h.win32
- sed -e s/@VERSION@/$(VERSION)/ < config.h.win32 > $@
+config.h : config.h.win32 config.nmake
+!IFDEF ADNS_DIR
+ sed -e s/@VERSION@/$(VERSION)/ -e "s;@HAVE_GNU_ADNS@;#define HAVE_GNU_ADNS 1;" < config.h.win32 > $@
+!ELSE
+ sed -e s/@VERSION@/$(VERSION)/ -e "s;@HAVE_GNU_ADNS@;/* #undef HAVE_GNU_ADNS */;" < config.h.win32 > $@
+!ENDIF
ps.c : rdps.exe print.ps
rdps print.ps ps.c
-/* $Id: config.h.win32,v 1.39 2003/06/02 18:40:00 gerald Exp $ */
+/* $Id: config.h.win32,v 1.40 2003/06/12 09:45:42 guy Exp $ */
/* config.h.win32 Generated manually. :-) */
/* config.h. Generated automatically by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
#define HAVE_LIBZ 1
/* Define to use GNU ADNS library */
-#define HAVE_GNU_ADNS 1
+@HAVE_GNU_ADNS@
#define ADNS_JGAA_WIN32 1
#ifndef WIN32
-# $Id: config.nmake,v 1.40 2003/06/10 01:47:33 gerald Exp $
+# $Id: config.nmake,v 1.41 2003/06/12 09:45:42 guy Exp $
VERSION=0.9.13
RC_VERSION=0.9.13
ZLIB_DIR=C:\ethereal-win32-libs\zlib-1.1.3
PCAP_DIR=C:\ethereal-win32-libs\WPdpack
NET_SNMP_DIR=C:\ethereal-win32-libs\net-snmp-5.0.6
+
+#
+# If you have GNU ADNS, set this to the pathname of the directory in
+# which the GNU ADNS .lib file is stored.
+#
+# If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
+# isn't defined.
+#
ADNS_DIR=C:\ethereal-win32-libs\adns-1.0-win32-01
COMMON_FILES_GNU=c:\program files\common files\gnu
## Makefile for building ethereal.exe with Microsoft C and nmake
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#
-# $Id: Makefile.nmake,v 1.24 2003/06/02 18:40:01 gerald Exp $
+# $Id: Makefile.nmake,v 1.25 2003/06/12 09:45:42 guy Exp $
include ..\config.nmake
ethereal.lib : config.h $(OBJECTS)
lib /out:ethereal.lib $(OBJECTS)
-config.h : config.h.win32
- sed -e s/@VERSION@/$(VERSION)/ < config.h.win32 > $@
+config.h : config.h.win32 ..\config.nmake
+!IFDEF ADNS_DIR
+ sed -e s/@VERSION@/$(VERSION)/ -e "s;@HAVE_GNU_ADNS@;#define HAVE_GNU_ADNS 1;" < config.h.win32 > $@
+!ELSE
+ sed -e s/@VERSION@/$(VERSION)/ -e "s;@HAVE_GNU_ADNS@;/* #undef HAVE_GNU_ADNS */;" < config.h.win32 > $@
+!ENDIF
clean:
rm -f $(OBJECTS) ethereal.lib config.h $(PDB_FILE)
-/* $Id: config.h.win32,v 1.11 2003/06/02 18:40:01 gerald Exp $ */
+/* $Id: config.h.win32,v 1.12 2003/06/12 09:45:42 guy Exp $ */
/* config.h.win32 Generated manually. :-) */
/* config.h. Generated automatically by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* #undef HAVE_UNISTD_H */
/* Define to use GNU ADNS library */
-#define HAVE_GNU_ADNS 1
+@HAVE_GNU_ADNS@
#define ADNS_JGAA_WIN32 1
#define HAVE_PLUGINS 1