Changeset 9150 for trunk/make
- Timestamp:
- Aug 28, 2002, 5:47:09 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/make/setup.mak
r9131 r9150 1 # $Id: setup.mak,v 1.1 4 2002-08-25 04:23:39 bird Exp $1 # $Id: setup.mak,v 1.15 2002-08-28 03:47:09 bird Exp $ 2 2 3 3 # … … 10 10 11 11 12 !ifndef MAKE_SETUP_INCLUDED 13 MAKE_SETUP_INCLUDED=YES 12 # ----------------------------------------------------------------------------- 13 # Assert that the file isn't included several times. 14 # ----------------------------------------------------------------------------- 15 !ifdef MAKE_SETUP_INCLUDED 16 ! error Fatal error: You've included setup.mak before!!! 17 !endif 18 MAKE_SETUP_INCLUDED = YES 14 19 15 20 … … 202 207 203 208 209 # ----------------------------------------------------------------------------- 210 # Set forwarding flag. 211 # If there is any change in the environment 212 # OR the environment is uncertain (_BUILD_PROJECT not right) Then 213 # Forward all target commands to the new shell environment we setup. 214 # 215 # (This have to be done early so the CC setup and it's like can check for 216 # the flag. The rest of the forward stuff is at the bottom.) 217 # ----------------------------------------------------------------------------- 218 !if "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)" || "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)" || "$(BUILD_ENVS_PRE)" != "" || "$(BUILD_ENVS_POST)" != "" 219 BUILD_FORWARDING = 1 220 !else 221 BUILD_FORWARDING = 0 222 !endif 223 204 224 205 225 # ----------------------------------------------------------------------------- … … 225 245 # ----------------------------------------------------------------------------- 226 246 # Verify the environment setups. 227 # ----------------------------------------------------------------------------- 228 229 !ifndef ENV_NAME 230 !error No environment signature has been defined ($(NAME_COMPLETE)) 231 !endif 232 233 !ifndef MAKE_INCLUDE_SETUP 234 !error No setup to include has been determined (MAKE_INCLUDE_SETUP) 235 !endif 236 237 !if "$(ENV_STATUS)" != "OK" 238 !error Environment $(ENV_NAME) does work yet (ENV_STATUS is not OK). 239 !endif 240 241 !ifndef CC 242 !error Environment $(ENV_NAME) does not define variable (CC). 243 !endif 244 245 !ifndef CC_FLAGS_EXE 246 !error Environment $(ENV_NAME) does not define variable (CC_FLAGS_EXE). 247 !endif 248 249 !ifndef LINK 250 !error Environment $(ENV_NAME) does not define variable (LINK). 251 !endif 252 253 !ifndef LINK_FLAGS_EXE 254 !error Environment $(ENV_NAME) does not define variable (LINK_FLAGS_EXE). 255 !endif 256 247 # Uncomment this when configuring a new project. 248 # When the setup is stable comment it out. (it's a waste of time!) 249 # ----------------------------------------------------------------------------- 250 251 # 252 #!ifndef ENV_NAME 253 #!error No environment signature has been defined ($(NAME_COMPLETE)) 254 #!endif 255 # 256 #!ifndef MAKE_INCLUDE_SETUP 257 #!error No setup to include has been determined (MAKE_INCLUDE_SETUP) 258 #!endif 259 # 260 #!if "$(ENV_STATUS)" != "OK" 261 #!error Environment $(ENV_NAME) does work yet (ENV_STATUS is not OK). 262 #!endif 263 # 264 #!ifndef CC 265 #!error Environment $(ENV_NAME) does not define variable (CC). 266 #!endif 267 # 268 #!ifndef CC_FLAGS_EXE 269 #!error Environment $(ENV_NAME) does not define variable (CC_FLAGS_EXE). 270 #!endif 271 # 272 #!ifndef LINK 273 #!error Environment $(ENV_NAME) does not define variable (LINK). 274 #!endif 275 # 276 #!ifndef LINK_FLAGS_EXE 277 #!error Environment $(ENV_NAME) does not define variable (LINK_FLAGS_EXE). 278 #!endif 279 # 257 280 258 281 # ----------------------------------------------------------------------------- … … 279 302 BUILD_ENVS_BASE_PRE_16 = buildsetup emx cvs toolkit40 ddkbase 280 303 281 282 # Check if there is any change in the environment OR if the environment is 283 # uncertain (_BUILD_PROJECT not right). 284 # If there are Then we will have to forward all target commands to the 285 # correct shell environment 286 !if "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)" || "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)" || "$(BUILD_ENVS_PRE)" != "" || "$(BUILD_ENVS_POST)" != "" 304 # 305 # Forwarding processing. 306 # 307 !if $(BUILD_FORWARDING) 308 287 309 MAKE_INCLUDE_PROCESS = $(PATH_MAKE)\process.forwarder.mak 288 310 … … 307 329 #! endif 308 330 309 # flag that we're forwarding.310 BUILD_FORWARDING = 1311 331 312 332 # set the secret _build_project env.var. … … 345 365 ! endif 346 366 347 !else 348 # Flag that we're not forwarding 349 BUILD_FORWARDING = 0 350 !endif 351 352 353 !endif # MAKE_SETUP_INCLUDED 367 !endif # BUILD_FORWARDING 368
Note:
See TracChangeset
for help on using the changeset viewer.