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