be90c94aec028b075fdb357430e8ff41723e9d70
[obnox/wireshark/wip.git] / wsutil / Makefile.nmake
1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
3 #
4 # $Id$
5
6 include ..\config.nmake
7 include <win32.mak>
8 include ..\Makefile.nmake.inc
9
10 ############### no need to modify below this line #########
11
12 include Makefile.common
13
14 CFLAGS=-WX -DHAVE_CONFIG_H /I. /I.. $(GLIB_CFLAGS) \
15         /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
16
17 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
18
19 .c.obj::
20    $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
21
22 # For use when making libwsutil.dll
23 libwsutil_LIBS = $(GLIB_LIBS)
24
25 OBJECTS = file_util.obj unicode-utils.obj $(LIBWSUTIL_SRC:.c=.obj)
26
27
28 # For use when making libwsutil.dll
29 libwsutil.lib: libwsutil.dll
30 libwsutil.exp: libwsutil.dll
31
32 libwsutil.dll : $(OBJECTS) libwsutil.def ..\image\libwsutil.res
33         $(link) $(dlllflags) $(conlibsdll) \
34                 $(LOCAL_LDFLAGS) \
35                 /DEF:libwsutil.def /OUT:libwsutil.dll \
36                 /IMPLIB:libwsutil.lib \
37                 ..\image\libwsutil.res \
38                 $(OBJECTS) $(libwsutil_LIBS)
39 !IF $(MSC_VER_REQUIRED) >= 1400
40         mt.exe -nologo -manifest "libwsutil.dll.manifest" -outputresource:libwsutil.dll;2
41 !ENDIF
42
43 clean :
44         rm -f $(OBJECTS) \
45                 libwsutil.lib \
46                 libwsutil.exp \
47                 libwsutil.dll \
48                 libwsutil.dll.manifest \
49                 *.pdb
50
51 distclean: clean
52
53 maintainer-clean: distclean
54
55 checkapi:
56 ##      $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput \
57         $(PERL) ../tools/checkAPIs.pl -g termoutput \
58         $(LIBWSUTIL_SRC) \
59 #       file_util.c unicode-utils.c