2002-02-27 09:42:52 +00:00
|
|
|
## Makefile for building ethereal.exe with Microsoft C and nmake
|
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2002-02-27 09:42:52 +00:00
|
|
|
|
2000-10-11 07:35:02 +00:00
|
|
|
include ..\config.nmake
|
2004-05-09 10:03:41 +00:00
|
|
|
include <win32.mak>
|
2004-03-22 20:35:07 +00:00
|
|
|
include Makefile.common
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2004-05-09 10:03:41 +00:00
|
|
|
|
2000-10-11 07:35:02 +00:00
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
2004-01-22 19:27:59 +00:00
|
|
|
CFLAGS=-DHAVE_CONFIG_H /I. /I.. /I../wiretap $(GLIB_CFLAGS) \
|
2004-05-06 20:48:36 +00:00
|
|
|
$(ZLIB_CFLAGS) $(ADNS_CFLAGS) $(PCRE_CFLAGS) /I$(PCAP_DIR)\include \
|
2003-12-07 00:04:32 +00:00
|
|
|
-D_U_="" $(LOCAL_CFLAGS)
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
|
2004-05-09 10:03:41 +00:00
|
|
|
# For use when making libethereal.dll
|
2000-10-14 04:31:26 +00:00
|
|
|
libethereal_LIBS = \
|
2004-05-09 10:03:41 +00:00
|
|
|
$(GLIB_LIBS) \
|
|
|
|
$(ADNS_LIBS) \
|
|
|
|
$(PCRE_LIBS) \
|
2004-10-15 15:36:12 +00:00
|
|
|
$(NETTLE_LIBS) \
|
2004-05-09 10:03:41 +00:00
|
|
|
$(ZLIB_LIBS) \
|
2004-10-15 18:30:05 +00:00
|
|
|
$(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
ftypes\ftypes.lib \
|
|
|
|
dfilter\dfilter.lib \
|
2004-07-18 18:06:47 +00:00
|
|
|
dissectors\dissectors.lib
|
2000-10-14 04:31:26 +00:00
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
2004-03-22 20:35:07 +00:00
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2004-08-10 15:10:45 +00:00
|
|
|
LIBETHEREAL_OBJECTS = $(LIBETHEREAL_SRC:.c=.obj)
|
2004-07-18 23:46:07 +00:00
|
|
|
|
|
|
|
EXTRA_OBJECTS = \
|
|
|
|
# snprintf.obj \
|
|
|
|
# strerror.obj \
|
2004-08-10 07:52:11 +00:00
|
|
|
inet_aton.obj \
|
|
|
|
inet_pton.obj \
|
|
|
|
inet_ntop.obj \
|
2005-02-13 00:10:15 +00:00
|
|
|
mkstemp.obj \
|
|
|
|
strptime.obj
|
2004-07-18 23:46:07 +00:00
|
|
|
|
|
|
|
|
2004-05-09 10:03:41 +00:00
|
|
|
!IFDEF ENABLE_LIBETHEREAL
|
2004-07-18 18:06:47 +00:00
|
|
|
all: ftypes dfilter dissectors libethereal.dll
|
2004-05-09 10:03:41 +00:00
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
all: ftypes dfilter dissectors ethereal.lib
|
2004-05-09 10:03:41 +00:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# For use when making libethereal.dll
|
|
|
|
libethereal.lib: libethereal.dll
|
|
|
|
libethereal.exp: libethereal.dll
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2005-02-10 01:26:19 +00:00
|
|
|
libethereal.dll: ..\config.h $(LIBETHEREAL_OBJECTS) libethereal.def ftypes dfilter dissectors doxygen $(EXTRA_OBJECTS) ..\image\libethereal.res
|
2004-07-27 18:56:50 +00:00
|
|
|
@echo Linking libethereal.dll
|
2004-05-09 10:03:41 +00:00
|
|
|
$(link) $(dlllflags) $(conlibsdll) \
|
|
|
|
$(LOCAL_LDFLAGS) \
|
|
|
|
/DEF:libethereal.def /OUT:libethereal.dll \
|
2004-08-10 07:52:11 +00:00
|
|
|
/IMPLIB:libethereal.lib $(LIBETHEREAL_OBJECTS) \
|
|
|
|
$(libethereal_LIBS) ..\image\libethereal.res \
|
2005-02-10 01:26:19 +00:00
|
|
|
dissectors\register.obj \
|
2004-08-10 07:52:11 +00:00
|
|
|
$(EXTRA_OBJECTS)
|
2000-10-14 04:31:26 +00:00
|
|
|
|
2004-09-04 11:21:20 +00:00
|
|
|
ethereal.lib : ..\config.h $(LIBETHEREAL_OBJECTS) $(EXTRA_OBJECTS)
|
2004-08-10 07:52:11 +00:00
|
|
|
link /lib /out:ethereal.lib $(LIBETHEREAL_OBJECTS) \
|
2005-02-10 01:26:19 +00:00
|
|
|
$(EXTRA_OBJECTS)
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2004-05-06 20:48:36 +00:00
|
|
|
..\config.h : ..\config.h.win32 ..\config.nmake
|
|
|
|
cd ..
|
|
|
|
$(MAKE) -f Makefile.nmake config.h
|
|
|
|
cd epan
|
2000-10-11 07:35:02 +00:00
|
|
|
|
|
|
|
clean:
|
2005-02-10 01:26:19 +00:00
|
|
|
rm -f $(LIBETHEREAL_OBJECTS) $(EXTRA_OBJECTS) ethereal.lib libethereal.dll libethereal.lib libethereal.exp $(PDB_FILE) doxygen.cfg html/*.*
|
2004-07-27 18:56:50 +00:00
|
|
|
if exist html rmdir html
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ftypes
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ../dfilter
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2004-07-18 18:06:47 +00:00
|
|
|
cd ../dissectors
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2003-10-13 19:04:56 +00:00
|
|
|
cd ..
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2003-10-10 21:31:53 +00:00
|
|
|
distclean: clean
|
2005-02-13 00:10:15 +00:00
|
|
|
rm -f config.h register.c mkstemp.c strptime.c
|
2003-10-10 21:31:53 +00:00
|
|
|
cd ftypes
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../dfilter
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2004-07-27 18:56:50 +00:00
|
|
|
cd ../dissectors
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2003-10-13 19:04:56 +00:00
|
|
|
cd ..
|
2001-02-02 04:03:43 +00:00
|
|
|
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
maintainer-clean: distclean
|
|
|
|
cd ftypes
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../dfilter
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../dissectors
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ..
|
|
|
|
|
2004-05-06 20:48:36 +00:00
|
|
|
ftypes:: ..\config.h
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ftypes
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ..
|
|
|
|
|
2004-05-06 20:48:36 +00:00
|
|
|
dfilter:: ..\config.h
|
2001-02-02 04:03:43 +00:00
|
|
|
cd dfilter
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ..
|
2004-03-02 01:21:56 +00:00
|
|
|
|
2004-07-18 18:06:47 +00:00
|
|
|
dissectors:: ..\config.h
|
|
|
|
cd dissectors
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|
2004-06-25 07:10:55 +00:00
|
|
|
doxygen.cfg: ..\config.nmake doxygen.cfg.in
|
2004-05-13 10:10:28 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
2004-06-25 07:10:55 +00:00
|
|
|
< doxygen.cfg.in > $@
|
2004-05-13 10:10:28 +00:00
|
|
|
|
|
|
|
doxygen-run:
|
2004-05-11 00:53:12 +00:00
|
|
|
!IFDEF DOXYGEN
|
2004-06-25 07:10:55 +00:00
|
|
|
$(DOXYGEN) doxygen.cfg
|
2004-05-11 00:53:12 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2004-06-25 07:10:55 +00:00
|
|
|
doxygen: doxygen.cfg doxygen-run
|
2004-05-13 10:10:28 +00:00
|
|
|
|
2005-02-13 00:10:15 +00:00
|
|
|
|
|
|
|
# (Windows only) Copy some sources from /trunk to /trunk/epan.
|
|
|
|
# It is a cleaner to compile these sources seperately with this makefile than
|
|
|
|
# using the object code compiled by the makefile in /trunk for both dynamically
|
|
|
|
# and statically linking
|
|
|
|
|
|
|
|
mkstemp.c: ..\mkstemp.c
|
|
|
|
xcopy ..\mkstemp.c . /d /y
|
|
|
|
|
|
|
|
strptime.c: ..\strptime.c
|
|
|
|
xcopy ..\strptime.c . /d /y
|
|
|
|
|