ack/util/ceg/EM_parser/common/Makefile

45 lines
829 B
Makefile
Raw Normal View History

1988-08-18 13:48:49 +00:00
EM=../../../..
CEGLIB = $(EM)/lib/ceg
PARLIB = $(CEGLIB)/EM_parser
OBJLIB = $(PARLIB)/obj_EM_pars
ASLIB = $(PARLIB)/as_EM_pars
1987-11-20 11:12:07 +00:00
GFILES = pars.g
1987-12-18 16:17:29 +00:00
OFILES = pars.o Lpars.o scan.o mylex.o default.o C_instr2.o help.o eval.o\
1987-11-20 11:12:07 +00:00
action.o
IFILES = -I$(EM)/h -I$(EM)/modules/h
CC = cc
.c.o :
$(CC) $(IFILES) -c $<
1988-08-18 13:48:49 +00:00
all : dummy $(OFILES)
1987-11-20 11:12:07 +00:00
dummy : $(GFILES)
LLgen $(LLOPT) $(GFILES)
touch dummy
1988-08-18 13:48:49 +00:00
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
1987-11-20 11:12:07 +00:00
Lpars.o : Lpars.h decl.h
pars.o : Lpars.h decl.h