2001-04-05 04:39:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include ..\config.nmake
|
|
|
|
|
2006-09-12 08:19:39 +00:00
|
|
|
# Nmake uses an implicit rule to build a .res from a .rc file!
|
|
|
|
|
2014-08-04 11:22:59 +00:00
|
|
|
ALL_RC=wireshark.rc libwireshark.rc tshark.rc tfshark.rc rawshark.rc capinfos.rc captype.rc editcap.rc text2pcap.rc mergecap.rc reordercap.rc wiretap.rc dumpcap.rc libwsutil.rc wireshark.exe.manifest
|
2001-04-05 04:39:29 +00:00
|
|
|
all : $(ALL_RC)
|
|
|
|
|
2014-08-28 23:48:53 +00:00
|
|
|
# wireshark.exe.manifest and wireshark.rc are used for both Qt and GTK+ executables.
|
2006-05-31 20:39:01 +00:00
|
|
|
wireshark.exe.manifest: wireshark.exe.manifest.in ..\config.nmake
|
2006-02-14 15:14:41 +00:00
|
|
|
sed -e s/@VERSION_MAJOR@/$(VERSION_MAJOR)/ \
|
|
|
|
-e s/@VERSION_MINOR@/$(VERSION_MINOR)/ \
|
|
|
|
-e s/@VERSION_MICRO@/$(VERSION_MICRO)/ \
|
2011-01-28 00:21:05 +00:00
|
|
|
-e s/@PROCESSOR_ARCHITECTURE@/$(PROCESSOR_ARCHITECTURE)/ \
|
2006-05-31 20:39:01 +00:00
|
|
|
< wireshark.exe.manifest.in > $@
|
2006-02-13 23:09:51 +00:00
|
|
|
|
2008-04-13 13:45:50 +00:00
|
|
|
wireshark.rc : file_dlg_win32.rc wireshark.rc.in wireshark.exe.manifest ..\config.nmake
|
2001-04-05 04:39:29 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2006-05-31 20:32:52 +00:00
|
|
|
< wireshark.rc.in > $@
|
2001-04-05 04:39:29 +00:00
|
|
|
|
2006-05-31 00:23:01 +00:00
|
|
|
libwireshark.rc: libwireshark.rc.in ..\config.nmake
|
2004-07-17 09:49:32 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2006-05-31 00:23:01 +00:00
|
|
|
< libwireshark.rc.in > $@
|
2004-07-17 09:49:32 +00:00
|
|
|
|
2013-11-01 17:02:39 +00:00
|
|
|
tshark.rc : tshark.rc.in wireshark.exe.manifest ..\config.nmake
|
2001-04-05 04:39:29 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2006-05-31 17:38:42 +00:00
|
|
|
< tshark.rc.in > $@
|
2001-04-05 04:39:29 +00:00
|
|
|
|
2014-01-08 04:35:28 +00:00
|
|
|
tfshark.rc : tfshark.rc.in wireshark.exe.manifest ..\config.nmake
|
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2014-01-08 04:35:28 +00:00
|
|
|
< tfshark.rc.in > $@
|
|
|
|
|
2013-11-01 17:02:39 +00:00
|
|
|
rawshark.rc : rawshark.rc.in wireshark.exe.manifest ..\config.nmake
|
2008-02-15 23:20:32 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2008-02-15 23:20:32 +00:00
|
|
|
< rawshark.rc.in > $@
|
|
|
|
|
2004-10-20 18:50:58 +00:00
|
|
|
capinfos.rc : capinfos.rc.in ..\config.nmake
|
2004-07-28 21:13:27 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2004-10-20 18:50:58 +00:00
|
|
|
< capinfos.rc.in > $@
|
2004-07-28 21:13:27 +00:00
|
|
|
|
2013-12-13 06:52:02 +00:00
|
|
|
captype.rc : captype.rc.in ..\config.nmake
|
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2013-12-13 06:52:02 +00:00
|
|
|
< captype.rc.in > $@
|
|
|
|
|
2003-03-26 20:17:42 +00:00
|
|
|
editcap.rc : editcap.rc.in ..\config.nmake
|
2001-04-05 04:39:29 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2001-04-05 04:39:29 +00:00
|
|
|
< editcap.rc.in > $@
|
|
|
|
|
2003-03-26 20:17:42 +00:00
|
|
|
mergecap.rc : mergecap.rc.in ..\config.nmake
|
2001-07-12 19:59:41 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2001-07-12 19:59:41 +00:00
|
|
|
< mergecap.rc.in > $@
|
|
|
|
|
2012-09-24 11:25:40 +00:00
|
|
|
reordercap.rc : reordercap.rc.in ..\config.nmake
|
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2012-09-24 11:25:40 +00:00
|
|
|
< reordercap.rc.in > $@
|
|
|
|
|
2003-03-26 20:17:42 +00:00
|
|
|
text2pcap.rc : text2pcap.rc.in ..\config.nmake
|
2001-05-21 05:04:49 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2001-05-21 05:04:49 +00:00
|
|
|
< text2pcap.rc.in > $@
|
|
|
|
|
2004-07-23 06:11:50 +00:00
|
|
|
wiretap.rc : wiretap.rc.in ..\config.nmake
|
|
|
|
sed -e s/@VERSION@/$(WTAP_VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_WTAP_VERSION)/ \
|
|
|
|
< wiretap.rc.in > $@
|
|
|
|
|
2008-05-20 21:51:01 +00:00
|
|
|
libwsutil.rc : libwsutil.rc.in ..\config.nmake
|
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
|
|
< libwsutil.rc.in > $@
|
|
|
|
|
2013-11-01 17:02:39 +00:00
|
|
|
dumpcap.rc : dumpcap.rc.in wireshark.exe.manifest ..\config.nmake
|
2005-11-28 08:54:52 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
2015-01-10 21:29:57 +00:00
|
|
|
-e s/@ICON_PATH@// \
|
2005-11-28 08:54:52 +00:00
|
|
|
< dumpcap.rc.in > $@
|
|
|
|
|
2001-04-05 04:39:29 +00:00
|
|
|
clean :
|
|
|
|
rm -f $(ALL_RC)
|
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
|