summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/loader/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/efi/loader/Makefile')
-rw-r--r--sys/boot/efi/loader/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/boot/efi/loader/Makefile b/sys/boot/efi/loader/Makefile
index 5881829..e2f9a84 100644
--- a/sys/boot/efi/loader/Makefile
+++ b/sys/boot/efi/loader/Makefile
@@ -12,18 +12,17 @@ STRIP= # We must not strip loader.efi at install time.
SRCS+= main.c conf.c dev_net.c
CFLAGS+= -ffreestanding
+
+.if !defined(NOFORTH)
# Enable BootForth
BOOT_FORTH= yes
-CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/${MACHINE_ARCH}
-.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