summaryrefslogtreecommitdiffstats
path: root/sys/boot/ia64/skiload/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/ia64/skiload/Makefile')
-rw-r--r--sys/boot/ia64/skiload/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/boot/ia64/skiload/Makefile b/sys/boot/ia64/skiload/Makefile
index bb4fc5c..8a374a1 100644
--- a/sys/boot/ia64/skiload/Makefile
+++ b/sys/boot/ia64/skiload/Makefile
@@ -9,20 +9,18 @@ BINDIR?= /boot
SRCS+= main.c conf.c
+CFLAGS+= -ffreestanding
+
+.if !defined(NOFORTH)
# Enable BootForth
BOOT_FORTH= yes
-CFLAGS+= -ffreestanding
-CFLAGS+= -g
-CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/ia64
-.if BOOT_FORTH
CFLAGS+= -DBOOT_FORTH
+CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/${MACHINE_ARCH}
.if exists(${.OBJDIR}/../../ficl/libficl.a)
LIBFICL= ${.OBJDIR}/../../ficl/libficl.a
.else
LIBFICL= ${.CURDIR}/../../ficl/libficl.a
.endif
-.else
-LIBFICL=
.endif
# where to get libstand from
OpenPOWER on IntegriCloud