1988-08-18 13:35:09 +00:00
|
|
|
EM=../../..
|
|
|
|
CEGLIB = $(EM)/lib/ceg
|
1987-11-20 11:12:07 +00:00
|
|
|
|
|
|
|
GFILES = pars.g
|
|
|
|
OFILES = pars.o Lpars.o lex.yy.o help.o conversion.o
|
|
|
|
IFILES = -I$(EM)/h -I$(EM)/modules/h
|
|
|
|
LIBS = $(EM)/modules/lib/liballoc.a\
|
|
|
|
$(EM)/modules/lib/libprint.a\
|
|
|
|
$(EM)/modules/lib/libstring.a\
|
|
|
|
$(EM)/modules/lib/libsystem.a
|
|
|
|
CC = cc
|
1988-08-18 13:35:09 +00:00
|
|
|
CFLAGS = -O
|
|
|
|
LEXLIB = -ll
|
1987-11-20 11:12:07 +00:00
|
|
|
|
|
|
|
.c.o :
|
1988-08-18 13:35:09 +00:00
|
|
|
$(CC) $(CFLAGS) $(IFILES) -c $<
|
|
|
|
|
|
|
|
all: as_parser eval/eval
|
1987-11-20 11:12:07 +00:00
|
|
|
|
1989-10-16 09:32:05 +00:00
|
|
|
as_parser: dummy $(OFILES)
|
|
|
|
make $(OFILES)
|
|
|
|
$(CC) -o as_parser $(OFILES) $(LIBS) $(LEXLIB)
|
1988-08-18 13:35:09 +00:00
|
|
|
|
|
|
|
eval/eval:
|
|
|
|
( cd eval ; make eval )
|
|
|
|
|
|
|
|
install: all
|
|
|
|
-mkdir $(CEGLIB)
|
|
|
|
-mkdir $(CEGLIB)/as_parser
|
|
|
|
-mkdir $(CEGLIB)/as_parser/eval
|
|
|
|
cp as_parser $(CEGLIB)/as_parser/as_parser
|
|
|
|
cp eval/eval $(CEGLIB)/as_parser/eval/eval
|
|
|
|
cp as_parser.h $(CEGLIB)/as_parser/as_parser.h
|
|
|
|
|
|
|
|
cmp: all
|
|
|
|
-cmp as_parser $(CEGLIB)/as_parser/as_parser
|
|
|
|
-cmp eval/eval $(CEGLIB)/as_parser/eval/eval
|
|
|
|
-cmp as_parser.h $(CEGLIB)/as_parser/as_parser.h
|
|
|
|
|
|
|
|
pr:
|
|
|
|
@pr Makefile as_parser.h const.h conversion.c decl.h help.c pars.g table.l eval/Makefile eval/eval.c eval/states.h
|
|
|
|
|
|
|
|
opr:
|
|
|
|
make pr | opr
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f as_parser *.o lex.yy.c Lpars.[ch] pars.c dummy eval/*.o eval/eval
|
1987-11-20 11:12:07 +00:00
|
|
|
|
|
|
|
lex.yy.c : table.l
|
|
|
|
lex table.l
|
|
|
|
|
|
|
|
dummy : $(GFILES)
|
|
|
|
LLgen $(LLOPT) $(GFILES)
|
|
|
|
touch dummy
|
|
|
|
|
|
|
|
Lpars.o : Lpars.h decl.h
|
|
|
|
pars.o : Lpars.h decl.h
|
|
|
|
Lpars.o : Lpars.h decl.h
|
|
|
|
lex.yy.o : Lpars.h decl.h
|