aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/Makefile.nmake
blob: 1a275bfd64f37722340e80c38d0f992873e87f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
## 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 #########

CFLAGS=-WX -DHAVE_CONFIG_H /I. /I.. $(GLIB_CFLAGS) \
	/I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)

CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL 

.c.obj::
   $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<


libwsutil_LIBS = 

OBJECTS = \
	mpeg-audio.obj


libwsutil.lib: libwsutil.dll
libwsutil.exp: libwsutil.dll

libwsutil.dll : $(OBJECTS) libwsutil.def ..\image\libwsutil.res
	$(link) $(dlllflags) $(conlibsdll) \
		$(LOCAL_LDFLAGS) \
		/DEF:libwsutil.def /OUT:libwsutil.dll \
		/IMPLIB:libwsutil.lib \
		..\image\libwsutil.res \
		$(OBJECTS) $(libwsutil_LIBS)
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" 
	mt.exe -nologo -manifest "libwsutil.dll.manifest" -outputresource:libwsutil.dll;2
!ENDIF

clean :
	rm -f $(OBJECTS) \
		libwsutil.lib \
		libwsutil.exp \
		libwsutil.dll \
		libwsutil.dll.manifest \
		*.pdb

distclean: clean

maintainer-clean: distclean