Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/sys.mk
# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 | # from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
unix ?= We run FreeBSD, not UNIX. | unix ?= We run FreeBSD, not UNIX. | ||||
.FreeBSD ?= true | .FreeBSD ?= true | ||||
.if !defined(%POSIX) | .if !defined(%POSIX) | ||||
# | # | ||||
# MACHINE_CPUARCH defines a collection of MACHINE_ARCH. Machines with | # MACHINE_CPUARCH defines a collection of MACHINE_ARCH. Machines with | ||||
# the same MACHINE_ARCH can run each other's binaries, so it necessarily | # the same MACHINE_ARCH can run each other's binaries, so it necessarily | ||||
# has word size and endian swizzled in. However, the source files for | # has word size and endian swizzled in. However, the source files for | ||||
# these machines often are shared amongst all combinations of size | # these machines often are shared amongst all combinations of size | ||||
# and/or endian. This is called MACHINE_CPU in NetBSD, but that's used | # and/or endian. This is called MACHINE_CPU in NetBSD, but that's used | ||||
# for something different in FreeBSD. | # for something different in FreeBSD. | ||||
# | # | ||||
__TO_CPUARCH=C/mips(n32|64)?(el)?(hf)?/mips/:C/arm(v[67])?(eb)?/arm/:C/powerpc(64|spe)/powerpc/:C/riscv64(sf)?/riscv/ | __TO_CPUARCH=C/mips(n32|64)?(el)?(hf)?/mips/:C/arm(v[67])?(eb)?/arm/:C/powerpc(64|64le|spe)/powerpc/:C/riscv64(sf)?/riscv/ | ||||
MACHINE_CPUARCH=${MACHINE_ARCH:${__TO_CPUARCH}} | MACHINE_CPUARCH=${MACHINE_ARCH:${__TO_CPUARCH}} | ||||
.endif | .endif | ||||
__DEFAULT_YES_OPTIONS+= \ | __DEFAULT_YES_OPTIONS+= \ | ||||
UNIFIED_OBJDIR | UNIFIED_OBJDIR | ||||
# src.sys.obj.mk enables AUTO_OBJ by default if possible but it is otherwise | # src.sys.obj.mk enables AUTO_OBJ by default if possible but it is otherwise | ||||
# disabled. Ensure src.conf.5 shows it as default on. | # disabled. Ensure src.conf.5 shows it as default on. | ||||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |