home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
p
/
pccts.zip
/
lang
/
c
/
makefile.cst
< prev
next >
Wrap
Makefile
|
1992-12-04
|
695b
|
35 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.obj decl.obj func.obj expr.obj err.obj main.obj sym.obj engl.obj
CC=icc
CFLAGS=-I. -I$(H) -DLL_K=$(K) /Sa
AFLAGS=-k $(K) -gt -gh
LIBS=/NOD:LLIBCE LLIBCEP
# where are dlg and antlr binaries
DLG=..\..\bin\dlg
ANTLR=..\..\bin\antlr
K=2 # tokens of lookahead
proto.exe: $(OBJ) $(SRC)
link386 @<<
$(OBJ: = +^
) /NOI
$@
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS) ;
<<
decl.c func.c expr.c err.c parser.dlg : decl.g func.g expr.g
$(ANTLR) $(AFLAGS) decl.g func.g expr.g
scan.c : parser.dlg
$(DLG) -C2 parser.dlg scan.c
sym.obj : $(SYM)/sym.c
$(CC) -c sym.obj $(CFLAGS) $(SYM)/sym.c