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
|
2010-11-13 14:47:53 +00:00
|
|
|
include ..\Makefile.nmake.inc
|
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
|
|
|
|
2010-11-16 09:15:15 +00:00
|
|
|
# We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
|
2011-02-02 01:19:53 +00:00
|
|
|
GENERATED_CFLAGS=\
|
|
|
|
$(STANDARD_CFLAGS) \
|
|
|
|
-D_NEED_VAR_IMPORT_ /Zm800 \
|
|
|
|
/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 \
|
2007-09-24 06:59:40 +00:00
|
|
|
/I$(PCAP_DIR)\include $(AIRPCAP_CFLAGS) \
|
2006-09-12 00:27:03 +00:00
|
|
|
$(PORTAUDIO_CFLAGS) \
|
|
|
|
$(HHC_CFLAGS)
|
2000-01-15 00:23:13 +00:00
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
|
2001-03-23 02:05:29 +00:00
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
2006-09-12 00:27:03 +00:00
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) $(WSUG_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
|
2010-11-30 02:04:55 +00:00
|
|
|
WIRESHARK_GTK_SRC = \
|
2006-05-31 19:12:15 +00:00
|
|
|
$(WIRESHARK_GTK_SRC) \
|
2008-05-23 05:55:34 +00:00
|
|
|
$(GENERATED_C_FILES) \
|
2011-09-25 22:20:41 +00:00
|
|
|
capture_if_details_dlg_win32.c
|
2010-11-30 20:57:43 +00:00
|
|
|
|
|
|
|
PORT_AUDIO_SRC = \
|
2006-09-12 00:27:03 +00:00
|
|
|
!IFDEF PORTAUDIO_DIR
|
2006-10-07 14:24:32 +00:00
|
|
|
!IF "$(PORTAUDIO_VERSION)" == "18"
|
2006-08-30 21:51:31 +00:00
|
|
|
pa_lib.c \
|
2006-10-07 14:24:32 +00:00
|
|
|
!ELSE
|
|
|
|
pa_allocation.c \
|
|
|
|
pa_converters.c \
|
|
|
|
pa_cpuload.c \
|
|
|
|
pa_dither.c \
|
2008-04-17 02:17:55 +00:00
|
|
|
pa_front.c \
|
2006-10-07 14:24:32 +00:00
|
|
|
pa_process.c \
|
|
|
|
pa_skeleton.c \
|
|
|
|
pa_stream.c \
|
|
|
|
pa_trace.c \
|
|
|
|
pa_win_util.c \
|
|
|
|
pa_win_hostapis.c \
|
|
|
|
pa_x86_plain_converters.c \
|
2008-05-13 07:39:23 +00:00
|
|
|
pa_win_waveformat.c \
|
2006-10-07 14:24:32 +00:00
|
|
|
!ENDIF
|
2010-11-16 20:13:26 +00:00
|
|
|
pa_win_wmme.c
|
2006-08-30 21:51:31 +00:00
|
|
|
!ENDIF
|
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
|
|
|
|
2010-11-30 20:57:43 +00:00
|
|
|
WIRESHARK_GTK_OBJECTS = \
|
|
|
|
$(WIRESHARK_GTK_SRC:.c=.obj) \
|
|
|
|
$(DIRTY_GENERATED_C_FILES:.c=.obj) \
|
2010-11-30 21:32:04 +00:00
|
|
|
$(PORT_AUDIO_SRC:.c=.obj)
|
2004-01-22 18:08:58 +00:00
|
|
|
|
2010-11-26 19:16:06 +00:00
|
|
|
libui.lib : ..\config.h $(WIRESHARK_GTK_OBJECTS) $(WIRESHARK_TAP_OBJECTS)
|
|
|
|
link /lib /out:libui.lib $(WIRESHARK_GTK_OBJECTS) $(WIRESHARK_TAP_OBJECTS) winmm.lib
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2009-02-20 17:13:44 +00:00
|
|
|
# The shell script runs slowly, as multiple greps and seds are run
|
|
|
|
# for each input file; this is especially slow on Windows. Therefore,
|
|
|
|
# if Python is present (as indicated by PYTHON being defined), we run
|
|
|
|
# a faster Python script to do that work instead.
|
|
|
|
#
|
|
|
|
# The first argument is the directory in which the source files live.
|
|
|
|
# The second argument is "plugin", to indicate that we should build
|
|
|
|
# a plugin.c file for a plugin.
|
|
|
|
# All subsequent arguments are the files to scan.
|
|
|
|
#
|
|
|
|
!IFDEF PYTHON
|
|
|
|
wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) ../tools/make-tap-reg.py
|
|
|
|
@echo Making wireshark-tap-register.c (using python)
|
|
|
|
@$(PYTHON) "../tools/make-tap-reg.py" . taps $(WIRESHARK_TAP_SRC)
|
|
|
|
!ELSE
|
2009-10-04 09:12:14 +00:00
|
|
|
wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) ../tools/make-tapreg-dotc Makefile.common
|
2006-05-31 19:12:15 +00:00
|
|
|
@echo Making wireshark-tap-register.c
|
2009-10-04 09:12:14 +00:00
|
|
|
@$(SH) ../tools/make-tapreg-dotc wireshark-tap-register.c . $(WIRESHARK_TAP_SRC)
|
2009-02-20 17:13:44 +00:00
|
|
|
!ENDIF
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2010-11-13 14:47:53 +00:00
|
|
|
RUNLEX=..\tools\runlex.sh
|
|
|
|
|
|
|
|
text_import_scanner.h: text_import_scanner.c
|
2011-06-28 15:30:28 +00:00
|
|
|
text_import_scanner_lex.h: text_import_scanner.c
|
2010-11-13 14:47:53 +00:00
|
|
|
text_import_scanner.obj : text_import_scanner.c
|
2010-11-16 09:15:15 +00:00
|
|
|
$(CC) $(CVARSDLL) $(GENERATED_CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $?
|
2010-11-16 20:13:26 +00:00
|
|
|
|
2006-10-07 14:24:32 +00:00
|
|
|
!IF "$(PORTAUDIO_VERSION)" == "18"
|
2006-08-30 21:51:31 +00:00
|
|
|
pa_lib.obj: $(PORTAUDIO_DIR)\pa_common\pa_lib.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $?
|
2006-08-30 21:51:31 +00:00
|
|
|
|
|
|
|
pa_win_wmme.obj: $(PORTAUDIO_DIR)\pa_win_wmme\pa_win_wmme.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
!ELSE
|
|
|
|
pa_front.obj: $(PORTAUDIO_DIR)\src\common\pa_front.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_allocation.obj: $(PORTAUDIO_DIR)\src\common\pa_allocation.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_converters.obj: $(PORTAUDIO_DIR)\src\common\pa_converters.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_cpuload.obj: $(PORTAUDIO_DIR)\src\common\pa_cpuload.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_dither.obj: $(PORTAUDIO_DIR)\src\common\pa_dither.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_process.obj: $(PORTAUDIO_DIR)\src\common\pa_process.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_skeleton.obj: $(PORTAUDIO_DIR)\src\common\pa_skeleton.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_stream.obj: $(PORTAUDIO_DIR)\src\common\pa_stream.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_trace.obj: $(PORTAUDIO_DIR)\src\common\pa_trace.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_win_wmme.obj: $(PORTAUDIO_DIR)\src\hostapi\wmme\pa_win_wmme.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_win_util.obj: $(PORTAUDIO_DIR)\src\os\win\pa_win_util.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_win_hostapis.obj: $(PORTAUDIO_DIR)\src\os\win\pa_win_hostapis.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
|
|
|
pa_x86_plain_converters.obj: $(PORTAUDIO_DIR)\src\os\win\pa_x86_plain_converters.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2006-10-07 14:24:32 +00:00
|
|
|
|
2008-05-13 07:39:23 +00:00
|
|
|
pa_win_waveformat.obj: $(PORTAUDIO_DIR)\src\os\win\pa_win_waveformat.c
|
2008-09-16 21:08:18 +00:00
|
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
2008-05-13 07:39:23 +00:00
|
|
|
|
2006-10-07 14:24:32 +00:00
|
|
|
!ENDIF
|
2006-08-30 21:51:31 +00:00
|
|
|
|
2000-04-04 08:22:13 +00:00
|
|
|
clean:
|
2010-11-26 19:16:06 +00:00
|
|
|
rm -f $(WIRESHARK_GTK_OBJECTS) $(WIRESHARK_TAP_OBJECTS) libui.lib *.pdb doxygen.cfg html/*.* wireshark-tap-register-cache.pkl
|
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
|
|
|
|
|
2007-02-07 02:45:53 +00:00
|
|
|
# MS html help compiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
|
2004-06-04 17:19:01 +00:00
|
|
|
# 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
|
|
|
|
2010-11-30 02:04:55 +00:00
|
|
|
checkapi: checkapi-base checkapi-todo
|
|
|
|
|
|
|
|
checkapi-base:
|
|
|
|
$(PERL) ../tools/checkAPIs.pl -g deprecated-gtk \
|
|
|
|
$(WIRESHARK_GTK_SRC) \
|
|
|
|
$(WIRESHARK_TAP_SRC)
|
|
|
|
|
|
|
|
checkapi-todo:
|
|
|
|
$(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo \
|
|
|
|
$(WIRESHARK_GTK_SRC) \
|
|
|
|
$(WIRESHARK_TAP_SRC)
|