Home | History | Annotate | Line # | Download | only in boot
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 
      7 DESTDIR=
      8 INCPATH=-I../../../.. -I.
      9 
     10 # Boot relocation address
     11 RELOC1=	20020000
     12 # Low memory test program relocation address
     13 #RELOC2=	20004000
     14 # High memory test program relocation address
     15 RELOC2=	fffffc0000230000
     16 
     17 # Compiler and assembler flags used to generate boot blocks.
     18 #
     19 DEFS=	-DSMALL -DSTANDALONE
     20 AFLAGS+=-DASSEMBLER ${INCPATH}
     21 CFLAGS= -mno-fp-regs ${INCPATH} ${DEFS}
     22 
     23 LIBS=	libsa/libsa.a -lc
     24 SRCS=	boot.c disk.c conf.c prom.c test.c
     25 
     26 all: boot
     27 
     28 libsa/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
     33 BOBJS=	boot.o conf.o disk.o prom.o prom_disp.o prom_swpal.o vers.o
     34 boot: 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
     43 TOBJS=	prom.o prom_disp.o prom_swpal.o test.o
     44 test_boot: start.o ${TOBJS} ${LIBS}
     45 	${LD} -T ${RELOC2} -N -e start -o ${.TARGET} start.o ${TOBJS} ${LIBS}
     46 
     47 clean 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 
     52 install:
     53 	install -c -o root -g wheel -m 444 boot ${DESTDIR}/
     54 
     55 depend: ${SRCS}
     56 	mkdep -p ${INCPATH} ${DEFS} ${SRCS}
     57 	cd libsa && make depend
     58 
     59 newvers:
     60 	sh newvers.sh
     61 
     62 vers.c: newvers
     63