ack/util/ceg/EM_parser/common/Makefile

45 lines
909 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
1989-01-26 14:43:09 +00:00
CFLAGS = $(IFILES)
1987-11-20 11:12:07 +00:00
all : dummy $(OFILES)
make $(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)
1988-08-18 16:36:14 +00:00
for i in $(OFILES) ; do rm -f $(OBJLIB)/$$i ; done
1988-08-18 13:48:49 +00:00
for i in $(OFILES) ; do ln $(ASLIB)/$$i $(OBJLIB)/$$i ; done
cmp: all
for i in $(OFILES) ; do cmp $$i $(ASLIB)/$$i ; done
clean:
1989-01-26 14:39:09 +00:00
rm -f *.o dummy Lpars.[ch] pars.c
1988-08-18 13:48:49 +00:00
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