Fixed proto.make

This commit is contained in:
ceriel 1991-09-13 14:56:50 +00:00
parent 712ae25e0d
commit 65454de06c
6 changed files with 16 additions and 11 deletions

View file

@ -2,8 +2,8 @@
#PARAMS do not remove this line! #PARAMS do not remove this line!
DEFDIR = $(TARGET_HOME)/lib/m2 DEF_DIR = $(TARGET_HOME)/lib/m2
SRCDIR = $(SRC_HOME)/lang/m2/libm2 SRC_DIR = $(SRC_HOME)/lang/m2/libm2
SOURCES = ASCII.def EM.def MathLib0.def Processes.def \ SOURCES = ASCII.def EM.def MathLib0.def Processes.def \
RealInOut.def Storage.def Arguments.def Conversion.def \ RealInOut.def Storage.def Arguments.def Conversion.def \
@ -25,5 +25,5 @@ opr:
make pr | opr make pr | opr
install: install:
-mkdir $(DEFDIR) -mkdir $(DEF_DIR)
for i in $(SOURCES) ; do cp $(SRC_DIR)/$$i $(DEFDIR)/$$i ; done for i in $(SOURCES) ; do cp $(SRC_DIR)/$$i $(DEF_DIR)/$$i ; done

View file

@ -29,6 +29,7 @@ COMM = $(CDIR)/comm0.h $(CDIR)/comm1.h $(CDIR)/comm2.y $(CSRC)
all: as all: as
install:all install:all
-mkdir $(TARGET_HOME)/lib.bin/$(MACH)
cp as $(TARGET_HOME)/lib.bin/$(MACH)/as cp as $(TARGET_HOME)/lib.bin/$(MACH)/as
cmp: cmp:
@ -57,12 +58,12 @@ as.c: as.y
y.tab.h: as.c y.tab.h: as.c
$(COBJ): y.tab.h $(COBJ): y.tab.h
$(COBJ) as.y: $(CDIR)/comm0.h mach0.c $(COBJ) as.y: $(CDIR)/comm0.h $(MDIR)/mach0.c
$(COBJ) as.y: $(CDIR)/comm1.h mach1.c $(COBJ) as.y: $(CDIR)/comm1.h $(MDIR)/mach1.c
as.y: mach2.c as.y: $(MDIR)/mach2.c
comm3.$(SUF): mach3.c comm3.$(SUF): $(MDIR)/mach3.c
as.y: mach4.c as.y: $(MDIR)/mach4.c
comm8.$(SUF): mach5.c comm8.$(SUF): $(MDIR)/mach5.c
comm3.$(SUF): $(CDIR)/comm3.c comm3.$(SUF): $(CDIR)/comm3.c
$(CC) -c $(CFLAGS) $(CDIR)/comm3.c $(CC) -c $(CFLAGS) $(CDIR)/comm3.c
comm4.$(SUF): $(CDIR)/comm4.c comm4.$(SUF): $(CDIR)/comm4.c

View file

@ -68,6 +68,7 @@ var.$(SUF): $(CDIR)/var.c
$(CC) -c $(CFLAGS) $(CDIR)/var.c $(CC) -c $(CFLAGS) $(CDIR)/var.c
install: all install: all
-mkdir $(TARGET_HOME)/lib.bin/$(MACH)
cp cg $(TARGET_HOME)/lib.bin/$(MACH)/cg cp cg $(TARGET_HOME)/lib.bin/$(MACH)/cg
cmp: all cmp: all

View file

@ -78,6 +78,7 @@ var.$(SUF): $(CDIR)/var.c
$(CC) -c $(CFLAGS) $(CDIR)/var.c $(CC) -c $(CFLAGS) $(CDIR)/var.c
install: all install: all
mkdir $(TARGET_HOME)/lib.bin/$(MACH)
cp cg $(TARGET_HOME)/lib.bin/$(MACH)/cg cp cg $(TARGET_HOME)/lib.bin/$(MACH)/cg
cmp: all cmp: all

View file

@ -29,6 +29,7 @@ queue.$(SUF): $(CDIR)/queue.c
$(CC) -c $(CFLAGS) $(CDIR)/queue.c $(CC) -c $(CFLAGS) $(CDIR)/queue.c
install: all install: all
-mkdir $(TARGET_HOME)/lib.bin/$(MACH)
cp top $(TARGET_HOME)/lib.bin/$(MACH)/top cp top $(TARGET_HOME)/lib.bin/$(MACH)/top
cmp: all cmp: all

View file

@ -2,6 +2,7 @@
#PARAMS do not remove this line! #PARAMS do not remove this line!
SRC_DIR = $(SRC_HOME)/util/ceg/EM_parser/common
CEGLIB = $(TARGET_HOME)/lib.bin/ceg CEGLIB = $(TARGET_HOME)/lib.bin/ceg
PARLIB = $(CEGLIB)/EM_parser PARLIB = $(CEGLIB)/EM_parser
OBJLIB = $(PARLIB)/obj_EM_pars OBJLIB = $(PARLIB)/obj_EM_pars
@ -11,7 +12,7 @@ GFILES = $(SRC_DIR)/pars.g
OFILES = pars.$(SUF) Lpars.$(SUF) scan.$(SUF) mylex.$(SUF) default.$(SUF) \ OFILES = pars.$(SUF) Lpars.$(SUF) scan.$(SUF) mylex.$(SUF) default.$(SUF) \
C_instr2.$(SUF) help.$(SUF) eval.$(SUF) action.$(SUF) C_instr2.$(SUF) help.$(SUF) eval.$(SUF) action.$(SUF)
IFILES = -I$(TARGET_HOME)/h -I$(TARGET_HOME)/modules/h -I. IFILES = -I$(TARGET_HOME)/h -I$(TARGET_HOME)/modules/h -I. -I$(SRC_DIR)
CFLAGS = $(COPTIONS) $(IFILES) CFLAGS = $(COPTIONS) $(IFILES)
all : dummy all : dummy