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
|
|
|
|
2012-01-15 22:22:28 +00:00
|
|
|
include ..\..\config.nmake
|
|
|
|
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) \
|
2013-03-01 23:53:11 +00:00
|
|
|
/Zm800 \
|
2013-10-10 19:48:37 +00:00
|
|
|
/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) \
|
2011-10-05 22:39:18 +00:00
|
|
|
$(PORTAUDIO_CFLAGS) $(GEOIP_CFLAGS) \
|
2006-09-12 00:27:03 +00:00
|
|
|
$(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::
|
2012-02-24 16:23:38 +00:00
|
|
|
$(CC) $(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
|
2012-02-19 23:35:19 +00:00
|
|
|
WIRESHARK_CLEAN_LIBGTKUI_SRC = \
|
2006-05-31 19:12:15 +00:00
|
|
|
$(WIRESHARK_GTK_SRC) \
|
2012-02-19 23:35:19 +00:00
|
|
|
$(WIRESHARK_TAP_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
|
|
|
|
2012-02-19 23:35:19 +00:00
|
|
|
WIRESHARK_LIBGTKUI_SRC = \
|
2012-09-15 08:18:57 +00:00
|
|
|
$(WIRESHARK_CLEAN_LIBGTKUI_SRC)
|
2012-02-19 23:35:19 +00:00
|
|
|
|
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
|
|
|
|
2012-02-19 23:35:19 +00:00
|
|
|
WIRESHARK_LIBGTKUI_OBJECTS = \
|
|
|
|
$(WIRESHARK_LIBGTKUI_SRC:.c=.obj) \
|
2010-11-30 21:32:04 +00:00
|
|
|
$(PORT_AUDIO_SRC:.c=.obj)
|
2004-01-22 18:08:58 +00:00
|
|
|
|
2012-05-05 16:02:36 +00:00
|
|
|
libgtkui.lib: ..\..\config.h $(WIRESHARK_LIBGTKUI_OBJECTS)
|
2012-02-19 23:35:19 +00:00
|
|
|
link /lib /out:libgtkui.lib $(WIRESHARK_LIBGTKUI_OBJECTS) winmm.lib
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2013-01-19 16:39:28 +00:00
|
|
|
|
|
|
|
layouts.h:
|
|
|
|
echo /* This file was automatically generated. DO NOT EDIT. */ > $@
|
|
|
|
echo. $@
|
|
|
|
for %n in (1 2 3 4 5 6) do \
|
|
|
|
gdk-pixbuf-csource --raw --name=layout_%n_pb_data ../../image/layout_%n.png >> $@
|
|
|
|
|
2013-03-26 19:51:33 +00:00
|
|
|
wsicon.h:
|
|
|
|
echo /* This file was automatically generated. DO NOT EDIT. */ > $@
|
|
|
|
echo. $@
|
|
|
|
for %n in (16 24 32 48 64) do \
|
|
|
|
gdk-pixbuf-csource --raw --name=wsicon_%n_pb_data ../../image/wsicon%n.png >> $@
|
|
|
|
wsiconcap.h:
|
|
|
|
echo /* This file was automatically generated. DO NOT EDIT. */ > $@
|
|
|
|
echo. $@
|
|
|
|
for %n in (16 24 32 48 64) do \
|
|
|
|
gdk-pixbuf-csource --raw --name=wsiconcap_%n_pb_data ../../image/wsiconcap%n.png >> $@
|
2013-01-19 16:39:28 +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
|
2012-01-15 22:22:28 +00:00
|
|
|
wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) ../../tools/make-tap-reg.py
|
2009-02-20 17:13:44 +00:00
|
|
|
@echo Making wireshark-tap-register.c (using python)
|
2012-01-15 22:22:28 +00:00
|
|
|
@$(PYTHON) "../../tools/make-tap-reg.py" . taps $(WIRESHARK_TAP_SRC)
|
2009-02-20 17:13:44 +00:00
|
|
|
!ELSE
|
2012-01-15 22:22:28 +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
|
2012-01-15 22:22:28 +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
|
|
|
|
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:
|
2012-06-13 16:19:35 +00:00
|
|
|
rm -f $(WIRESHARK_LIBGTKUI_OBJECTS) libgtkui.lib *.pdb *.sbr \
|
2012-09-18 17:40:50 +00:00
|
|
|
doxygen.cfg html/*.* wireshark-tap-register-cache.pkl \
|
|
|
|
wireshark-tap-register.c-tmp
|
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
|
2012-01-15 22:22:28 +00:00
|
|
|
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:
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../../tools/checkAPIs.pl -g deprecated-gtk -build \
|
2012-02-19 23:35:19 +00:00
|
|
|
$(WIRESHARK_CLEAN_LIBGTKUI_SRC) \
|
2010-11-30 02:04:55 +00:00
|
|
|
$(WIRESHARK_TAP_SRC)
|
|
|
|
|
|
|
|
checkapi-todo:
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
|
2012-02-19 23:35:19 +00:00
|
|
|
$(WIRESHARK_CLEAN_LIBGTKUI_SRC) \
|
2010-11-30 02:04:55 +00:00
|
|
|
$(WIRESHARK_TAP_SRC)
|