summaryrefslogtreecommitdiffstats
path: root/sys/boot/alpha
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-06-16 06:28:07 +0000
committerpeter <peter@FreeBSD.org>2001-06-16 06:28:07 +0000
commit9d1e0e392656bbbe77a4873606955970699ada5c (patch)
treec6914d5ce166e17eb056244c2d01de05d0096621 /sys/boot/alpha
parentcad6c25631011722d5ee60f83d65acaf3bcd51fb (diff)
downloadFreeBSD-src-9d1e0e392656bbbe77a4873606955970699ada5c.zip
FreeBSD-src-9d1e0e392656bbbe77a4873606955970699ada5c.tar.gz
Work around what looks like a bad make(1) bug. For some reason,
make(1) wants to build loader.sym *before* the .o files. Eliminating one seeminly intermediate step avoids the problem. Somehow, it seems that variables are not getting expanded at the right time. Any explanations would be appreciated... Changing: ${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o ${LD} ... To: BASEOBJS= ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o ${BASE}.sym: ${BASEOBJS} echo ${BASEOBJS} ${LD} ... .. the echo only shows LIBFICL, CRT and vers.o. ${OBJS} is not included.
Diffstat (limited to 'sys/boot/alpha')
-rw-r--r--sys/boot/alpha/common/Makefile.common8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/boot/alpha/common/Makefile.common b/sys/boot/alpha/common/Makefile.common
index 32a6e0d..b3575fb 100644
--- a/sys/boot/alpha/common/Makefile.common
+++ b/sys/boot/alpha/common/Makefile.common
@@ -40,20 +40,18 @@ CRT= start.o
STRIP=
BINDIR?= /boot
-all: ${BASE}
+all: ${BASE} ${BASE}.help
vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
${CC} -c vers.c
-${BASE}: ${BASE}.sym ${BASE}.help
- objcopy -O binary ${BASE}.sym ${BASE}
-
-${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o
+${BASE}: ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o
${LD} -o ${BASE}.sym -M -e start -N -Ttext ${LOAD_ADDRESS} \
${CRT} ${OBJS} vers.o \
-L${DESTDIR}${LIBDIR} ${LIBSTAND} ${LIBALPHA} ${LIBFICL} ${LIBSTAND} \
>${.OBJDIR}/${BASE}.list
+ objcopy -O binary ${BASE}.sym ${BASE}
CLEANFILES+= ${BASE}.help
${BASE}.help: help.common help.alpha
OpenPOWER on IntegriCloud