2 # For universe we want to potentially
3 # build for multiple MACHINE_ARCH per MACHINE
4 # so we need more than MACHINE in TARGET_SPEC
5 TARGET_SPEC_VARS?= MACHINE MACHINE_ARCH
7 # this is sufficient for most of the tree.
8 .MAKE.DEPENDFILE_DEFAULT = ${.MAKE.DEPENDFILE_PREFIX}
10 # but if we have a machine qualified file it should be used in preference
11 .MAKE.DEPENDFILE_PREFERENCE = \
12 ${.MAKE.DEPENDFILE_PREFIX}.${MACHINE} \
13 ${.MAKE.DEPENDFILE_PREFIX}
16 BOOT_MACHINE_DIR.amd64 = boot/i386
18 .-include <site.sys.dirdeps.env.mk>
20 ALL_MACHINE_LIST?= ${TARGET_MACHINE_LIST}
22 .for m in ${ALL_MACHINE_LIST:O:u}
23 BOOT_MACHINE_DIR.$m ?= boot/$m
26 HOST_OBJTOP ?= ${OBJROOT}${HOST_TARGET}
28 .if ${REQUESTED_MACHINE:U${MACHINE}} == "host"
30 .if ${TARGET_MACHINE:Uno} == ${HOST_TARGET}
35 .if ${MACHINE} == "host"
36 OBJTOP := ${HOST_OBJTOP}
37 MACHINE_ARCH= ${MACHINE_ARCH_${MACHINE}}
41 .if ${.MAKE.LEVEL} == 0 || empty(PYTHON)
42 PYTHON ?= /usr/local/bin/python
45 # _SKIP_BUILD is not 100% as it requires wrapping all 'all:' targets to avoid
46 # building in MAKELEVEL0. Just prohibit 'all' entirely in this case to avoid
49 .error DIRDEPS_BUILD: Please run '${MAKE}' instead of '${MAKE} all'.
53 .if ${.MAKE.OS} != "FreeBSD" || ${_HOST_OSREL:R} < ${OS_REVISION:R}
54 # a pseudo option to indicate we need libegacy for host