init.mk (49caa483b3fafffd9cf5197eb30e8bb235aa7410) | init.mk (ef0b253881c9546ff88d3ed8480df7c791b3ddff) |
---|---|
1# $Id: init.mk,v 1.16 2019/09/28 16:54:02 sjg Exp $ | 1# $Id: init.mk,v 1.17 2020/05/25 20:15:07 sjg Exp $ |
2# 3# @(#) Copyright (c) 2002, Simon J. Gerraty 4# 5# This file is provided in the hope that it will 6# be of use. There is absolutely NO WARRANTY. 7# Permission to copy, redistribute or otherwise 8# use this file is hereby granted provided that 9# the above copyright notice and this notice are --- 21 unchanged lines hidden (view full) --- 31 32# should have been set by sys.mk 33CXX_SUFFIXES?= .cc .cpp .cxx .C 34 35.if !empty(WARNINGS_SET) || !empty(WARNINGS_SET_${MACHINE_ARCH}) 36.include <warnings.mk> 37.endif 38 | 2# 3# @(#) Copyright (c) 2002, Simon J. Gerraty 4# 5# This file is provided in the hope that it will 6# be of use. There is absolutely NO WARRANTY. 7# Permission to copy, redistribute or otherwise 8# use this file is hereby granted provided that 9# the above copyright notice and this notice are --- 21 unchanged lines hidden (view full) --- 31 32# should have been set by sys.mk 33CXX_SUFFIXES?= .cc .cpp .cxx .C 34 35.if !empty(WARNINGS_SET) || !empty(WARNINGS_SET_${MACHINE_ARCH}) 36.include <warnings.mk> 37.endif 38 |
39.for x in COPTS CPPFLAGS CPUFLAGS LDFLAGS 40$x += ${$x.${COMPILER_TYPE}:U} ${$x.${.IMPSRC:T}:U} | 39# these are applied in order, least specific to most 40VAR_QUALIFIER_LIST += \ 41 ${TARGET_SPEC_VARS:UMACHINE:@v@${$v}@} \ 42 ${COMPILER_TYPE} \ 43 ${.TARGET:T:R} \ 44 ${.TARGET:T} \ 45 ${.IMPSRC:T} \ 46 ${VAR_QUALIFIER_XTRA_LIST} 47 48QUALIFIED_VAR_LIST += \ 49 CFLAGS \ 50 COPTS \ 51 CPPFLAGS \ 52 CPUFLAGS \ 53 LDFLAGS \ 54 55# a final :U avoids errors if someone uses := 56.for V in ${QUALIFIED_VAR_LIST:O:u:@q@$q $q_LAST@} 57.for Q in ${VAR_QUALIFIER_LIST:u} 58$V += ${$V.$Q:U} ${$V.$Q.${COMPILER_TYPE}:U} |
41.endfor | 59.endfor |
60.endfor |
|
42 43CC_PG?= -pg 44CXX_PG?= ${CC_PG} 45CC_PIC?= -DPIC 46CXX_PIC?= ${CC_PIC} 47PROFFLAGS?= -DGPROF -DPROF 48 49.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no" --- 21 unchanged lines hidden --- | 61 62CC_PG?= -pg 63CXX_PG?= ${CC_PG} 64CC_PIC?= -DPIC 65CXX_PIC?= ${CC_PIC} 66PROFFLAGS?= -DGPROF -DPROF 67 68.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no" --- 21 unchanged lines hidden --- |