blob: a0e927b4bb15b70deab16b53d94a22647e0c8327 (
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
|
## Makefile for building ethereal.exe with Microsoft C and nmake
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#
# $Id: Makefile.nmake,v 1.9 2003/06/14 20:35:56 guy Exp $
include ..\..\config.nmake
############### no need to modify below this line #########
LEMON=..\..\tools\lemon
CFLAGS=-DHAVE_CONFIG_H /I. /I.. /I..\.. /I$(LEMON) \
$(GTK_CFLAGS) /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
.c.obj::
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
OBJECTS = \
dfilter.obj \
dfvm.obj \
drange.obj \
gencode.obj \
glib-util.obj \
grammar.obj \
scanner.obj \
semcheck.obj \
sttype-integer.obj \
sttype-pointer.obj \
sttype-range.obj \
sttype-string.obj \
sttype-test.obj \
syntax-tree.obj
dfilter.lib : $(OBJECTS)
lib /out:dfilter.lib $(OBJECTS)
$(OBJECTS): ..\config.h
..\config.h:
cd ..
$(MAKE) -f makefile.nmake config.h
cd dfilter
clean:
rm -f $(OBJECTS) scanner.c grammar.c grammar.h grammar.out \
dfilter.lib $(PDB_FILE)
scanner.c : scanner.l
$(LEX) -Pdf_ -oscanner.c scanner.l
scanner.obj : scanner.c grammar.h
grammar.h : grammar.c
grammar.c : grammar.lemon $(LEMON)\lemon.exe
$(LEMON)\lemon.exe t=$(LEMON)\lempar.c grammar.lemon
$(LEMON)\lemon.exe:
cd ../../tools/lemon
$(MAKE) -f makefile.nmake
cd ../../epan/dfilter
|