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