forked from osmocom/wireshark
![Guy Harris](/assets/img/avatar_default.png)
Additional Windows Makefile dependencies, so more stuff gets built as needed. Additional stuff cleaned up by "make clean" (well, "nmake -f makefile.nmake clean", anyway) Make PDB_FILE be "vc*.pdb", so it referes to the PDB files either for VC++ 5.0 or VC++ 6.0. svn path=/trunk/; revision=4481
63 lines
1.2 KiB
Makefile
63 lines
1.2 KiB
Makefile
include ..\..\config.nmake
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
LEMON=..\..\tools\lemon
|
|
|
|
CFLAGS=-DHAVE_CONFIG_H /I. /I.. /I..\.. /I$(LEMON) \
|
|
/I$(GLIB_DIR) /I$(GTK_DIR) /I$(GLIB_DIR)\gmodule \
|
|
/I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
|
|
/I$(PCAP_DIR)\include $(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
|
|
|
|
|