Makefile revision 1.2
1# $NetBSD: Makefile,v 1.2 1995/03/29 21:24:01 ragge Exp $ 2# 3 4INCPATH=-I. -I../../.. -I../.. -I../../../lib/libsa 5 6CC= cc 7AS= as 8 9RELOC= 100000 10 11CFLAGS= -O ${INCPATH} -DSTANDALONE -DRELOC=0x${RELOC} 12MACH= -DVAX750 13 14DEVS= autoconf.o hp.o ra.o 15LIBS= libsa.a libsvax.a libkern.a 16 17all: boot xxboot bootxx 18 19libsa.a: ../../../lib/libsa/libsa.a 20 @rm -f libsa.a 21 cd ../../../lib/libsa; rm -f machine; \ 22 ln -s ../../arch/vax/include machine;make 23 @ln -s ../../../lib/libsa/libsa.a . 24 25libkern.a: ../../../lib/libkern/libkern.a 26 @rm -f libkern.a 27 cd ../../../lib/libkern; make 28 @ln -s ../../../lib/libkern/libkern.a . 29 30libsvax.a: consio.o urem.o udiv.o 31 ar crv $@ $? 32 ranlib $@ 33 34urem.o: ../vax/urem.s 35 ${CC} -x assembler-with-cpp -E ../vax/urem.s | as -o urem.o 36 37udiv.o: ../vax/udiv.s 38 ${CC} -x assembler-with-cpp -E ../vax/udiv.s | as -o udiv.o 39 40# startups 41 42srt0.o: srt0.s 43 ${CC} -x assembler-with-cpp -E -DREL srt0.s | as -o srt0.o 44 45 46boot: boot.o srt0.o devopen.o conf.o ${DEVS} ${LIBS} 47 ld -N -T ${RELOC} -e nisse -o $@ srt0.o devopen.o boot.o \ 48 conf.o ${DEVS} ${LIBS} 49 @strip boot 50 @size boot 51 52hp.o: hp.c 53 ${CC} -c ${CFLAGS} $*.c 54 55ra.o: ra.c 56 ${CC} -c ${CFLAGS} $*.c 57 58autoconf.o: autoconf.c 59 ${CC} -c ${CFLAGS} $*.c 60 61conf.o: conf.c 62 ${CC} -c ${CFLAGS} $*.c 63 64boot.o: boot.c 65 ${CC} -c ${CFLAGS} $*.c 66 67bootblocks: start.o bootxx.o init.o romread.o ${LIBS} 68 ld -N -T ${RELOC} -o a.out start.o bootxx.o init.o romread.o ${LIBS} 69 @strip a.out 70 @size a.out 71 @dd if=a.out of=bootblocks bs=32 skip=1 72 @rm -f a.out 73 74xxboot: bootblocks 75 dd if=bootblocks of=xxboot bs=512 count=1 76 77bootxx: bootblocks 78 dd if=bootblocks of=bootxx bs=512 skip=1 79 80start.o: start.s 81 ${CC} -x assembler-with-cpp -E start.s | as -o start.o 82 83romread.o: romread.s 84 ${CC} -x assembler-with-cpp -E romread.s | as -o romread.o 85 86init.o: init.c 87 ${CC} -c ${CFLAGS} $*.c 88 89bootxx.o: bootxx.c 90 ${CC} -c ${CFLAGS} $*.c 91 92clean: 93 rm -f start.o romread.o bootxx.o init.o xxboot bootxx bootblocks \ 94 libsvax.a libsa.a libkern.a udiv.o urem.o consio.o 95 rm -f autoconf.o conf.o boot.o hp.o boot srt0.o devopen.o 96