2002-02-27 09:42:52 +00:00
|
|
|
## Makefile for building ethereal.exe with Microsoft C and nmake
|
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
2003-10-10 21:31:53 +00:00
|
|
|
# $Id: Makefile.nmake,v 1.10 2003/10/10 21:31:47 guy Exp $
|
2002-02-27 09:42:52 +00:00
|
|
|
|
2001-02-02 04:03:43 +00:00
|
|
|
include ..\..\config.nmake
|
|
|
|
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
|
|
|
LEMON=..\..\tools\lemon
|
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CFLAGS=-DHAVE_CONFIG_H /I. /I.. /I..\.. /I$(LEMON) \
|
2003-06-14 20:36:04 +00:00
|
|
|
$(GTK_CFLAGS) /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
2001-02-02 04:03:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
OBJECTS = \
|
|
|
|
dfilter.obj \
|
|
|
|
dfvm.obj \
|
2001-02-27 19:23:30 +00:00
|
|
|
drange.obj \
|
2001-02-02 04:03:43 +00:00
|
|
|
gencode.obj \
|
|
|
|
glib-util.obj \
|
|
|
|
grammar.obj \
|
|
|
|
scanner.obj \
|
|
|
|
semcheck.obj \
|
2001-02-27 19:23:30 +00:00
|
|
|
sttype-integer.obj \
|
2001-02-02 04:03:43 +00:00
|
|
|
sttype-pointer.obj \
|
|
|
|
sttype-range.obj \
|
|
|
|
sttype-string.obj \
|
|
|
|
sttype-test.obj \
|
|
|
|
syntax-tree.obj
|
|
|
|
|
|
|
|
dfilter.lib : $(OBJECTS)
|
|
|
|
lib /out:dfilter.lib $(OBJECTS)
|
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(OBJECTS): ..\config.h
|
|
|
|
|
|
|
|
..\config.h:
|
|
|
|
cd ..
|
|
|
|
$(MAKE) -f makefile.nmake config.h
|
|
|
|
cd dfilter
|
2001-02-02 04:03:43 +00:00
|
|
|
|
|
|
|
clean:
|
2003-10-10 21:31:53 +00:00
|
|
|
rm -f $(OBJECTS) dfilter.lib $(PDB_FILE)
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f scanner.c grammar.c grammar.h grammar.out
|
2001-02-02 04:03:43 +00:00
|
|
|
|
|
|
|
scanner.c : scanner.l
|
|
|
|
$(LEX) -Pdf_ -oscanner.c scanner.l
|
|
|
|
|
|
|
|
scanner.obj : scanner.c grammar.h
|
|
|
|
|
2001-02-16 19:45:38 +00:00
|
|
|
grammar.h : grammar.c
|
2002-01-04 21:20:20 +00:00
|
|
|
grammar.c : grammar.lemon $(LEMON)\lemon.exe
|
2001-02-02 04:03:43 +00:00
|
|
|
$(LEMON)\lemon.exe t=$(LEMON)\lempar.c grammar.lemon
|
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(LEMON)\lemon.exe:
|
|
|
|
cd ../../tools/lemon
|
|
|
|
$(MAKE) -f makefile.nmake
|
|
|
|
cd ../../epan/dfilter
|