aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/Makefile.nmake
blob: 55c80d635dbd31a90fca7779a323078d143855e8 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# $Id: Makefile.nmake,v 1.28 2002/07/31 19:27:56 guy Exp $
#

include ..\config.nmake
include <win32.mak>

############### no need to modify below this line #########

CFLAGS=-DHAVE_CONFIG_H /I$(GLIB_DIR) /I$(ZLIB_DIR) /I$(PCAP_DIR)/include \
	-D_U_="" $(LOCAL_CFLAGS)

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

OBJECTS=ascend-grammar.obj \
	ascend-scanner.obj \
	ascend.obj \
	atm.obj \
	buffer.obj \
	cosine.obj \
	csids.obj \
	dbs-etherwatch.obj \
	etherpeek.obj \
	file.obj \
	file_wrappers.obj \
	i4btrace.obj \
	iptrace.obj \
	lanalyzer.obj \
	libpcap.obj \
	netmon.obj \
	nettl.obj \
	netxray.obj \
	ngsniffer.obj \
	radcom.obj \
	pppdump.obj \
	snoop.obj \
	toshiba.obj \
	visual.obj \
	vms.obj \
	wtap.obj


wiretap_LIBS = \
	$(GLIB_DIR)\glib-$(GLIB_VERSION).lib	\
	$(ZLIB_DIR)\zlib.lib

all: wiretap-$(WTAP_VERSION).dll

wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll

wiretap-$(WTAP_VERSION).dll : $(OBJECTS) wtap.def
	$(link) $(dlllflags) $(conlibsdll) \
		$(LOCAL_LDFLAGS) \
		/DEF:wtap.def /OUT:wiretap-$(WTAP_VERSION).dll \
		/IMPLIB:wiretap-$(WTAP_VERSION).lib \
		$(OBJECTS) $(wiretap_LIBS)

$(OBJECTS): config.h

ascend-grammar.c ascend-grammar.h : ascend-grammar.y
	$(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c

ascend-scanner.obj : ascend-scanner.c ascend-grammar.h

ascend-scanner.c : ascend-scanner.l
	$(LEX) -Pascend -oascend-scanner.c ascend-scanner.l


config.h	: config.h.win32
	sed -e s/@VERSION@/$(WTAP_VERSION)/ < config.h.win32 > $@

clean :
	rm -f $(OBJECTS) ascend-grammar.c ascend-grammar.h ascend-scanner.c \
		wiretap-$(WTAP_VERSION).lib \
		wiretap-$(WTAP_VERSION).exp \
		wiretap-$(WTAP_VERSION).dll \
		config.h $(PDB_FILE)