summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/liloldr
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-09-05 22:33:07 +0000
committermsmith <msmith@FreeBSD.org>2000-09-05 22:33:07 +0000
commit1a7d7857eeb2d01369cca8d694a5f70d80ed5def (patch)
tree076910a8588f7ea5e3455d0e35609a35401c30f6 /sys/boot/i386/liloldr
parent9bf5401188bcf0e6e8572d38f8aa3cc3c341d07c (diff)
downloadFreeBSD-src-1a7d7857eeb2d01369cca8d694a5f70d80ed5def.zip
FreeBSD-src-1a7d7857eeb2d01369cca8d694a5f70d80ed5def.tar.gz
Fix a bug which prevents parsing this Makefile without having a
previously-built loader binary elsewhere.
Diffstat (limited to 'sys/boot/i386/liloldr')
-rw-r--r--sys/boot/i386/liloldr/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/i386/liloldr/Makefile b/sys/boot/i386/liloldr/Makefile
index d2975f1..3986eca 100644
--- a/sys/boot/i386/liloldr/Makefile
+++ b/sys/boot/i386/liloldr/Makefile
@@ -16,8 +16,10 @@ LOADER= ${.OBJDIR}/../loader/loader
LOADER= ${.CURDIR}/../loader/loader
.endif
+.if exists(${LOADER})
LOADER_SIZE != wc -c ${LOADER} | awk '{print int(($$1 + 15) / 16)}'
AFLAGS= --defsym LOADER_SIZE=${LOADER_SIZE}
+.endif
${BOOT}: ${BSECT} ${LDR} ${LOADER}
cat ${BSECT} ${LDR} ${LOADER} > ${.TARGET}.tmp
OpenPOWER on IntegriCloud