diff --git a/mach/6500/dl/.distr b/mach/6500/dl/.distr index e80578724..f838529b7 100644 --- a/mach/6500/dl/.distr +++ b/mach/6500/dl/.distr @@ -1,2 +1,2 @@ -Makefile +proto.make dl.c diff --git a/mach/6500/dl/proto.make b/mach/6500/dl/proto.make new file mode 100644 index 000000000..2ea3e12fe --- /dev/null +++ b/mach/6500/dl/proto.make @@ -0,0 +1,33 @@ +# $Header$ + +#PARAMS do not remove this line! + +OBJLIB=$(TARGET_HOME)/modules/lib/libobject.$(LIBSUF) + +SRC_DIR = $(SRC_HOME)/mach/6500/dl + +all: dl + +dl: dl.$(SUF) + $(CC) $(LDOPTIONS) -o dl dl.$(SUF) $(OBJLIB) + +dl.$(SUF): $(SRC_DIR)/dl.c + $(CC) $(COPTIONS) -I$(TARGET_HOME)/h -c $(SRC_DIR)/dl.c + +install: all + cp dl $(TARGET_HOME)/lib.bin/6500/dl + +cmp: all + -cmp dl $(TARGET_HOME)/lib.bin/6500/dl + +clean: + rm -f *.(SUF) Out + +lint: + $(LINT) $(LINTOPTIONS) -I$(TARGET_HOME)/h $(SRC_DIR)/dl.c $(UTIL_HOME)/modules/lib/$(LINTPREF)object.$(LINTSUF) + +pr: + @pr $(SRC_DIR)/proto.make $(SRC_DIR)/dl.c + +opr: + make pr | opr diff --git a/mach/mantra/cv/.distr b/mach/mantra/cv/.distr index fa05f385e..5598b65a7 100644 --- a/mach/mantra/cv/.distr +++ b/mach/mantra/cv/.distr @@ -1,3 +1,3 @@ -Makefile +proto.make Xcv.c cv.c diff --git a/mach/mantra/cv/proto.make b/mach/mantra/cv/proto.make new file mode 100644 index 000000000..8f6c03f00 --- /dev/null +++ b/mach/mantra/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/mantra/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) -I$(TARGET_HOME)/h -c $(SRC_DIR)/cv.c + +Xcv.$(SUF): $(SRC_DIR)/Xcv.c + $(CC) $(COPTIONS) -I$(TARGET_HOME)/h -c $(SRC_DIR)/Xcv.c + +install: all + cp cv $(TARGET_HOME)/lib.bin/mantra/cv + cp Xcv $(TARGET_HOME)/lib.bin/mantra/Xcv + +cmp: all + -cmp cv $(TARGET_HOME)/lib.bin/mantra/cv + -cmp Xcv $(TARGET_HOME)/lib.bin/mantra/Xcv + +clean: + rm -f *.(SUF) Out + +lint: + $(LINT) $(LINTOPTIONS) -I$(TARGET_HOME)/h $(SRC_DIR)/cv.c $(UTIL_HOME)/modules/lib/$(LINTPREF)object.$(LINTSUF) + $(LINT) $(LINTOPTIONS) -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