New installation mechanism

This commit is contained in:
ceriel 1991-09-04 11:32:07 +00:00
parent 7dd59bfdb0
commit 5d5fa0b453
4 changed files with 77 additions and 2 deletions

View file

@ -1,2 +1,2 @@
Makefile
proto.make
dl.c

33
mach/6500/dl/proto.make Normal file
View file

@ -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

View file

@ -1,3 +1,3 @@
Makefile
proto.make
Xcv.c
cv.c

42
mach/mantra/cv/proto.make Normal file
View file

@ -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