diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /sys/arch/vax/stand/Makefile |
initial import of NetBSD tree
Diffstat (limited to 'sys/arch/vax/stand/Makefile')
-rw-r--r-- | sys/arch/vax/stand/Makefile | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/sys/arch/vax/stand/Makefile b/sys/arch/vax/stand/Makefile new file mode 100644 index 00000000000..b54fa987f1f --- /dev/null +++ b/sys/arch/vax/stand/Makefile @@ -0,0 +1,103 @@ +# $NetBSD: Makefile,v 1.4 1995/09/16 13:18:27 ragge Exp $ +# + +INCPATH=-I. -I../../.. -I../.. -I../../../lib/libsa + +CC= cc +AS= as + +S= ../../.. +RELOC= 100000 +CFLAGS+=-O ${INCPATH} -DSTANDALONE -DRELOC=0x${RELOC} -D_VAX_INLINE_ + +DEVS= autoconf.o hp.o ra.o tmscp.o + +.include "$S/lib/libkern/Makefile.inc" +LIBKERN= ${KERNLIB} + +.include "$S/lib/libsa/Makefile.inc" +LIBSA= ${SA_LIB} + +all: xxboot boot copy edlabel + +libsvax.a: consio.o urem.o udiv.o + ar crv $@ $? + ranlib $@ + +urem.o: ../vax/urem.s + ${CC} -x assembler-with-cpp -E ../vax/urem.s | as -o urem.o + +udiv.o: ../vax/udiv.s + ${CC} -x assembler-with-cpp -E ../vax/udiv.s | as -o udiv.o + +# startups + +start.o: start.s + ${CC} -x assembler-with-cpp -E start.s | as -o start.o + +srt0.o: srt0.s + ${CC} -x assembler-with-cpp -E srt0.s | as -o srt0.o + +# + +xxboot: start.o bootxx.o romread.o ${LIBSA} ${LIBKERN} libsvax.a + ld -N -Ttext ${RELOC} -o a.out start.o bootxx.o romread.o \ + ${LIBSA} ${LIBKERN} libsvax.a + @strip a.out + @size a.out + @dd if=a.out of=xxboot bs=32 skip=1 + @rm -f a.out + +boot: boot.o srt0.o devopen.o conf.o ${DEVS} ${LIBKERN} ${LIBSA} libsvax.a + ld -N -Ttext ${RELOC} -e nisse -o $@ srt0.o devopen.o boot.o \ + conf.o ${DEVS} ${LIBSA} ${LIBKERN} libsvax.a + @strip boot + @size boot + +edlabel: edlabel.o srt0.o devopen.o conf.o ${DEVS} ${LIBKERN} ${LIBSA} libsvax.a + ld -N -Ttext ${RELOC} -e nisse -o $@ srt0.o devopen.o edlabel.o\ + conf.o ${DEVS} ${LIBSA} ${LIBKERN} libsvax.a + @strip edlabel + @size edlabel + +copy: copy.o srt0.o devopen.o conf.o ${DEVS} ${LIBKERN} ${LIBSA} libsvax.a + ld -N -Ttext ${RELOC} -e nisse -o $@ srt0.o devopen.o copy.o \ + conf.o ${DEVS} ${LIBSA} ${LIBKERN} libsvax.a + @strip copy + @size copy + +# + +hp.o: hp.c + ${CC} -c ${CFLAGS} $*.c + +ra.o: ra.c + ${CC} -c ${CFLAGS} $*.c + +autoconf.o: autoconf.c + ${CC} -c ${CFLAGS} $*.c + +conf.o: conf.c + ${CC} -c ${CFLAGS} $*.c + +boot.o: boot.c + ${CC} -c ${CFLAGS} $*.c + +copy.o: copy.c + ${CC} -c ${CFLAGS} $*.c + +romread.o: romread.s + ${CC} -x assembler-with-cpp -E romread.s | as -o romread.o + +init.o: init.c + ${CC} -c ${CFLAGS} $*.c + +bootxx.o: bootxx.c + ${CC} -c ${CFLAGS} $*.c + +clean:: + rm -f start.o romread.o bootxx.o init.o xxboot boot racopy \ + libsvax.a udiv.o urem.o consio.o ${DEVS} edlabel edlabel.o + rm -f conf.o boot.o rom.o racopy.o srt0.o devopen.o rootcopy.o \ + copy copy.o + |