home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pccts.zip
/
pccts
/
lang
/
C
/
makefile
< prev
next >
Wrap
Makefile
|
1994-03-31
|
595b
|
25 lines
SYM=../../support/sym
H=../../h
SRC=scan.c decl.c func.c expr.c err.c main.c $(SYM)/sym.c engl.c
OBJ=scan.o decl.o func.o expr.o err.o main.o sym.o engl.o
CFLAGS=-I. -I$(H)
AFLAGS=-k $(K) -gt -gh
# where are dlg and antlr binaries
DLG=../../bin/dlg
ANTLR=../../bin/antlr
K=2 # tokens of lookahead
proto: $(OBJ) $(SRC)
cc -o proto $(OBJ)
decl.c func.c expr.c err.c stdpccts.h parser.dlg : decl.g func.g expr.g
$(ANTLR) $(AFLAGS) decl.g func.g expr.g
main.o engl.o : stdpccts.h
scan.c : parser.dlg
$(DLG) -C2 parser.dlg scan.c
sym.o : $(SYM)/sym.c
cc -c -o sym.o $(CFLAGS) $(SYM)/sym.c