freebsd-dev/sys/boot/defs.mk
Warner Losh 6b9f688352 Move all the ficl common code into ficl.mk
There's a number of copies of basically identical code to enable
building forth in /boot/loader. Move it all into ficl.mk.
2017-10-16 03:59:44 +00:00

23 lines
550 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
.if !defined(__BOOT_DEFS_MK__)
__BOOT_DEFS_MK__=${MFILE}
BOOTDIR= ${SRCTOP}/sys/boot
FICLDIR= ${SRCTOP}/sys/boot/ficl
LDR_MI= ${BOOTDIR}/common
SASRC= ${SRCTOP}/sys/boot/libsa
SYSDIR= ${SRCTOP}/sys
# NB: The makefiles depend on these being empty when we don't build forth.
.if ${MK_FORTH} != "no"
LIBFICL= ${OBJTOP}/sys/boot/ficl/libficl.a
LIBFICL32= ${OBJTOP}/sys/boot/ficl32/libficl.a
.endif
LIBSA= ${OBJTOP}/sys/boot/libsa/libsa.a
LIBSA32= ${OBJTOP}/sys/boot/libsa32/libsa32.a
.endif # __BOOT_DEFS_MK__