new installation mechanism

This commit is contained in:
ceriel 1991-09-03 16:28:37 +00:00
parent 01d8753db4
commit 43efeff393
3 changed files with 43 additions and 3 deletions

View file

@ -1,6 +1,4 @@
LIST
Makefile
compmodule
head_em.s
libmon_s.a
syscall.h

View file

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

42
mach/sun3/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/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