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