dumpcap_OBJECTS = $(dumpcap_SOURCES:.c=.obj)
randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
reordercap_OBJECTS = $(reordercap_SOURCES:.c=.obj)
+# this does not work because source file is in a subfolder of this makefile
+# and we end up recompiling systematically androiddump.c
+#androiddump_OBJECTS = $(androiddump_SOURCES:.c=.obj)
#
# psapi.lib see http://msdn.microsoft.com/en-us/library/windows/desktop/ms683219(v=vs.85).aspx
wsutil\libwsutil.lib \
$(GLIB_LIBS)
+androiddump_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
+ wsock32.lib user32.lib \
+ wsutil\libwsutil.lib \
+ $(GLIB_LIBS)
+
dumpcap_LIBS= \
wsock32.lib user32.lib \
caputils\libcaputils.lib \
EXECUTABLES=$(PROGRAM_NAME_GTK).exe tshark.exe tfshark.exe rawshark.exe \
capinfos.exe captype.exe editcap.exe mergecap.exe text2pcap.exe \
- randpkt.exe reordercap.exe dumpcap.exe dftest.exe
+ randpkt.exe reordercap.exe dumpcap.exe androiddump.exe dftest.exe
!IFDEF QT5_BASE_DIR
EXECUTABLES=$(EXECUTABLES) $(PROGRAM_NAME).exe
packaging_papps: all
cd packaging
cd portableapps
- cd win32
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
cd ..
cd ..
- cd ..
# use (info-)zip from cygwin to pack things
packaging_zip: all
mt.exe -nologo -manifest "randpkt.exe.manifest" -outputresource:randpkt.exe;1
!ENDIF
+androiddump.exe : $(LIBS_CHECK) config.h androiddump.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib
+ @echo Linking $@
+ $(LINK) @<<
+ /OUT:androiddump.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:WINDOWS androiddump.obj $(androiddump_LIBS)
+<<
+!IFDEF MANIFEST_INFO_REQUIRED
+ mt.exe -nologo -manifest "androiddump.exe.manifest" -outputresource:androiddump.exe;1
+!ENDIF
+
dumpcap.exe : $(LIBS_CHECK) config.h $(dumpcap_OBJECTS) caputils wsutil\libwsutil.lib image\dumpcap.res
@echo Linking $@
$(LINK) @<<
MSVC_VARIANT = $(MSVC_VARIANT)
MSVCR_DLL = "$(MSVCR_DLL:\=/)"
+WIRESHARK_TARGET_PLATFORM = $(WIRESHARK_TARGET_PLATFORM)
+
QMAKE_CFLAGS *= $(STANDARD_CFLAGS)
# NOMINMAX keeps windows.h from defining "min" and "max" via windef.h.
# This avoids conflicts with the C++ standard library.
text2pcap-scanner.obj : text2pcap-scanner.c
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
+androiddump.obj : extcap/androiddump.c
+ $(CC) $(CFLAGS) -Fd.\ -c $?
+
test-programs:
cd epan
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake test-programs
clean-local:
rm -f $(wireshark_gtk_OBJECTS) $(tshark_OBJECTS) $(tfshark_OBJECTS) $(dumpcap_OBJECTS) $(rawshark_OBJECTS) \
$(EXECUTABLES) *.nativecodeanalysis.xml *.pdb *.sbr *.exe.manifest \
+ androiddump.obj \
capinfos.obj capinfos.exp capinfos.lib \
captype.obj captype.exp captype.lib \
editcap.obj editcap.exp editcap.lib \
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
cd ../packaging/nsis
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
- cd ../portableapps/win32
+ cd ../portableapps
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
- cd ../../..
+ cd ../..
# "distclean" removes all files not part of the distribution.
# It does not remove generated files that are part of the distribution.
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
cd ../packaging/nsis
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
- cd ../portableapps/win32
+ cd ../portableapps
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
- cd ../../..
+ cd ../..
# Make "maintainer-clean" only if you would like to remove ALL generated
# files.
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
cd ../packaging/nsis
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
- cd ../portableapps/win32
+ cd ../portableapps
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
- cd ../../..
+ cd ../..
tools::
cd tools
xcopy $(ZLIB_DIR) zlib.tmp /D /I /E /Y
cd zlib.tmp
!if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
- $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj"
+ $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="-I. -DASMV -DASMINF" OBJA="inffas32.obj match686.obj"
!else
- $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll AS=ml64 LOC="-DASMV -DASMINF" OBJA="inffasx64.obj gvmat64.obj inffas8664.obj"
+ $(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll AS=ml64 LOC="-I. -DASMV -DASMINF" OBJA="inffasx64.obj gvmat64.obj inffas8664.obj"
!endif
if not exist $(ZLIB_DIR) mkdir $(ZLIB_DIR)
if not exist $(ZLIB_DIR)\lib mkdir $(ZLIB_DIR)\lib
!ENDIF
copy zlib1.dll $(ZLIB_DIR)
copy zdll.lib $(ZLIB_DIR)\lib
- copy zconf.h $(ZLIB_DIR)\include
- copy zlib.h $(ZLIB_DIR)\include
+ copy zconf.h $(ZLIB_DIR)
+ copy zlib.h $(ZLIB_DIR)
cd ..
rm -r -f zlib.tmp
!ENDIF
!ENDIF
!IFDEF ZLIB_DIR
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
-!if "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
- zlib125 zlib-1.2.5.zip \
+ . zlib128.zip \
"$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
-!else
- zlib125 zlib125ws.zip \
- "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)"
-!endif
!ENDIF
!IFDEF LUA_DIR
@$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \
rm -r -f zlib123
rm -r -f zlib125
rm -r -f zlib-1.2.5
+ rm -r -f zlib-1.2.8
rm -r -f zlib123-dll
rm -r -f AirPcap_Devpack_1_0_0_594
rm -r -f AirPcap_Devpack_4_0_0_1480
if exist $(PROGRAM_NAME_GTK).pdb xcopy $(PROGRAM_NAME_GTK).pdb $(INSTALL_DIR) /d
if exist $(PROGRAM_NAME_GTK).bsc xcopy $(PROGRAM_NAME_GTK).bsc $(INSTALL_DIR) /d
if exist ".\docbook\user-guide.chm" xcopy ".\docbook\user-guide.chm" $(INSTALL_DIR) /d
+ if not exist $(INSTALL_DIR)\extcap mkdir $(INSTALL_DIR)\extcap
+ if exist androiddump.exe xcopy androiddump.exe $(INSTALL_DIR)\extcap /d
+ if exist androiddump.pdb xcopy androiddump.pdb $(INSTALL_DIR)\extcap /d
+ if not exist $(INSTALL_DIR_QT)\extcap mkdir $(INSTALL_DIR_QT)\extcap
+ if exist androiddump.exe xcopy androiddump.exe $(INSTALL_DIR_QT)\extcap /d
+ if exist androiddump.pdb xcopy androiddump.pdb $(INSTALL_DIR_QT)\extcap /d
if exist capinfos.exe xcopy capinfos.exe $(INSTALL_DIR) /d
if exist capinfos.pdb xcopy capinfos.pdb $(INSTALL_DIR) /d
if exist captype.exe xcopy captype.exe $(INSTALL_DIR) /d