Deleted Added
full compact
sys.mk (241711) sys.mk (252048)
1# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94
1# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94
2# $FreeBSD: stable/9/share/mk/sys.mk 241711 2012-10-19 00:22:09Z jhb $
2# $FreeBSD: stable/9/share/mk/sys.mk 252048 2013-06-20 22:50:08Z sjg $
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.*e[lb]/mips/:C/armeb/arm/:C/powerpc64/powerpc/}
17.endif
18
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.*e[lb]/mips/:C/armeb/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.

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

315SHELL= ${__MAKE_SHELL}
316.SHELL: path=${__MAKE_SHELL}
317.endif
318
319# Default executable format
320# XXX hint for bsd.port.mk
321OBJFORMAT?= elf
322
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.

--- 288 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
327# Tell bmake to expand -V VAR by default
328.MAKE.EXPAND_VARIABLES= yes
329
330# Tell bmake the makefile preference
331.MAKE.MAKEFILE_PREFERENCE= BSDmakefile makefile Makefile
332
333.if !defined(.PARSEDIR)
334# We are not bmake, which is more aggressive about searching .PATH
335# It is sometime necessary to curb its enthusiasm with .NOPATH
336# The following allows us to quietly ignore .NOPATH when not using bmake.
337.NOTMAIN: .NOPATH
338.NOPATH:
339
323# Toggle on warnings
324.WARN: dirsyntax
340# Toggle on warnings
341.WARN: dirsyntax
342.endif
325
326.endif
327
328.include <bsd.compat.mk>
329.include <bsd.cpu.mk>
343
344.endif
345
346.include <bsd.compat.mk>
347.include <bsd.cpu.mk>