1998-07-01 14:52:10 +04:00
|
|
|
# $NetBSD: Makefile,v 1.18 1998/07/01 10:52:10 ragge Exp $
|
1995-02-13 03:41:04 +03:00
|
|
|
#
|
|
|
|
|
1997-03-15 16:04:22 +03:00
|
|
|
INCPATH=-I. -I../../../../.. -I../../../.. -I../../.. -I../.. -I../../../lib/libsa
|
1995-02-13 03:41:04 +03:00
|
|
|
|
|
|
|
CC= cc
|
|
|
|
AS= as
|
|
|
|
|
1997-03-15 16:04:22 +03:00
|
|
|
BINOWN= bin
|
|
|
|
BINGRP= bin
|
1995-09-16 17:18:27 +04:00
|
|
|
S= ../../..
|
1998-02-28 15:10:13 +03:00
|
|
|
RELOC= 200000
|
|
|
|
XXRPB= 1F4240
|
|
|
|
CFLAGS+=-O ${INCPATH} -DSTANDALONE -DXXRPB=0x$(XXRPB)
|
1995-02-13 03:41:04 +03:00
|
|
|
|
1996-08-02 15:21:41 +04:00
|
|
|
DEVS= autoconf.o hp.o ra.o tmscp.o ctu.o mfm.o rom.o romread.o \
|
1998-07-01 14:52:10 +04:00
|
|
|
scsi_low.o scsi_hi.o sd.o netio.o if_le.o if_qe.o if_ze.o
|
1995-04-25 18:14:19 +04:00
|
|
|
|
1995-09-16 17:18:27 +04:00
|
|
|
.include "$S/lib/libsa/Makefile.inc"
|
1997-03-15 16:04:22 +03:00
|
|
|
LIBS= -L. -Llib/sa -lsvax -lsa -lsvax
|
|
|
|
|
1995-02-13 03:41:04 +03:00
|
|
|
|
1996-08-02 15:21:41 +04:00
|
|
|
SVAX= consio.o urem.o udiv.o str.o
|
|
|
|
|
|
|
|
all: ${LIBSA} xxboot boot copy edlabel
|
1995-02-13 03:41:04 +03:00
|
|
|
|
1997-06-30 01:30:09 +04:00
|
|
|
includes:
|
|
|
|
|
1996-08-02 15:21:41 +04:00
|
|
|
libsvax.a: ${SVAX}
|
1995-02-13 03:41:04 +03:00
|
|
|
ar crv $@ $?
|
|
|
|
ranlib $@
|
|
|
|
|
|
|
|
urem.o: ../vax/urem.s
|
|
|
|
${CC} -x assembler-with-cpp -E ../vax/urem.s | as -o urem.o
|
|
|
|
|
|
|
|
udiv.o: ../vax/udiv.s
|
|
|
|
${CC} -x assembler-with-cpp -E ../vax/udiv.s | as -o udiv.o
|
|
|
|
|
1996-08-02 15:21:41 +04:00
|
|
|
str.o: str.s
|
|
|
|
${CC} -x assembler-with-cpp -E str.s | as -o str.o
|
|
|
|
|
1995-02-13 03:41:04 +03:00
|
|
|
# startups
|
|
|
|
|
1995-09-16 17:18:27 +04:00
|
|
|
start.o: start.s
|
|
|
|
${CC} -x assembler-with-cpp -E start.s | as -o start.o
|
|
|
|
|
1995-02-13 03:41:04 +03:00
|
|
|
srt0.o: srt0.s
|
1995-09-16 17:18:27 +04:00
|
|
|
${CC} -x assembler-with-cpp -E srt0.s | as -o srt0.o
|
1995-02-13 03:41:04 +03:00
|
|
|
|
1995-09-16 17:18:27 +04:00
|
|
|
#
|
1995-02-13 03:41:04 +03:00
|
|
|
|
1997-03-15 16:04:22 +03:00
|
|
|
xxboot: start.o bootxx.o romread.o libsvax.a ${SALIB}
|
1998-02-28 15:10:13 +03:00
|
|
|
ld -N -Ttext 100000 -o a.out start.o bootxx.o romread.o ${LIBS}
|
1995-09-16 17:18:27 +04:00
|
|
|
@strip a.out
|
|
|
|
@size a.out
|
|
|
|
@dd if=a.out of=xxboot bs=32 skip=1
|
|
|
|
@rm -f a.out
|
|
|
|
|
1997-10-20 15:54:26 +04:00
|
|
|
boot: boot.o srt0.o devopen.o conf.o ${DEVS} libsvax.a ${SALIB}
|
1997-06-30 01:30:09 +04:00
|
|
|
@date '+_vers: .globl _vers; .asciz ">> NetBSD/vax boot [%y%m%d %H:%M] <<"' | as -o vers.o
|
1996-03-02 17:22:57 +03:00
|
|
|
ld -N -Ttext ${RELOC} -e nisse -o $@ srt0.o devopen.o boot.o \
|
1997-06-08 21:49:15 +04:00
|
|
|
conf.o ${DEVS} ${LIBS} vers.o
|
1995-02-13 03:41:04 +03:00
|
|
|
@strip boot
|
|
|
|
@size boot
|
|
|
|
|
1997-10-20 15:54:26 +04:00
|
|
|
edlabel: edlabel.o srt0.o devopen.o conf.o ${DEVS} libsvax.a
|
1997-06-30 01:30:09 +04:00
|
|
|
@date '+_vers: .globl _vers; .asciz ">> NetBSD/vax boot [%y%m%d %H:%M] <<"' | as -o vers.o
|
1995-09-16 17:18:27 +04:00
|
|
|
ld -N -Ttext ${RELOC} -e nisse -o $@ srt0.o devopen.o edlabel.o\
|
1997-06-08 21:49:15 +04:00
|
|
|
conf.o ${DEVS} ${LIBS} vers.o
|
1995-09-16 17:18:27 +04:00
|
|
|
@strip edlabel
|
|
|
|
@size edlabel
|
|
|
|
|
1997-10-20 15:54:26 +04:00
|
|
|
copy: copy.o srt0.o devopen.o conf.o ${DEVS} libsvax.a
|
1997-06-30 01:30:09 +04:00
|
|
|
@date '+_vers: .globl _vers; .asciz ">> NetBSD/vax boot [%y%m%d %H:%M] <<"' | as -o vers.o
|
1995-09-16 17:18:27 +04:00
|
|
|
ld -N -Ttext ${RELOC} -e nisse -o $@ srt0.o devopen.o copy.o \
|
1997-06-08 21:49:15 +04:00
|
|
|
conf.o ${DEVS} ${LIBS} vers.o
|
1995-09-16 17:18:27 +04:00
|
|
|
@strip copy
|
|
|
|
@size copy
|
|
|
|
|
|
|
|
#
|
|
|
|
|
1995-02-13 03:41:04 +03:00
|
|
|
hp.o: hp.c
|
|
|
|
${CC} -c ${CFLAGS} $*.c
|
|
|
|
|
1995-03-30 01:23:59 +04:00
|
|
|
ra.o: ra.c
|
|
|
|
${CC} -c ${CFLAGS} $*.c
|
|
|
|
|
1995-02-13 03:41:04 +03:00
|
|
|
autoconf.o: autoconf.c
|
|
|
|
${CC} -c ${CFLAGS} $*.c
|
|
|
|
|
|
|
|
conf.o: conf.c
|
|
|
|
${CC} -c ${CFLAGS} $*.c
|
|
|
|
|
|
|
|
boot.o: boot.c
|
|
|
|
${CC} -c ${CFLAGS} $*.c
|
|
|
|
|
1995-09-16 17:18:27 +04:00
|
|
|
copy.o: copy.c
|
|
|
|
${CC} -c ${CFLAGS} $*.c
|
1995-03-30 01:23:59 +04:00
|
|
|
|
|
|
|
romread.o: romread.s
|
|
|
|
${CC} -x assembler-with-cpp -E romread.s | as -o romread.o
|
|
|
|
|
|
|
|
init.o: init.c
|
|
|
|
${CC} -c ${CFLAGS} $*.c
|
|
|
|
|
|
|
|
bootxx.o: bootxx.c
|
|
|
|
${CC} -c ${CFLAGS} $*.c
|
|
|
|
|
1995-12-28 18:27:21 +03:00
|
|
|
#
|
1996-03-16 14:03:11 +03:00
|
|
|
install: boot xxboot
|
1996-10-18 09:55:26 +04:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 boot ${DESTDIR}/
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 xxboot \
|
|
|
|
${DESTDIR}/usr/mdec
|
1996-03-16 14:03:11 +03:00
|
|
|
rm -f ${DESTDIR}/usr/mdec/raboot
|
|
|
|
ln ${DESTDIR}/usr/mdec/xxboot ${DESTDIR}/usr/mdec/raboot
|
|
|
|
rm -f ${DESTDIR}/usr/mdec/hpboot
|
|
|
|
ln ${DESTDIR}/usr/mdec/xxboot ${DESTDIR}/usr/mdec/hpboot
|
|
|
|
|
1997-03-15 16:04:22 +03:00
|
|
|
clean:
|
1995-09-16 17:18:27 +04:00
|
|
|
rm -f start.o romread.o bootxx.o init.o xxboot boot racopy \
|
|
|
|
libsvax.a udiv.o urem.o consio.o ${DEVS} edlabel edlabel.o
|
|
|
|
rm -f conf.o boot.o rom.o racopy.o srt0.o devopen.o rootcopy.o \
|
1997-10-20 15:54:26 +04:00
|
|
|
copy copy.o init.o str.o vers.o
|
1995-09-16 17:18:27 +04:00
|
|
|
|