aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/i386/libi386/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/i386/libi386/Makefile')
-rw-r--r--sys/boot/i386/libi386/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/boot/i386/libi386/Makefile b/sys/boot/i386/libi386/Makefile
index b29808f37c35..8c89afd7a1e4 100644
--- a/sys/boot/i386/libi386/Makefile
+++ b/sys/boot/i386/libi386/Makefile
@@ -1,6 +1,6 @@
# $FreeBSD$
-#
-.include "../../defs.mk"
+
+.include <bsd.init.mk>
LIB= i386
INTERNALLIB=
@@ -11,7 +11,7 @@ SRCS= biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
elf64_freebsd.c multiboot.c multiboot_tramp.S relocater_tramp.S \
i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
smbios.c time.c vidconsole.c amd64_tramp.S spinconsole.c
-.PATH: ${.CURDIR}/../../zfs
+.PATH: ${BOOTSRC}/zfs
SRCS+= devicename_stubs.c
BOOT_COMCONSOLE_PORT?= 0x3f8
@@ -49,11 +49,11 @@ CFLAGS+= -DTERM_EMU
# XXX: make alloca() useable
CFLAGS+= -Dalloca=__builtin_alloca
-CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/i386 \
- -I${.CURDIR}/../../common -I${.CURDIR}/../common \
- -I${.CURDIR}/../btx/lib \
- -I${.CURDIR}/../../../contrib/dev/acpica/include \
- -I${.CURDIR}/../../.. -I.
+CFLAGS+= -I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \
+ -I${LDRSRC} -I${BOOTSRC}/i386/common \
+ -I${BTXLIB} \
+ -I${SYSDIR}/contrib/dev/acpica/include \
+ -I${SYSDIR} -I.
# Handle FreeBSD specific %b and %D printf format specifiers
CFLAGS+= ${FORMAT_EXTENSIONS}
@@ -61,7 +61,7 @@ CFLAGS+= ${FORMAT_EXTENSIONS}
.if ${MACHINE_CPUARCH} == "amd64"
CLEANFILES+= machine
machine: .NOMETA
- ln -sf ${.CURDIR}/../../../i386/include machine
+ ln -sf ${SYSDIR}/i386/include machine
.endif
.include <bsd.lib.mk>