From d93bc01d2dee69942092439743ed4ee56d94d128 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 5 Sep 1991 11:06:46 +0000 Subject: [PATCH] New installation mechanism --- util/ceg/EM_parser/common/.distr | 2 +- util/ceg/EM_parser/common/proto.make | 76 ++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 util/ceg/EM_parser/common/proto.make diff --git a/util/ceg/EM_parser/common/.distr b/util/ceg/EM_parser/common/.distr index d3fe3bb2b..2c74fd389 100644 --- a/util/ceg/EM_parser/common/.distr +++ b/util/ceg/EM_parser/common/.distr @@ -1,5 +1,5 @@ C_instr2.c -Makefile +proto.make action.c arg_type.h decl.h diff --git a/util/ceg/EM_parser/common/proto.make b/util/ceg/EM_parser/common/proto.make new file mode 100644 index 000000000..3c57148fe --- /dev/null +++ b/util/ceg/EM_parser/common/proto.make @@ -0,0 +1,76 @@ +# $Header$ + +#PARAMS do not remove this line! + +CEGLIB = $(TARGET_HOME)/lib.bin/ceg +PARLIB = $(CEGLIB)/EM_parser +OBJLIB = $(PARLIB)/obj_EM_pars +ASLIB = $(PARLIB)/as_EM_pars + +GFILES = $(SRC_DIR)/pars.g +OFILES = pars.$(SUF) Lpars.$(SUF) scan.$(SUF) mylex.$(SUF) default.$(SUF) \ + C_instr2.$(SUF) help.$(SUF) eval.$(SUF) action.$(SUF) + +IFILES = -I$(TARGET_HOME)/h -I$(TARGET_HOME)/modules/h -I. +CFLAGS = $(COPTIONS) $(IFILES) + +all : dummy + make $(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 rm -f $(OBJLIB)/$$i ; done + 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 *.$(SUF) dummy Lpars.[ch] pars.c + +pr: + @pr $(SRC_DIR)/Makefile $(SRC_DIR)/C_instr2.c $(SRC_DIR)/action.c \ + $(SRC_DIR)/arg_type.h $(SRC_DIR)/decl.h $(SRC_DIR)/default.c \ + $(SRC_DIR)/em_parser.h $(SRC_DIR)/eval.c $(SRC_DIR)/help.c \ + $(SRC_DIR)/mylex.c $(SRC_DIR)/pars.g $(SRC_DIR)/scan.c + +opr: + make pr | opr + +OFILES = pars.$(SUF) Lpars.$(SUF) scan.$(SUF) mylex.$(SUF) default.$(SUF) \ + C_instr2.$(SUF) help.$(SUF) eval.$(SUF) action.$(SUF) + +Lpars.$(SUF): Lpars.h $(SRC_DIR)/decl.h Lpars.c + $(CC) $(CFLAGS) -c Lpars.c + +pars.$(SUF): Lpars.h $(SRC_DIR)/decl.h pars.c + $(CC) $(CFLAGS) -c pars.c + +scan.$(SUF): $(SRC_DIR)/scan.c + $(CC) $(CFLAGS) -c $(SRC_DIR)/scan.c + +mylex.$(SUF): $(SRC_DIR)/mylex.c + $(CC) $(CFLAGS) -c $(SRC_DIR)/mylex.c + +default.$(SUF): $(SRC_DIR)/default.c + $(CC) $(CFLAGS) -c $(SRC_DIR)/default.c + +C_instr2.$(SUF): $(SRC_DIR)/C_instr2.c + $(CC) $(CFLAGS) -c $(SRC_DIR)/C_instr2.c + +help.$(SUF): $(SRC_DIR)/help.c + $(CC) $(CFLAGS) -c $(SRC_DIR)/help.c + +eval.$(SUF): $(SRC_DIR)/eval.c + $(CC) $(CFLAGS) -c $(SRC_DIR)/eval.c + +action.$(SUF): $(SRC_DIR)/action.c + $(CC) $(CFLAGS) -c $(SRC_DIR)/action.c