TMP: hack to debug padding
[wireshark-wip.git] / wsutil / Makefile.nmake
blob673c6e4817120164589c61a8f8cc0345c76a2800
1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
4 # $Id$
6 include ..\config.nmake
7 include <win32.mak>
8 include ..\Makefile.nmake.inc
10 ############### no need to modify below this line #########
12 include Makefile.common
14 CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
15         /I. /I.. $(GLIB_CFLAGS) $(GNUTLS_CFLAGS) \
16         /I$(PCAP_DIR)\include -DWS_BUILD_DLL
18 .c.obj::
19         $(CC) $(CFLAGS) -Fd.\ -c $<
21 # For use when making libwsutil.dll
22 libwsutil_LIBS = $(GLIB_LIBS) \
23         $(GNUTLS_LIBS)
25 OBJECTS = file_util.obj         \
26         inet_aton.obj           \
27         inet_ntop.obj           \
28         inet_pton.obj           \
29         $(LIBWSUTIL_SRC:.c=.obj) \
30         strptime.obj            \
31         unicode-utils.obj       \
32         wsgetopt.obj
34 # For use when making libwsutil.dll
35 libwsutil.lib: libwsutil.dll
36 libwsutil.exp: libwsutil.dll
38 libwsutil.dll : $(OBJECTS) ..\image\libwsutil.res
39         $(link) $(dlllflags) $(conlibsdll) shell32.lib \
40                 $(LOCAL_LDFLAGS) $(DLL_LDFLAGS) \
41                 /OUT:libwsutil.dll \
42                 /IMPLIB:libwsutil.lib \
43                 ..\image\libwsutil.res \
44                 $(OBJECTS) $(libwsutil_LIBS)
46 clean :
47         rm -f $(OBJECTS) \
48                 libwsutil.lib \
49                 libwsutil.exp \
50                 libwsutil.dll \
51                 libwsutil.dll.manifest \
52                 *.pdb *.sbr
54 distclean: clean
56 maintainer-clean: distclean
58 checkapi:
59 ##      $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput \
60         $(PERL) ../tools/checkAPIs.pl -g termoutput -build \
61         $(LIBWSUTIL_SRC) \
62 #       file_util.c unicode-utils.c