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.os2
< prev
next >
Wrap
Makefile
|
1992-12-04
|
732b
|
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
CFLAGS=-I. -I$(H) -DLL_K=$(K) /Za /AL
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)
link @<<
$(OBJ: = +^
) /NOI
$@
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS) ;
<<
bind $@ c:\os2\doscalls.lib
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