modified for ACK

This commit is contained in:
ceriel 1988-08-18 13:35:09 +00:00
parent 057ee4e5cb
commit e7683658b7
2 changed files with 40 additions and 5 deletions

View file

@ -1,4 +1,5 @@
EM=/proj/em/Work EM=../../..
CEGLIB = $(EM)/lib/ceg
GFILES = pars.g GFILES = pars.g
OFILES = pars.o Lpars.o lex.yy.o help.o conversion.o OFILES = pars.o Lpars.o lex.yy.o help.o conversion.o
@ -8,12 +9,41 @@ LIBS = $(EM)/modules/lib/liballoc.a\
$(EM)/modules/lib/libstring.a\ $(EM)/modules/lib/libstring.a\
$(EM)/modules/lib/libsystem.a $(EM)/modules/lib/libsystem.a
CC = cc CC = cc
CFLAGS = -O
LEXLIB = -ll
.c.o : .c.o :
$(CC) $(IFILES) -c $< $(CC) $(CFLAGS) $(IFILES) -c $<
all: as_parser eval/eval
as_parser : dummy $(OFILES) as_parser : dummy $(OFILES)
$(CC) -o as_parser $(OFILES) $(LIBS) -ll $(CC) -o as_parser $(OFILES) $(LIBS) $(LEXLIB)
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
lex.yy.c : table.l lex.yy.c : table.l
lex table.l lex table.l

View file

@ -1,2 +1,7 @@
eval : eval.c states.h CC = cc
cc -o eval eval.c CFLAGS = -O
eval: eval.o
$(CC) $(CFLAGS) -o eval eval.o
eval.o : states.h