forked from osmocom/wireshark
![Pascal Quantin](/assets/img/avatar_default.png)
This allows to properly register codecs plugins. See https://www.wireshark.org/lists/wireshark-dev/201511/msg00202.html for details. Change-Id: Ibc13a19936abb7a2e81b86582a75fa424351565b Reviewed-on: https://code.wireshark.org/review/12385 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
110 lines
3.2 KiB
Makefile
110 lines
3.2 KiB
Makefile
#
|
|
|
|
include ..\config.nmake
|
|
|
|
# Nmake uses an implicit rule to build a .res from a .rc file!
|
|
|
|
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 libwscodecs.rc libwsutil.rc wireshark.exe.manifest
|
|
all : $(ALL_RC)
|
|
|
|
# wireshark.exe.manifest and wireshark.rc are used for both Qt and GTK+ executables.
|
|
wireshark.exe.manifest: wireshark.exe.manifest.in ..\config.nmake
|
|
sed -e s/@VERSION_MAJOR@/$(VERSION_MAJOR)/ \
|
|
-e s/@VERSION_MINOR@/$(VERSION_MINOR)/ \
|
|
-e s/@VERSION_MICRO@/$(VERSION_MICRO)/ \
|
|
-e s/@PROCESSOR_ARCHITECTURE@/$(PROCESSOR_ARCHITECTURE)/ \
|
|
< wireshark.exe.manifest.in > $@
|
|
|
|
wireshark.rc : file_dlg_win32.rc wireshark.rc.in wireshark.exe.manifest ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< wireshark.rc.in > $@
|
|
|
|
libwireshark.rc: libwireshark.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< libwireshark.rc.in > $@
|
|
|
|
tshark.rc : tshark.rc.in wireshark.exe.manifest ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< tshark.rc.in > $@
|
|
|
|
tfshark.rc : tfshark.rc.in wireshark.exe.manifest ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< tfshark.rc.in > $@
|
|
|
|
rawshark.rc : rawshark.rc.in wireshark.exe.manifest ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< rawshark.rc.in > $@
|
|
|
|
capinfos.rc : capinfos.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< capinfos.rc.in > $@
|
|
|
|
captype.rc : captype.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< captype.rc.in > $@
|
|
|
|
editcap.rc : editcap.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< editcap.rc.in > $@
|
|
|
|
mergecap.rc : mergecap.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< mergecap.rc.in > $@
|
|
|
|
reordercap.rc : reordercap.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< reordercap.rc.in > $@
|
|
|
|
text2pcap.rc : text2pcap.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< text2pcap.rc.in > $@
|
|
|
|
wiretap.rc : wiretap.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(WTAP_VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_WTAP_VERSION)/ \
|
|
< wiretap.rc.in > $@
|
|
|
|
libwscodecs.rc : libwscodecs.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< libwscodecs.rc.in > $@
|
|
|
|
libwsutil.rc : libwsutil.rc.in ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
< libwsutil.rc.in > $@
|
|
|
|
dumpcap.rc : dumpcap.rc.in wireshark.exe.manifest ..\config.nmake
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@ICON_PATH@// \
|
|
< dumpcap.rc.in > $@
|
|
|
|
clean :
|
|
rm -f $(ALL_RC)
|
|
|
|
distclean: clean
|
|
|
|
maintainer-clean: distclean
|