![João Valverde](/assets/img/avatar_default.png)
Use GResource instead, if available. Add autotools and cmake compile time checks for build requirements (GIO >= 2.32 and GDK-Pixbuf >= 2.26). Merge all the various static pixbuf csource header files into a single pixbuf-csource.h header with external linkage through use of the tools/make-pixbuf-csource.pl script. Fix inline pixbuf build target for some image paths (broken for GTK in gb4a4de7). Add missing 'expert_ok.png' file to distribution (GTK only). Minor improvements to style/structure of ui/gtk/Makefile.am. Bug: 10750 Change-Id: I031296b666ee8b92730400dfa6f71f9ee4304863 Reviewed-on: https://code.wireshark.org/review/10992 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
173 lines
4.9 KiB
Makefile
173 lines
4.9 KiB
Makefile
## Makefile for building wireshark.exe with Microsoft C and nmake
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
#
|
|
|
|
include ..\..\config.nmake
|
|
include ..\..\Makefile.nmake.inc
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
# We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
|
|
GENERATED_CFLAGS=\
|
|
$(STANDARD_CFLAGS) \
|
|
/Zm800 \
|
|
/I../.. /I../../wiretap $(GTK_CFLAGS) $(GNUTLS_CFLAGS) \
|
|
$(ZLIB_CFLAGS) /I$(PCAP_DIR)\WPCAP\LIBPCAP \
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
|
|
/I$(PCAP_DIR)\include $(AIRPCAP_CFLAGS) \
|
|
$(PORTAUDIO_CFLAGS) $(GEOIP_CFLAGS) \
|
|
$(HHC_CFLAGS)
|
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
|
|
|
|
.c.obj::
|
|
$(CC) $(CFLAGS) $(WSUG_CFLAGS) -Fd.\ -c $<
|
|
|
|
include Makefile.common
|
|
|
|
|
|
# if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
|
|
WIRESHARK_CLEAN_LIBGTKUI_SRC = \
|
|
$(WIRESHARK_GTK_SRC) \
|
|
$(WIRESHARK_TAP_SRC) \
|
|
$(GENERATED_C_FILES) \
|
|
capture_if_details_dlg_win32.c \
|
|
pixbuf-csource.c
|
|
|
|
WIRESHARK_LIBGTKUI_SRC = \
|
|
$(WIRESHARK_CLEAN_LIBGTKUI_SRC)
|
|
|
|
PORT_AUDIO_SRC = \
|
|
!IFDEF PORTAUDIO_DIR
|
|
!IF "$(PORTAUDIO_VERSION)" == "18"
|
|
pa_lib.c \
|
|
!ELSE
|
|
pa_allocation.c \
|
|
pa_converters.c \
|
|
pa_cpuload.c \
|
|
pa_dither.c \
|
|
pa_front.c \
|
|
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 \
|
|
pa_win_waveformat.c \
|
|
!ENDIF
|
|
pa_win_wmme.c
|
|
!ENDIF
|
|
|
|
WIRESHARK_LIBGTKUI_OBJECTS = \
|
|
$(WIRESHARK_LIBGTKUI_SRC:.c=.obj) \
|
|
$(PORT_AUDIO_SRC:.c=.obj)
|
|
|
|
libgtkui.lib: ..\..\config.h $(WIRESHARK_LIBGTKUI_OBJECTS)
|
|
link /lib /out:libgtkui.lib $(WIRESHARK_LIBGTKUI_OBJECTS) winmm.lib
|
|
|
|
# The first argument is the directory in which the source files live.
|
|
# The second argument is "taps", to indicate that we should build
|
|
# a tap register file.
|
|
# All subsequent arguments are the files to scan.
|
|
#
|
|
wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) Makefile.common Makefile_custom.common ../../tools/make-tap-reg.py
|
|
@echo Making wireshark-tap-register.c
|
|
@$(PYTHON) "../../tools/make-tap-reg.py" . taps $(WIRESHARK_TAP_SRC)
|
|
|
|
!IF "$(PORTAUDIO_VERSION)" == "18"
|
|
pa_lib.obj: $(PORTAUDIO_DIR)\pa_common\pa_lib.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $?
|
|
|
|
pa_win_wmme.obj: $(PORTAUDIO_DIR)\pa_win_wmme\pa_win_wmme.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
!ELSE
|
|
pa_front.obj: $(PORTAUDIO_DIR)\src\common\pa_front.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_allocation.obj: $(PORTAUDIO_DIR)\src\common\pa_allocation.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_converters.obj: $(PORTAUDIO_DIR)\src\common\pa_converters.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_cpuload.obj: $(PORTAUDIO_DIR)\src\common\pa_cpuload.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_dither.obj: $(PORTAUDIO_DIR)\src\common\pa_dither.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_process.obj: $(PORTAUDIO_DIR)\src\common\pa_process.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_skeleton.obj: $(PORTAUDIO_DIR)\src\common\pa_skeleton.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_stream.obj: $(PORTAUDIO_DIR)\src\common\pa_stream.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_trace.obj: $(PORTAUDIO_DIR)\src\common\pa_trace.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_win_wmme.obj: $(PORTAUDIO_DIR)\src\hostapi\wmme\pa_win_wmme.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_win_util.obj: $(PORTAUDIO_DIR)\src\os\win\pa_win_util.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_win_hostapis.obj: $(PORTAUDIO_DIR)\src\os\win\pa_win_hostapis.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_x86_plain_converters.obj: $(PORTAUDIO_DIR)\src\os\win\pa_x86_plain_converters.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
pa_win_waveformat.obj: $(PORTAUDIO_DIR)\src\os\win\pa_win_waveformat.c
|
|
$(CC) -c $(LOCAL_CFLAGS) $(PORTAUDIO_CFLAGS) $?
|
|
|
|
!ENDIF
|
|
|
|
clean:
|
|
rm -f $(WIRESHARK_LIBGTKUI_OBJECTS) libgtkui.lib *.nativecodeanalysis.xml *.pdb *.sbr \
|
|
doxygen.cfg html/*.* wireshark-tap-register-cache.pkl \
|
|
wireshark-tap-register.c-tmp
|
|
if exist html rmdir html
|
|
|
|
distclean: clean
|
|
|
|
maintainer-clean: distclean
|
|
rm -f $(GENERATED_FILES)
|
|
|
|
# convert doxygen.cfg.in to doxygen.cfg with stamped version info
|
|
doxygen.cfg: ..\..\config.nmake doxygen.cfg.in
|
|
!IFDEF DOXYGEN
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
< doxygen.cfg.in > $@
|
|
!ENDIF
|
|
|
|
doxygen-run:
|
|
!IFDEF DOXYGEN
|
|
$(DOXYGEN) doxygen.cfg
|
|
!ENDIF
|
|
|
|
# MS html help compiler 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
|
|
|
|
doxygen: doxygen.cfg doxygen-run doxygen.chm
|
|
|
|
checkapi: checkapi-base checkapi-todo
|
|
|
|
checkapi-base:
|
|
$(PERL) ../../tools/checkAPIs.pl -g deprecated-gtk -build \
|
|
$(WIRESHARK_CLEAN_LIBGTKUI_SRC) \
|
|
$(WIRESHARK_TAP_SRC)
|
|
|
|
checkapi-todo:
|
|
$(PERL) ../../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
|
|
$(WIRESHARK_CLEAN_LIBGTKUI_SRC) \
|
|
$(WIRESHARK_TAP_SRC)
|