bsd.sys.mk (ab72ce6b1bd2665447083bf0f268e6a2e77a845c) | bsd.sys.mk (7273339dc40e5e9e1f0c1fb3c72a29c8528f256d) |
---|---|
1# $FreeBSD$ 2# 3# This file contains common settings used for building FreeBSD 4# sources. 5 6# Enable various levels of compiler warning checks. These may be 7# overridden (e.g. if using a non-gcc compiler) by defining MK_WARNS=no. 8 --- 125 unchanged lines hidden (view full) --- 134.endif # SSP && !IA64 && !ARM && !MIPS 135 136# Allow user-specified additional warning flags, plus compiler specific flag overrides. 137# Unless we've overriden this... 138.if ${MK_WARNS} != "no" 139CFLAGS+= ${CWARNFLAGS} ${CWARNFLAGS.${COMPILER_TYPE}} 140.endif 141 | 1# $FreeBSD$ 2# 3# This file contains common settings used for building FreeBSD 4# sources. 5 6# Enable various levels of compiler warning checks. These may be 7# overridden (e.g. if using a non-gcc compiler) by defining MK_WARNS=no. 8 --- 125 unchanged lines hidden (view full) --- 134.endif # SSP && !IA64 && !ARM && !MIPS 135 136# Allow user-specified additional warning flags, plus compiler specific flag overrides. 137# Unless we've overriden this... 138.if ${MK_WARNS} != "no" 139CFLAGS+= ${CWARNFLAGS} ${CWARNFLAGS.${COMPILER_TYPE}} 140.endif 141 |
142# Not sure this is 100% kosher, but I think that EARLY_BUILD must be only 143# defined when we're not building programs that use the CFLAGS.foo feature. 144.if !defined(EARLY_BUILD) | |
145CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} 146CXXFLAGS+= ${CXXFLAGS.${COMPILER_TYPE}} | 142CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} 143CXXFLAGS+= ${CXXFLAGS.${COMPILER_TYPE}} |
147.endif | |
148 149# Tell bmake not to mistake standard targets for things to be searched for 150# or expect to ever be up-to-date. 151PHONY_NOTMAIN = afterdepend afterinstall all beforedepend beforeinstall \ 152 beforelinking build build-tools buildfiles buildincludes \ 153 checkdpadd clean cleandepend cleandir cleanobj configure \ 154 depend dependall distclean distribute exe extract \ 155 html includes install installfiles installincludes lint \ 156 obj objlink objs objwarn realall realdepend \ 157 realinstall regress subdir-all subdir-depend subdir-install \ 158 tags whereobj 159 160.if defined(PORTNAME) 161PHONY_NOTMAIN+= fetch patch 162.endif 163 164.PHONY: ${PHONY_NOTMAIN} 165.NOTMAIN: ${PHONY_NOTMAIN} | 144 145# Tell bmake not to mistake standard targets for things to be searched for 146# or expect to ever be up-to-date. 147PHONY_NOTMAIN = afterdepend afterinstall all beforedepend beforeinstall \ 148 beforelinking build build-tools buildfiles buildincludes \ 149 checkdpadd clean cleandepend cleandir cleanobj configure \ 150 depend dependall distclean distribute exe extract \ 151 html includes install installfiles installincludes lint \ 152 obj objlink objs objwarn realall realdepend \ 153 realinstall regress subdir-all subdir-depend subdir-install \ 154 tags whereobj 155 156.if defined(PORTNAME) 157PHONY_NOTMAIN+= fetch patch 158.endif 159 160.PHONY: ${PHONY_NOTMAIN} 161.NOTMAIN: ${PHONY_NOTMAIN} |