Rely on ../Makefile.inc to set the object format in CFLAGS and the

default for BINDIR.  The default BINDIR of /usr/mdec can't be overridden
yet because libdisk still uses /usr/mdec and installing in /boot might
clobber the new boot blocks.

Don't install links to bootxx or xxboot.

Install boot1 and boot2 in 1 step.

Don't delete the boot.help source file on installing it when ${COPY} is
null.
This commit is contained in:
Bruce Evans 1998-12-30 10:21:37 +00:00
parent 75d1228cbb
commit d389c929de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42171

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.66 1998/09/23 06:50:45 yokota Exp $
# $Id: Makefile,v 1.67 1998/11/21 21:07:17 ache Exp $
#
PROG= boot
@ -6,9 +6,8 @@ PROG= boot
SRCS= start.S table.c boot2.S boot.c asm.S bios.S serial.S
SRCS+= probe_keyboard.c io.c disk.c sys.c
BINDIR= /usr/mdec
BINMODE= 444
CFLAGS= -aout -O2 -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
CFLAGS= -O2 -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
-mno-486 \
-DBOOTWAIT=${BOOTWAIT} -DTIMEOUT=${TIMEOUT}
CFLAGS+= -DBOOTSEG=${BOOTSEG} -DBOOTSTACK=${BOOTSTACK}
@ -82,19 +81,11 @@ boot2: boot.nohdr
all: boot1 boot2
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
boot1 ${DESTDIR}${BINDIR}/boot1
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
boot2 ${DESTDIR}${BINDIR}/boot2
for i in da fd wd od vn wfd ; do \
( cd ${DESTDIR}${BINDIR} ; \
rm -f boot$${i} $${i}boot ; \
ln -s boot1 $${i}boot ; \
ln -s boot2 boot$${i} ; ) \
done
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
boot1 boot2 ${DESTDIR}${BINDIR}/
install-boothelp:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${.CURDIR}/boot.help ${DESTDIR}/
.include <bsd.kern.mk>