From 43efeff3931f8e1c4b463e423678f0a3fd778f9d Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 3 Sep 1991 16:28:37 +0000 Subject: [PATCH] new installation mechanism --- mach/sun2/libsys/.distr | 2 -- mach/sun3/cv/.distr | 2 +- mach/sun3/cv/proto.make | 42 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 mach/sun3/cv/proto.make diff --git a/mach/sun2/libsys/.distr b/mach/sun2/libsys/.distr index 207f73893..52a9f74e4 100644 --- a/mach/sun2/libsys/.distr +++ b/mach/sun2/libsys/.distr @@ -1,6 +1,4 @@ LIST -Makefile -compmodule head_em.s libmon_s.a syscall.h diff --git a/mach/sun3/cv/.distr b/mach/sun3/cv/.distr index 17780d574..1ea8d092c 100644 --- a/mach/sun3/cv/.distr +++ b/mach/sun3/cv/.distr @@ -1,3 +1,3 @@ -Makefile +proto.make cv.c Xcv.c diff --git a/mach/sun3/cv/proto.make b/mach/sun3/cv/proto.make new file mode 100644 index 000000000..e2d2134c9 --- /dev/null +++ b/mach/sun3/cv/proto.make @@ -0,0 +1,42 @@ +# $Header$ + +#PARAMS do not remove this line! + +OBJLIB=$(TARGET_HOME)/modules/lib/libobject.$(LIBSUF) + +SRC_DIR = $(SRC_HOME)/mach/sun3/cv + +all: cv Xcv + +cv: cv.$(SUF) + $(CC) $(LDOPTIONS) -o cv cv.$(SUF) $(OBJLIB) + +Xcv: Xcv.$(SUF) + $(CC) $(LDOPTIONS) -o Xcv Xcv.$(SUF) $(OBJLIB) + +cv.$(SUF): $(SRC_DIR)/cv.c + $(CC) $(COPTIONS) -DMACH=2 -I$(TARGET_HOME)/h -c $(SRC_DIR)/cv.c + +Xcv.$(SUF): $(SRC_DIR)/Xcv.c + $(CC) $(COPTIONS) -DMACH=2 -I$(TARGET_HOME)/h -c $(SRC_DIR)/Xcv.c + +install: all + cp cv $(TARGET_HOME)/lib.bin/sun3/cv + cp Xcv $(TARGET_HOME)/lib.bin/sun3/Xcv + +cmp: all + -cmp cv $(TARGET_HOME)/lib.bin/sun3/cv + -cmp Xcv $(TARGET_HOME)/lib.bin/sun3/Xcv + +clean: + rm -f *.(SUF) Out + +lint: + $(LINT) $(LINTOPTIONS) -DMACH=2 -I$(TARGET_HOME)/h $(SRC_DIR)/cv.c $(UTIL_HOME)/modules/lib/$(LINTPREF)object.$(LINTSUF) + $(LINT) $(LINTOPTIONS) -DMACH=2 -I$(TARGET_HOME)/h $(SRC_DIR)/Xcv.c $(UTIL_HOME)/modules/lib/$(LINTPREF)object.$(LINTSUF) + +pr: + @pr $(SRC_DIR)/proto.make $(SRC_DIR)/cv.c $(SRC_DIR)/Xcv.c + +opr: + make pr | opr