NetBSD/sys/arch/vax/boot/Makefile

130 lines
3.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.20 1998/11/11 15:49:02 matt Exp $
1995-02-13 03:41:04 +03:00
#
1995-02-13 03:41:04 +03:00
CC= cc
AS= as
BINOWN= bin
BINGRP= bin
S= ${.CURDIR}/../../..
RELOC= 200000
XXRPB= 1F4240
NETOPTS= -DSUPPORT_DHCP -DSUPPORT_BOOTP
#NETOPTS= -DSUPPORT_BOOTPARAMS
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
DEVS= autoconf.o hp.o ra.o tmscp.o ctu.o mfm.o rom.o romread.o \
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"
LIBS= -L. -Llib/sa -lsvax -lsa -lsvax
1995-02-13 03:41:04 +03:00
SVAX= consio.o urem.o udiv.o str.o
all: ${LIBSA} xxboot boot copy edlabel
1995-02-13 03:41:04 +03:00
includes:
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 ${.IMPSRC} | as -o urem.o
1995-02-13 03:41:04 +03:00
udiv.o: ../vax/udiv.s
${CC} -x assembler-with-cpp -E ${.IMPSRC} | as -o udiv.o
1995-02-13 03:41:04 +03:00
str.o: str.s
${CC} -x assembler-with-cpp -E ${.IMPSRC} | 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 ${.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
${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
xxboot: start.o bootxx.o romread.o libsvax.a ${SALIB}
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}
@date '+_vers: .globl _vers; .asciz ">> NetBSD/vax boot [%y%m%d %H:%M] <<"' | as -o vers.o
ld -N -Ttext ${RELOC} -e nisse -o $@ srt0.o devopen.o boot.o \
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
@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\
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
@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 \
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} ${.IMPSRC}
1995-02-13 03:41:04 +03:00
1995-03-30 01:23:59 +04:00
ra.o: ra.c
${CC} -c ${CFLAGS} ${.IMPSRC}
1995-03-30 01:23:59 +04:00
1995-02-13 03:41:04 +03:00
autoconf.o: autoconf.c
${CC} -c ${CFLAGS} ${.IMPSRC}
1995-02-13 03:41:04 +03:00
conf.o: conf.c
${CC} -c ${CFLAGS} ${.IMPSRC}
1995-02-13 03:41:04 +03:00
boot.o: boot.c
${CC} -c ${CFLAGS} ${.IMPSRC}
1995-02-13 03:41:04 +03:00
1995-09-16 17:18:27 +04:00
copy.o: copy.c
${CC} -c ${CFLAGS} ${.IMPSRC}
1995-03-30 01:23:59 +04:00
romread.o: romread.s
${CC} -x assembler-with-cpp -E ${.IMPSRC} | as -o romread.o
1995-03-30 01:23:59 +04:00
init.o: init.c
${CC} -c ${CFLAGS} ${.IMPSRC}
1995-03-30 01:23:59 +04:00
bootxx.o: bootxx.c
${CC} -c ${CFLAGS} ${.IMPSRC}
1995-03-30 01:23:59 +04: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
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
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
.include <bsd.prog.mk>