2008-05-20 21:51:01 +00:00
|
|
|
## Makefile for building wireshark.exe with Microsoft C and nmake
|
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
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) \
|
|
|
|
/I. /I.. $(GLIB_CFLAGS) \
|
|
|
|
/I$(PCAP_DIR)\include
|
2008-05-20 21:51:01 +00:00
|
|
|
|
|
|
|
.c.obj::
|
2012-02-24 16:23:38 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c $<
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2008-05-23 02:09:48 +00:00
|
|
|
# For use when making libwsutil.dll
|
2008-05-22 15:46:27 +00:00
|
|
|
libwsutil_LIBS = $(GLIB_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) \
|
|
|
|
strptime.obj \
|
|
|
|
unicode-utils.obj \
|
|
|
|
wsgetopt.obj
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2008-05-23 02:09:48 +00:00
|
|
|
# For use when making libwsutil.dll
|
2008-05-20 21:51:01 +00:00
|
|
|
libwsutil.lib: libwsutil.dll
|
|
|
|
libwsutil.exp: libwsutil.dll
|
|
|
|
|
|
|
|
libwsutil.dll : $(OBJECTS) libwsutil.def ..\image\libwsutil.res
|
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) \
|
2008-05-20 21:51:01 +00:00
|
|
|
/DEF:libwsutil.def /OUT:libwsutil.dll \
|
|
|
|
/IMPLIB:libwsutil.lib \
|
|
|
|
..\image\libwsutil.res \
|
|
|
|
$(OBJECTS) $(libwsutil_LIBS)
|
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -f $(OBJECTS) \
|
|
|
|
libwsutil.lib \
|
|
|
|
libwsutil.exp \
|
|
|
|
libwsutil.dll \
|
|
|
|
libwsutil.dll.manifest \
|
2012-01-29 20:33:58 +00:00
|
|
|
*.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
|