1998-11-11 18:49:02 +03:00
|
|
|
# $NetBSD: Makefile,v 1.20 1998/11/11 15:49:02 matt Exp $
|
1995-02-13 03:41:04 +03:00
|
|
|
#
|
|
|
|
|
1998-10-09 10:12:31 +04:00
|
|
|
|
1995-02-13 03:41:04 +03:00
|
|
|
|
|
|
|
CC= cc
|
|
|
|
AS= as
|
|
|
|
|
1997-03-15 16:04:22 +03:00
|
|
|
BINOWN= bin
|
|
|
|
BINGRP= bin
|
1998-10-09 10:12:31 +04:00
|
|
|
S= ${.CURDIR}/../../..
|
1998-02-28 15:10:13 +03:00
|
|
|
RELOC= 200000
|
|
|
|
XXRPB= 1F4240
|
1998-11-11 18:49:02 +03:00
|
|
|
NETOPTS= -DSUPPORT_DHCP -DSUPPORT_BOOTP
|
|
|
|
#NETOPTS= -DSUPPORT_BOOTPARAMS
|
1998-10-09 10:12:31 +04:00
|
|
|
|
|
|
|
INCPATH=-I${.CURDIR} -I$S -I${.CURDIR}/../.. -I$S/lib/libsa
|
|
|
|
CFLAGS+=-O ${INCPATH} -DSTANDALONE -DXXRPB=0x$(XXRPB) ${NETOPTS}
|
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
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -x assembler-with-cpp -E ${.IMPSRC} | as -o urem.o
|
1995-02-13 03:41:04 +03:00
|
|
|
|
|
|
|
udiv.o: ../vax/udiv.s
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -x assembler-with-cpp -E ${.IMPSRC} | as -o udiv.o
|
1995-02-13 03:41:04 +03:00
|
|
|
|
1996-08-02 15:21:41 +04:00
|
|
|
str.o: str.s
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -x assembler-with-cpp -E ${.IMPSRC} | as -o str.o
|
1996-08-02 15:21:41 +04:00
|
|
|
|
1995-02-13 03:41:04 +03:00
|
|
|
# startups
|
|
|
|
|
1995-09-16 17:18:27 +04:00
|
|
|
start.o: start.s
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -x assembler-with-cpp -E ${.IMPSRC} | as -o start.o
|
1995-09-16 17:18:27 +04:00
|
|
|
|
1995-02-13 03:41:04 +03:00
|
|
|
srt0.o: srt0.s
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -x assembler-with-cpp -E ${.IMPSRC} | 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
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1995-02-13 03:41:04 +03:00
|
|
|
|
1995-03-30 01:23:59 +04:00
|
|
|
ra.o: ra.c
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1995-03-30 01:23:59 +04:00
|
|
|
|
1995-02-13 03:41:04 +03:00
|
|
|
autoconf.o: autoconf.c
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1995-02-13 03:41:04 +03:00
|
|
|
|
|
|
|
conf.o: conf.c
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1995-02-13 03:41:04 +03:00
|
|
|
|
|
|
|
boot.o: boot.c
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1995-02-13 03:41:04 +03:00
|
|
|
|
1995-09-16 17:18:27 +04:00
|
|
|
copy.o: copy.c
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1995-03-30 01:23:59 +04:00
|
|
|
|
|
|
|
romread.o: romread.s
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -x assembler-with-cpp -E ${.IMPSRC} | as -o romread.o
|
1995-03-30 01:23:59 +04:00
|
|
|
|
|
|
|
init.o: init.c
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1995-03-30 01:23:59 +04:00
|
|
|
|
|
|
|
bootxx.o: bootxx.c
|
1998-10-09 10:12:31 +04:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1995-03-30 01:23:59 +04:00
|
|
|
|
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
|
|
|
|
1998-10-09 10:12:31 +04:00
|
|
|
.include <bsd.prog.mk>
|