Changeset 8294 for trunk/make
- Timestamp:
- Apr 22, 2002, 3:59:34 AM (24 years ago)
- Location:
- trunk/make
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/make/setup.mak
r8291 r8294 1 # $Id: setup.mak,v 1. 4 2002-04-22 00:28:46bird Exp $1 # $Id: setup.mak,v 1.5 2002-04-22 01:59:33 bird Exp $ 2 2 3 3 # … … 61 61 SHT_BLDENV=mscv6 62 62 !endif 63 !if "$(BUILD_ENV)" == "WAT11" 64 SHT_BLDENV=wat11 65 !endif 66 !if "$(BUILD_ENV)" == "WATCOM" 63 !if "$(BUILD_ENV)" == "WAT11C" 67 64 SHT_BLDENV=wat11 68 65 !endif … … 71 68 !endif 72 69 70 71 !ifdef BUILD_ENV_FORCE 72 SHT_BLDENVFRC= 73 !if "$(BUILD_ENV_FORCE)" == "VAC308" 74 SHT_BLDENVFRC=vac308 75 !endif 76 !if "$(BUILD_ENV_FORCE)" == "VAC365" 77 SHT_BLDENVFRC=vac365 78 !endif 79 !if "$(BUILD_ENV_FORCE)" == "VAC4" 80 SHT_BLDENVFRC=vac4 81 !endif 82 !if "$(BUILD_ENV_FORCE)" == "EMX" 83 SHT_BLDENVFRC=emx 84 !endif 85 !if "$(BUILD_ENV_FORCE)" == "MSCV6" 86 SHT_BLDENVFRC=mscv6 87 !endif 88 !if "$(BUILD_ENV_FORCE)" == "WAT11C" 89 SHT_BLDENVFRC=wat11 90 !endif 91 !if "$(SHT_BLDENVFRC)" == "" 92 ! error Fatal error: Var BUILD_ENV_FORCE is incorrect. ($(BUILD_ENV_FORCE)) Valid values: VAC308, VAC365, VAC4, EMX, MSCV6 and WATCOM 93 !endif 94 !else 95 BUILD_ENV_FORCE=$(BUILD_ENV) 96 SHT_BLDENVFRC=$(SHT_BLDENV) 97 !endif 73 98 74 99 … … 131 156 132 157 # ----------------------------------------------------------------------------- 133 # Build the environments134 # -----------------------------------------------------------------------------135 136 # EXPERIMENTAL137 !if 0138 # These strings are passed on to the BuildEnv.cmd script to setup139 # the correct environment.140 BUILD_ENVS_BASE_POST = toolkit40141 BUILD_ENVS_BASE_PRE =142 143 # Check for forced change in default compiler environment.144 !ifdef BUILD_ENV_FORCE145 !if "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)" || "$(BUILD_ENVS_PRE)" != "" || "$(BUILD_ENVS_POST)" != ""146 #147 # Remove old compiler and insert new compiler into the environment.148 # The individual makefiles requests changes using BUILD_ENVS_[PRE|POST].149 #150 !if [echo call $(PATH_TOOLS)\BuildEnv.cmd $(BUILD_ENV)- $(BUILD_ENVS_BASE_PRE) $(BUILD_ENVS_PRE) $(BUILD_ENV_FORCE) $(BUILD_ENVS_BASE_POST) $(BUILD_ENVS_POST)]151 !endif152 !if [call $(PATH_TOOLS)\BuildEnv.cmd $(BUILD_ENV)- $(BUILD_ENVS_BASE_PRE) $(BUILD_ENVS_PRE) $(BUILD_ENV_FORCE) $(BUILD_ENVS_BASE_POST) $(BUILD_ENVS_POST)]153 !endif154 #BUILD_ENV = $(BUILD_ENV_FORCE)155 !endif156 !endif157 158 !endif159 160 161 162 # -----------------------------------------------------------------------------163 158 # Include the setup. 164 159 # First the default common tools setup is included. … … 225 220 226 221 227 !endif MAKE_SETUP_INCLUDED 228 222 223 # ----------------------------------------------------------------------------- 224 # Build the environments 225 # ----------------------------------------------------------------------------- 226 227 # In the makefiles you're allowed to use the BUILD_ENVS_PRE, 228 # BUILD_ENV_FORCE, BUILD_ENVS_POST variables to make private changes to the 229 # environment. These are combined with the two base ones as follows: 230 # $(BUILD_ENVS_BASE_PRE) $(BUILD_ENVS_PRE) $(ENV_ENVS) $(BUILD_ENVS_BASE_POST) $(BUILD_ENVS_POST) 231 # 232 # BUILD_ENV_FORCE is used for changing the base compiler. Do *NOT* use 233 # BUILD_ENV for that! BUILD_ENV_FORCE isn't used directly but in the setup 234 # string above, but ENV_ENVS from the setup.[w]xyz.mk setup file is used. 235 # 236 237 # These strings are passed on to the BuildEnv.cmd script to setup the correct 238 # shell environment. 239 # TODO Should these be overridable by setup.[w]xyz.mak ? (kso) 240 241 BUILD_ENVS_BASE_POST = toolkit40 242 BUILD_ENVS_BASE_PRE = 243 244 245 # Check if there is any change in the environment. 246 # If there are we will have to forward all target commands to the 247 # correct shell environment 248 !if "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)" || "$(BUILD_ENVS_PRE)" != "" || "$(BUILD_ENVS_POST)" != "" 249 MAKE_INCLUDE_PROCESS = $(PATH_MAKE)\process.forwarder.mak 250 251 252 # Compiler change or just environment change. 253 ! if "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)" 254 MAKE_INCLUDE_SETUP_FORCE = $(PATH_MAKE)\setup.$(SHT_TRGPLTFRM)$(SHT_BLDMD)$(SHT_BLDENVFRC).mk 255 ! ifndef BUILD_QUIET 256 ! if [$(ECHO) Including forced platform setup file $(CLRFIL)$(MAKE_INCLUDE_SETUP_FORCE)$(CLRRST)] 257 ! endif 258 ! endif 259 ! include $(MAKE_INCLUDE_SETUP_FORCE) 260 BUILD_ENVS_CHANGE = $(ENV_ENVS: =- )- $(BUILD_ENVS_BASE_PRE) $(BUILD_ENVS_PRE) $(ENV_ENVS_FORCE) $(BUILD_ENVS_BASE_POST) $(BUILD_ENVS_POST) 261 ! else 262 BUILD_ENVS_CHANGE = $(BUILD_ENVS_BASE_PRE) $(BUILD_ENVS_PRE) $(ENV_ENVS) $(BUILD_ENVS_BASE_POST) $(BUILD_ENVS_POST) 263 ! endif 264 265 !endif 266 267 268 !endif # MAKE_SETUP_INCLUDED 269 -
trunk/make/setup.os2debvac308.mk
r8292 r8294 1 # $Id: setup.os2debvac308.mk,v 1. 4 2002-04-22 00:30:09bird Exp $1 # $Id: setup.os2debvac308.mk,v 1.5 2002-04-22 01:59:34 bird Exp $ 2 2 3 3 # ---OS2, DEBUG, VAC308------------------------- 4 4 ENV_NAME="OS/2, Debug, IBM VisualAge for C++ 3.08" 5 5 ENV_STATUS=OK 6 !if "$(ENV_ENVS)" == "" 7 ENV_ENVS=vac308 8 !else 9 ENV_ENVS_FORCE=vac308 10 !endif 11 6 12 7 13 # -
trunk/make/setup.os2debwat11.mk
r8292 r8294 1 # $Id: setup.os2debwat11.mk,v 1. 2 2002-04-22 00:30:10bird Exp $1 # $Id: setup.os2debwat11.mk,v 1.3 2002-04-22 01:59:34 bird Exp $ 2 2 3 3 # ---OS2, DEBUG, VAC308------------------------- 4 ENV_NAME="OS/2, Debug, Watcom 11.0 , 11.0c, ++"4 ENV_NAME="OS/2, Debug, Watcom 11.0c" 5 5 ENV_STATUS=OK 6 !if "$(ENV_ENVS)" == "" 7 ENV_ENVS=vac308 watcomc11c 8 !else 9 ENV_ENVS_FORCE=vac308 watcomc11c 10 !endif 6 11 7 12 # -
trunk/make/setup.tools.mk
r8293 r8294 1 # $Id: setup.tools.mk,v 1. 5 2002-04-22 00:30:54 bird Exp $1 # $Id: setup.tools.mk,v 1.6 2002-04-22 01:59:34 bird Exp $ 2 2 3 3 … … 45 45 TOOL_RM = rm.exe -f 46 46 TOOL_TYPE = type 47 TOOL_BUILDENV = $(PATH_TOOLS)\BuildEnv.cmd 47 48 48 49
Note:
See TracChangeset
for help on using the changeset viewer.