sys.mk (24bf3585ae49955b5d065afd9ae3b8aabe1f04a1) sys.mk (0815243c3937b61db8b5a10cc652900d4df4acb0)
1# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94
2# $FreeBSD$
3
4unix ?= We run FreeBSD, not UNIX.
5.FreeBSD ?= true
6
7.if !defined(%POSIX)
8#
9# MACHINE_CPUARCH defines a collection of MACHINE_ARCH. Machines with
10# the same MACHINE_ARCH can run each other's binaries, so it necessarily
11# has word size and endian swizzled in. However, support files for
12# these machines often are shared amongst all combinations of size
13# and/or endian. This is called MACHINE_CPU in NetBSD, but that's used
14# for something different in FreeBSD.
15#
16MACHINE_CPUARCH=${MACHINE_ARCH:C/mips(n32|64)?(el)?/mips/:C/arm(v6)?(eb)?/arm/:C/powerpc64/powerpc/}
17.endif
18
1# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94
2# $FreeBSD$
3
4unix ?= We run FreeBSD, not UNIX.
5.FreeBSD ?= true
6
7.if !defined(%POSIX)
8#
9# MACHINE_CPUARCH defines a collection of MACHINE_ARCH. Machines with
10# the same MACHINE_ARCH can run each other's binaries, so it necessarily
11# has word size and endian swizzled in. However, support files for
12# these machines often are shared amongst all combinations of size
13# and/or endian. This is called MACHINE_CPU in NetBSD, but that's used
14# for something different in FreeBSD.
15#
16MACHINE_CPUARCH=${MACHINE_ARCH:C/mips(n32|64)?(el)?/mips/:C/arm(v6)?(eb)?/arm/:C/powerpc64/powerpc/}
17.endif
18
19# Set any local definitions first. Place this early, but it needs
20# MACHINE_CPUARCH to be defined.
21.sinclude <local.sys.mk>
22
19# If the special target .POSIX appears (without prerequisites or
20# commands) before the first noncomment line in the makefile, make shall
21# process the makefile as specified by the Posix 1003.2 specification.
22# make(1) sets the special macro %POSIX in this case (to the actual
23# value "1003.2", for what it's worth).
24#
25# The rules below use this macro to distinguish between Posix-compliant
26# and default behaviour.

--- 292 unchanged lines hidden (view full) ---

319SHELL= ${__MAKE_SHELL}
320.SHELL: path=${__MAKE_SHELL}
321.endif
322
323# Default executable format
324# XXX hint for bsd.port.mk
325OBJFORMAT?= elf
326
23# If the special target .POSIX appears (without prerequisites or
24# commands) before the first noncomment line in the makefile, make shall
25# process the makefile as specified by the Posix 1003.2 specification.
26# make(1) sets the special macro %POSIX in this case (to the actual
27# value "1003.2", for what it's worth).
28#
29# The rules below use this macro to distinguish between Posix-compliant
30# and default behaviour.

--- 292 unchanged lines hidden (view full) ---

323SHELL= ${__MAKE_SHELL}
324.SHELL: path=${__MAKE_SHELL}
325.endif
326
327# Default executable format
328# XXX hint for bsd.port.mk
329OBJFORMAT?= elf
330
331# Tell bmake to expand -V VAR by default
332.MAKE.EXPAND_VARIABLES= yes
333
334.if !defined(.PARSEDIR)
335# We are not bmake, which is more aggressive about searching .PATH
336# It is sometime necessary to curb its enthusiasm with .NOPATH
337# The following allows us to quietly ignore .NOPATH when not using bmake.
338.NOTMAIN: .NOPATH
339.NOPATH:
340
327# Toggle on warnings
328.WARN: dirsyntax
341# Toggle on warnings
342.WARN: dirsyntax
343.endif
329
330.endif
331
332.include <bsd.compat.mk>
333.include <bsd.cpu.mk>
344
345.endif
346
347.include <bsd.compat.mk>
348.include <bsd.cpu.mk>