forked from osmocom/wireshark
51 lines
1,006 B
Makefile
51 lines
1,006 B
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
|
|
|
|
{$S}.c{$O}.obj::
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd$O\ -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)
|
|
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) scanner.c grammar.c grammar.h grammar.out dfilter.lib
|
|
|
|
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 t=$(LEMON)\lempar.c grammar.lemon
|
|
|