2006-05-31 19:12:15 +00:00
|
|
|
## Makefile for building wireshark.exe with Microsoft C and nmake
|
2002-02-27 09:42:52 +00:00
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2002-02-27 09:42:52 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
include ..\config.nmake
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
############### no need to modify below this line #########
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2006-02-07 10:26:20 +00:00
|
|
|
CFLAGS=-DHAVE_CONFIG_H /I.. /I../wiretap $(GTK_CFLAGS) $(GNUTLS_CFLAGS) \
|
2001-12-08 09:27:51 +00:00
|
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
|
|
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
|
2002-10-24 07:08:26 +00:00
|
|
|
/I$(PCAP_DIR)\include /I$(NET_SNMP_DIR)\include \
|
2006-04-20 20:27:44 +00:00
|
|
|
/I$(NET_SNMP_DIR)\win32 /Zm800 -D_U_="" -D_NEED_VAR_IMPORT_ $(LOCAL_CFLAGS) \
|
|
|
|
!IFDEF HHC_DIR
|
|
|
|
/I$(HHC_DIR)\include -DHHC_DIR
|
|
|
|
!ENDIF
|
2000-01-15 00:23:13 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
!IFDEF WIRESHARK_EUG_DIR
|
|
|
|
EUG_CFLAGS=-DWIRESHARK_EUG_DIR
|
2004-09-16 22:07:03 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
2005-02-20 04:31:30 +00:00
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) $(EUG_CFLAGS) -Fd.\ -c $<
|
2000-05-29 20:11:41 +00:00
|
|
|
|
2004-01-22 18:08:58 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
|
|
|
|
|
|
|
# if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
|
2006-05-31 19:12:15 +00:00
|
|
|
WIRESHARK_WIN32_GTK_SRC = \
|
|
|
|
$(WIRESHARK_GTK_SRC) \
|
2006-02-13 21:25:43 +00:00
|
|
|
print_mswin.c \
|
|
|
|
win32-file-dlg.c
|
2004-01-22 18:08:58 +00:00
|
|
|
|
2002-11-07 05:33:50 +00:00
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
WIRESHARK_TAP_OBJECTS = $(WIRESHARK_TAP_SRC:.c=.obj)
|
2002-11-06 10:53:36 +00:00
|
|
|
|
2004-01-22 18:08:58 +00:00
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
WIRESHARK_WIN32_GTK_OBJECTS = $(WIRESHARK_WIN32_GTK_SRC:.c=.obj)
|
2004-01-22 18:08:58 +00:00
|
|
|
|
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
libui.lib : ..\config.h $(WIRESHARK_WIN32_GTK_OBJECTS) $(WIRESHARK_TAP_OBJECTS)
|
|
|
|
link /lib /out:libui.lib $(WIRESHARK_WIN32_GTK_OBJECTS) $(WIRESHARK_TAP_OBJECTS)
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) ../make-tapreg-dotc Makefile.common
|
|
|
|
@echo Making wireshark-tap-register.c
|
|
|
|
@$(SH) ../make-tapreg-dotc wireshark-tap-register.c . $(WIRESHARK_TAP_SRC)
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2004-05-31 13:42:17 +00:00
|
|
|
|
2000-04-04 08:22:13 +00:00
|
|
|
clean:
|
2006-05-31 19:12:15 +00:00
|
|
|
rm -f $(WIRESHARK_WIN32_GTK_OBJECTS) $(WIRESHARK_TAP_OBJECTS) libui.lib $(PDB_FILE) doxygen.cfg html/*.*
|
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
|
|
|
if exist html rmdir html
|
2003-10-10 21:31:53 +00:00
|
|
|
|
|
|
|
distclean: clean
|
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
|
|
|
|
rm -f $(GENERATED_FILES)
|
2004-05-31 13:42:17 +00:00
|
|
|
|
2004-06-25 07:10:55 +00:00
|
|
|
# convert doxygen.cfg.in to doxygen.cfg with stamped version info
|
|
|
|
doxygen.cfg: ..\config.nmake doxygen.cfg.in
|
2004-06-04 17:19:01 +00:00
|
|
|
!IFDEF DOXYGEN
|
2004-05-31 13:42:17 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
2004-06-25 07:10:55 +00:00
|
|
|
< doxygen.cfg.in > $@
|
2004-06-04 17:19:01 +00:00
|
|
|
!ENDIF
|
2004-05-31 13:42:17 +00:00
|
|
|
|
|
|
|
doxygen-run:
|
|
|
|
!IFDEF DOXYGEN
|
2004-06-25 07:10:55 +00:00
|
|
|
$(DOXYGEN) doxygen.cfg
|
2004-05-31 13:42:17 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2004-06-04 17:19:01 +00:00
|
|
|
# MS html help conpiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
|
|
|
|
# the prepended -1 will raise the accepted error levels of nmake, so it will continue
|
|
|
|
doxygen.chm:
|
|
|
|
!IFDEF HHC
|
|
|
|
-1 $(HHC) html\index.hhp
|
|
|
|
!ENDIF
|
|
|
|
|
2004-06-25 07:10:55 +00:00
|
|
|
doxygen: doxygen.cfg doxygen-run doxygen.chm
|
2004-05-31 13:42:17 +00:00
|
|
|
|