sys.mk (176804) | sys.mk (176806) |
---|---|
1# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 | 1# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 |
2# $FreeBSD: head/share/mk/sys.mk 176804 2008-03-04 19:00:11Z obrien $ | 2# $FreeBSD: head/share/mk/sys.mk 176806 2008-03-04 20:26:03Z obrien $ |
3 4unix ?= We run FreeBSD, not UNIX. 5.FreeBSD ?= true 6 7# If the special target .POSIX appears (without prerequisites or 8# commands) before the first noncomment line in the makefile, make shall 9# process the makefile as specified by the Posix 1003.2 specification. 10# make(1) sets the special macro %POSIX in this case (to the actual --- 20 unchanged lines hidden (view full) --- 31AFLAGS ?= 32 33.if defined(%POSIX) 34CC ?= c89 35CFLAGS ?= -O 36.else 37CC ?= cc 38.if ${MACHINE_ARCH} == "arm" | 3 4unix ?= We run FreeBSD, not UNIX. 5.FreeBSD ?= true 6 7# If the special target .POSIX appears (without prerequisites or 8# commands) before the first noncomment line in the makefile, make shall 9# process the makefile as specified by the Posix 1003.2 specification. 10# make(1) sets the special macro %POSIX in this case (to the actual --- 20 unchanged lines hidden (view full) --- 31AFLAGS ?= 32 33.if defined(%POSIX) 34CC ?= c89 35CFLAGS ?= -O 36.else 37CC ?= cc 38.if ${MACHINE_ARCH} == "arm" |
39CFLAGS ?= -Os -pipe | 39CFLAGS ?= -O -fno-strict-aliasing -pipe |
40.else | 40.else |
41CFLAGS ?= -O2 -pipe | 41CFLAGS ?= -O2 -fno-strict-aliasing -pipe |
42.endif 43.if defined(NO_STRICT_ALIASING) 44CFLAGS += -fno-strict-aliasing 45.endif 46.endif 47 48CXX ?= c++ 49CXXFLAGS ?= ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign} --- 232 unchanged lines hidden --- | 42.endif 43.if defined(NO_STRICT_ALIASING) 44CFLAGS += -fno-strict-aliasing 45.endif 46.endif 47 48CXX ?= c++ 49CXXFLAGS ?= ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign} --- 232 unchanged lines hidden --- |