Adapted for ACK

This commit is contained in:
ceriel 1988-08-18 13:48:49 +00:00
parent 08bd32f88d
commit 367e4ac01c
2 changed files with 40 additions and 12 deletions

View file

@ -1,7 +1,10 @@
EM=../../../..
LIB=$(EM)/lib/ceg/EM_parser/as_EM_pars
CEGLIB = $(EM)/lib/ceg
PARLIB = $(CEGLIB)/EM_parser
LIB = $(PARLIB)/as_EM_pars
OFILES = dist.o error.o
HFILES = arg_type.h em_decl.h em_parser.h
IFILES = -I$(EM)/h -I$(EM)/modules/h
CC = cc
@ -12,14 +15,19 @@ CC = cc
all : $(OFILES)
install: all
cp $(OFILES) $(LIB)
-mkdir $(CEGLIB)
-mkdir $(PARLIB)
-mkdir $(LIB)
cp $(OFILES) $(HFILES) $(LIB)
cmp: all
for i in $(OFILES) ; do cmp $$i $(LIB)/$$i ; done
for i in $(OFILES) $(HFILES) ; do cmp $$i $(LIB)/$$i ; done
clean:
rm -f *.o
opr:
pr:
@pr Makefile arg_type.h dist.c em_decl.h em_parser.h error.c
opr:
make pr | opr

View file

@ -1,4 +1,8 @@
EM=/proj/em/Work
EM=../../../..
CEGLIB = $(EM)/lib/ceg
PARLIB = $(CEGLIB)/EM_parser
OBJLIB = $(PARLIB)/obj_EM_pars
ASLIB = $(PARLIB)/as_EM_pars
GFILES = pars.g
OFILES = pars.o Lpars.o scan.o mylex.o default.o C_instr2.o help.o eval.o\
@ -8,17 +12,33 @@ CC = cc
.c.o :
$(CC) $(IFILES) -c $<
rm -f ../obj_EM_pars/$*.o
rm -f ../as_EM_pars/$*.o
ln $*.o ../obj_EM_pars/$*.o
ln $*.o ../as_EM_pars/$*.o
common : dummy $(OFILES)
touch ../*/em_parser
all : dummy $(OFILES)
dummy : $(GFILES)
LLgen $(LLOPT) $(GFILES)
touch dummy
install: all
-mkdir $(CEGLIB)
-mkdir $(PARLIB)
-mkdir $(OBJLIB)
-mkdir $(ASLIB)
cp $(OFILES) $(ASLIB)
for i in $(OFILES) ; do ln $(ASLIB)/$$i $(OBJLIB)/$$i ; done
cmp: all
for i in $(OFILES) ; do cmp $$i $(ASLIB)/$$i ; done
clean:
rm -f *.o
pr:
@pr Makefile C_instr2.c action.c arg_type.h decl.h default.c \
em_parser.h eval.c help.c mylex.c pars.g scan.c
opr:
make pr | opr
Lpars.o : Lpars.h decl.h
pars.o : Lpars.h decl.h