1 # $NetBSD: Makefile,v 1.3 1995/02/27 16:36:46 cgd Exp $ 2 # 3 # BSD Boot blocks for the Alpha 4 # 5 # XXX should generate a primary boot block, too... 6 7 INCPATH=-I../../../.. -I. 8 9 # Boot relocation address 10 RELOC1= 20020000 11 # Low memory test program relocation address 12 #RELOC2= 20004000 13 # High memory test program relocation address 14 RELOC2= fffffc0000230000 15 16 # Compiler and assembler flags used to generate boot blocks. 17 # 18 DEFS= -DSMALL -DSTANDALONE 19 AFLAGS+=-DASSEMBLER ${INCPATH} 20 CFLAGS= -mno-fp-regs ${INCPATH} ${DEFS} 21 22 LIBS= libsa/libsa.a -lc 23 SRCS= boot.c disk.c conf.c prom.c test.c 24 25 all: boot 26 27 libsa/libsa.a:: 28 cd libsa; make 29 30 # This boot is supposed to be installed in this way: 31 # cp boot <true_root_of_disk>/boot 32 BOBJS= boot.o conf.o disk.o prom.o prom_disp.o prom_swpal.o vers.o 33 boot: start.o ${BOBJS} ${LIBS} 34 ${LD} -Ttext ${RELOC1} -N \ 35 -e start -o ${.TARGET} start.o ${BOBJS} ${LIBS} 36 37 # This boot is supposed to be installed in this way: 38 # cp test_boot <true_root_of_disk>/test_boot 39 # 40 # It is used presumably in this way: 41 # boot -fi "test_boot" dka300 42 TOBJS= prom.o prom_disp.o prom_swpal.o test.o 43 test_boot: start.o ${TOBJS} ${LIBS} 44 ${LD} -T ${RELOC2} -N -e start -o ${.TARGET} start.o ${TOBJS} ${LIBS} 45 46 clean cleandir: 47 rm -f .depend *.o *.exe *.i errs make.out core* vers.c 48 rm -f a.out boot test_boot 49 cd libsa && make cleandir 50 51 install: 52 install -c -o root -g wheel -m 555 boot ${DESTDIR}/ 53 54 depend: ${SRCS} 55 mkdep -p ${INCPATH} ${DEFS} ${SRCS} 56 cd libsa && make depend 57 58 newvers: 59 sh newvers.sh 60 61 vers.c: newvers 62