2008-05-20 21:51:01 +00:00
|
|
|
## Makefile for building wireshark.exe with Microsoft C and nmake
|
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
|
|
|
|
|
|
|
include ..\config.nmake
|
|
|
|
include <win32.mak>
|
|
|
|
include ..\Makefile.nmake.inc
|
|
|
|
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
2008-05-23 02:09:48 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
|
2013-08-02 00:52:13 +00:00
|
|
|
/I. /I.. $(GLIB_CFLAGS) $(GNUTLS_CFLAGS) \
|
2013-02-28 14:09:46 +00:00
|
|
|
/I$(PCAP_DIR)\include -DWS_BUILD_DLL
|
2008-05-20 21:51:01 +00:00
|
|
|
|
|
|
|
.c.obj::
|
2013-06-25 15:32:49 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c $<
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2015-11-25 05:46:40 +00:00
|
|
|
LIBWSUTIL_SRC = $(LIBWSUTIL_COMMON_SRC)
|
|
|
|
|
2014-07-10 00:59:23 +00:00
|
|
|
# For use when making libwsutil.dll
|
2013-08-02 01:11:08 +00:00
|
|
|
libwsutil_LIBS = $(GLIB_LIBS) \
|
|
|
|
$(GNUTLS_LIBS)
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2010-05-28 20:19:55 +00:00
|
|
|
OBJECTS = file_util.obj \
|
2010-05-29 01:00:52 +00:00
|
|
|
inet_aton.obj \
|
2010-05-28 20:19:55 +00:00
|
|
|
inet_ntop.obj \
|
|
|
|
inet_pton.obj \
|
|
|
|
$(LIBWSUTIL_SRC:.c=.obj) \
|
2014-12-23 00:44:20 +00:00
|
|
|
popcount.obj \
|
2010-05-28 20:19:55 +00:00
|
|
|
strptime.obj \
|
2014-05-22 21:04:40 +00:00
|
|
|
wsgetopt.obj \
|
|
|
|
ws_mempbrk_sse42.obj
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2014-07-10 00:59:23 +00:00
|
|
|
# For use when making libwsutil.dll
|
|
|
|
libwsutil.lib: libwsutil.dll
|
|
|
|
libwsutil.exp: libwsutil.dll
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2014-07-10 00:59:23 +00:00
|
|
|
libwsutil.dll : $(OBJECTS) ..\image\libwsutil.res
|
|
|
|
@echo Linking libwsutil.dll
|
2011-05-24 00:07:56 +00:00
|
|
|
$(link) $(dlllflags) $(conlibsdll) shell32.lib \
|
2009-03-02 21:33:11 +00:00
|
|
|
$(LOCAL_LDFLAGS) $(DLL_LDFLAGS) \
|
2014-07-10 00:59:23 +00:00
|
|
|
/OUT:libwsutil.dll \
|
|
|
|
/IMPLIB:libwsutil.lib \
|
2008-05-20 21:51:01 +00:00
|
|
|
..\image\libwsutil.res \
|
2014-07-02 13:10:02 +00:00
|
|
|
$(OBJECTS) $(libwsutil_LIBS)
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2014-06-29 21:12:05 +00:00
|
|
|
#
|
|
|
|
# The following target will rebuild its obj
|
|
|
|
# if and when version.h should change.
|
|
|
|
#
|
|
|
|
ws_version_info.obj: ..\version.h
|
|
|
|
|
2014-07-02 13:10:02 +00:00
|
|
|
clean:
|
2008-05-20 21:51:01 +00:00
|
|
|
rm -f $(OBJECTS) \
|
2014-07-10 00:59:23 +00:00
|
|
|
libwsutil.lib \
|
|
|
|
libwsutil.exp \
|
|
|
|
libwsutil.dll \
|
|
|
|
libwsutil.dll.manifest \
|
2015-01-02 01:41:49 +00:00
|
|
|
*.nativecodeanalysis.xml *.pdb *.sbr
|
2008-05-20 21:51:01 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
2008-06-03 05:35:19 +00:00
|
|
|
|
|
|
|
checkapi:
|
2008-07-17 21:40:28 +00:00
|
|
|
## $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput \
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../tools/checkAPIs.pl -g termoutput -build \
|
2008-06-03 05:35:19 +00:00
|
|
|
$(LIBWSUTIL_SRC) \
|
2008-07-11 16:18:32 +00:00
|
|
|
# file_util.c unicode-utils.c
|
2014-05-28 16:04:34 +00:00
|
|
|
|
|
|
|
#
|
2014-09-16 20:12:10 +00:00
|
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2014-05-28 16:04:34 +00:00
|
|
|
#
|
|
|
|
# Local variables:
|
|
|
|
# c-basic-offset: 8
|
|
|
|
# tab-width: 8
|
|
|
|
# indent-tabs-mode: t
|
|
|
|
# End:
|
|
|
|
#
|
|
|
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
# :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
#
|