| [9725] | 1 | # $Id: setup.mak,v 1.24 2003-01-23 14:29:35 sandervl Exp $ | 
|---|
| [8197] | 2 | # | 
|---|
| [9280] | 3 | #   The common build setup. | 
|---|
| [8197] | 4 | # | 
|---|
| [9280] | 5 | # Copyright (c) 2001-2002 knut st. osmundsen <bird@anduin.net> | 
|---|
|  | 6 | # Copyright (c) 2001 Patrick Haller | 
|---|
| [8197] | 7 | # | 
|---|
| [9280] | 8 | # This file is part of Generic Buildsystem. | 
|---|
| [8197] | 9 | # | 
|---|
|  | 10 |  | 
|---|
|  | 11 |  | 
|---|
| [9150] | 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 | 
|---|
| [8197] | 19 |  | 
|---|
|  | 20 |  | 
|---|
| [8253] | 21 | # ----------------------------------------------------------------------------- | 
|---|
|  | 22 | # Validate the build the requested environment setup. | 
|---|
|  | 23 | # ----------------------------------------------------------------------------- | 
|---|
| [8197] | 24 |  | 
|---|
| [8253] | 25 | SHT_TRGPLTFRM= | 
|---|
| [8197] | 26 | !if "$(BUILD_PLATFORM)" == "OS2" | 
|---|
| [8253] | 27 | SHT_TRGPLTFRM=os2 | 
|---|
| [8197] | 28 | !endif | 
|---|
|  | 29 | !if "$(BUILD_PLATFORM)" == "WIN32" | 
|---|
| [8253] | 30 | SHT_TRGPLTFRM=win32 | 
|---|
| [8197] | 31 | !endif | 
|---|
| [8253] | 32 | !if "$(SHT_TRGPLTFRM)" == "" | 
|---|
|  | 33 | ! error Fatal error: Env.var BUILD_PLATFORM is either unspecified or incorrect. ($(BUILD_PLATFORM)) Valid values: OS2 and WIN32 | 
|---|
| [8197] | 34 | !endif | 
|---|
|  | 35 |  | 
|---|
|  | 36 |  | 
|---|
| [8253] | 37 | SHT_BLDMD= | 
|---|
| [8197] | 38 | !if "$(BUILD_MODE)" == "RELEASE" | 
|---|
| [8253] | 39 | SHT_BLDMD=rel | 
|---|
| [8197] | 40 | !endif | 
|---|
|  | 41 | !if "$(BUILD_MODE)" == "DEBUG" | 
|---|
| [8253] | 42 | SHT_BLDMD=deb | 
|---|
| [8197] | 43 | !endif | 
|---|
|  | 44 | !if "$(BUILD_MODE)" == "PROFILE" | 
|---|
| [8253] | 45 | SHT_BLDMD=prf | 
|---|
| [8197] | 46 | !endif | 
|---|
| [8253] | 47 | !if "$(SHT_BLDMD)" == "" | 
|---|
|  | 48 | ! error Fatal error: Env.var BUILD_MODE is either unspecified or incorrect. ($(BUILD_MODE)) Valid values: RELEASE, DEBUG and PROFILE | 
|---|
| [8197] | 49 | !endif | 
|---|
|  | 50 |  | 
|---|
|  | 51 |  | 
|---|
| [8253] | 52 | SHT_BLDENV= | 
|---|
| [8197] | 53 | !if "$(BUILD_ENV)" == "VAC308" | 
|---|
| [8253] | 54 | SHT_BLDENV=vac308 | 
|---|
| [8197] | 55 | !endif | 
|---|
|  | 56 | !if "$(BUILD_ENV)" == "VAC365" | 
|---|
| [8253] | 57 | SHT_BLDENV=vac365 | 
|---|
| [8197] | 58 | !endif | 
|---|
|  | 59 | !if "$(BUILD_ENV)" == "VAC4" | 
|---|
| [8253] | 60 | SHT_BLDENV=vac4 | 
|---|
| [8197] | 61 | !endif | 
|---|
|  | 62 | !if "$(BUILD_ENV)" == "EMX" | 
|---|
| [8253] | 63 | SHT_BLDENV=emx | 
|---|
| [8197] | 64 | !endif | 
|---|
|  | 65 | !if "$(BUILD_ENV)" == "MSCV6" | 
|---|
| [8253] | 66 | SHT_BLDENV=mscv6 | 
|---|
| [8197] | 67 | !endif | 
|---|
| [8353] | 68 | !if "$(BUILD_ENV)" == "MSCV6-16" | 
|---|
|  | 69 | SHT_BLDENV=mscv6-16 | 
|---|
|  | 70 | !endif | 
|---|
| [9236] | 71 | !if "$(BUILD_ENV)" == "MSCV7-16" | 
|---|
|  | 72 | SHT_BLDENV=mscv7-16 | 
|---|
|  | 73 | !endif | 
|---|
| [8294] | 74 | !if "$(BUILD_ENV)" == "WAT11C" | 
|---|
| [8253] | 75 | SHT_BLDENV=wat11 | 
|---|
|  | 76 | !endif | 
|---|
| [8353] | 77 | !if "$(BUILD_ENV)" == "WAT11C-16" | 
|---|
|  | 78 | SHT_BLDENV=wat11-16 | 
|---|
|  | 79 | !endif | 
|---|
| [8253] | 80 | !if "$(SHT_BLDENV)" == "" | 
|---|
| [9236] | 81 | ! error Fatal error: Env.var BUILD_ENV is either unspecified or incorrect. ($(BUILD_MODE)) Valid values: VAC308, VAC365, VAC4, EMX, MSCV6-16, MSCV7-16, WAT11C and WAT11C-16. | 
|---|
| [8197] | 82 | !endif | 
|---|
|  | 83 |  | 
|---|
|  | 84 |  | 
|---|
| [8294] | 85 | !ifdef BUILD_ENV_FORCE | 
|---|
|  | 86 | SHT_BLDENVFRC= | 
|---|
|  | 87 | !if "$(BUILD_ENV_FORCE)" == "VAC308" | 
|---|
|  | 88 | SHT_BLDENVFRC=vac308 | 
|---|
|  | 89 | !endif | 
|---|
|  | 90 | !if "$(BUILD_ENV_FORCE)" == "VAC365" | 
|---|
|  | 91 | SHT_BLDENVFRC=vac365 | 
|---|
|  | 92 | !endif | 
|---|
|  | 93 | !if "$(BUILD_ENV_FORCE)" == "VAC4" | 
|---|
|  | 94 | SHT_BLDENVFRC=vac4 | 
|---|
|  | 95 | !endif | 
|---|
|  | 96 | !if "$(BUILD_ENV_FORCE)" == "EMX" | 
|---|
|  | 97 | SHT_BLDENVFRC=emx | 
|---|
|  | 98 | !endif | 
|---|
|  | 99 | !if "$(BUILD_ENV_FORCE)" == "MSCV6" | 
|---|
|  | 100 | SHT_BLDENVFRC=mscv6 | 
|---|
|  | 101 | !endif | 
|---|
| [8353] | 102 | !if "$(BUILD_ENV_FORCE)" == "MSCV6-16" | 
|---|
|  | 103 | SHT_BLDENVFRC=mscv6-16 | 
|---|
|  | 104 | !endif | 
|---|
| [9236] | 105 | !if "$(BUILD_ENV_FORCE)" == "MSCV7-16" | 
|---|
|  | 106 | SHT_BLDENVFRC=mscv7-16 | 
|---|
|  | 107 | !endif | 
|---|
| [8294] | 108 | !if "$(BUILD_ENV_FORCE)" == "WAT11C" | 
|---|
|  | 109 | SHT_BLDENVFRC=wat11 | 
|---|
|  | 110 | !endif | 
|---|
| [8353] | 111 | !if "$(BUILD_ENV_FORCE)" == "WAT11C-16" | 
|---|
|  | 112 | SHT_BLDENVFRC=wat11-16 | 
|---|
|  | 113 | !endif | 
|---|
| [8294] | 114 | !if "$(SHT_BLDENVFRC)" == "" | 
|---|
| [9236] | 115 | ! error Fatal error: Var BUILD_ENV_FORCE is incorrect. ($(BUILD_ENV_FORCE)) Valid values: VAC308, VAC365, VAC4, EMX, MSCV6-16, MSCV7-16, WAT11C and WAT11C-16. | 
|---|
| [8294] | 116 | !endif | 
|---|
|  | 117 | !else | 
|---|
|  | 118 | BUILD_ENV_FORCE=$(BUILD_ENV) | 
|---|
|  | 119 | SHT_BLDENVFRC=$(SHT_BLDENV) | 
|---|
|  | 120 | !endif | 
|---|
| [8253] | 121 |  | 
|---|
| [8294] | 122 |  | 
|---|
| [8253] | 123 | # ----------------------------------------------------------------------------- | 
|---|
|  | 124 | # Directories | 
|---|
|  | 125 | # ----------------------------------------------------------------------------- | 
|---|
|  | 126 |  | 
|---|
|  | 127 | # current directory. | 
|---|
|  | 128 | PATH_CURRENT    = $(MAKEDIR) | 
|---|
|  | 129 | # Where build system files are located. (like this file) | 
|---|
|  | 130 | PATH_MAKE       = $(PATH_ROOT)\make | 
|---|
|  | 131 | # Where the bulid system and other tools are located | 
|---|
|  | 132 | PATH_TOOLS      = $(PATH_ROOT)\tools\bin | 
|---|
|  | 133 | # Where platform-specific files are located. (like the .def files) | 
|---|
|  | 134 | PATH_DEF        = . | 
|---|
|  | 135 | # Where the include files are located. | 
|---|
| [9725] | 136 | !ifdef ODIN32_USERAPP | 
|---|
| [9718] | 137 | PATH_INCLUDES   = $(PATH_ROOT)\include\win;.;$(PATH_ROOT)\include | 
|---|
| [9725] | 138 | !else | 
|---|
|  | 139 | PATH_INCLUDES   = $(PATH_ROOT)\include\incl_vac;$(PATH_ROOT)\include\win;.;$(PATH_ROOT)\include | 
|---|
| [9718] | 140 | !endif | 
|---|
| [8253] | 141 | # Where the temporary files goes. | 
|---|
| [9165] | 142 | PATH_OBJ        = $(PATH_ROOT)\obj\$(SHT_TRGPLTFRM)$(SHT_BLDMD)$(SHT_BLDENV:-=_) | 
|---|
| [9127] | 143 | # Where the libraries goes. | 
|---|
|  | 144 | PATH_LIB        = $(PATH_ROOT)\lib\$(BUILD_MODE) | 
|---|
|  | 145 | # Base directory of the published files. | 
|---|
|  | 146 | PATH_PUB        = $(PATH_ROOT)\bin\$(BUILD_MODE) | 
|---|
|  | 147 | # Base directory of the unstripped published files. (release mode only) | 
|---|
|  | 148 | PATH_PUB_DEB    = $(PATH_ROOT)\bin\$(BUILD_MODE).unstripped | 
|---|
|  | 149 | # Sub dir where the executable binaries goes. | 
|---|
|  | 150 | PATH_SUB_BIN    = . | 
|---|
|  | 151 | # Sub dir where the dynamic link libraries goes. | 
|---|
|  | 152 | PATH_SUB_DLL    = . | 
|---|
|  | 153 | # Sub dir where the drivers goes. (common for IFS and SYS.) | 
|---|
|  | 154 | PATH_SUB_SYS    = . | 
|---|
|  | 155 | # Sub dir where the virtual dos drivers goes. | 
|---|
|  | 156 | PATH_SUB_VDD    = . | 
|---|
| [9273] | 157 | # Sub dir where the book files goes. (aka .inf) | 
|---|
|  | 158 | PATH_SUB_BOOK   = book | 
|---|
|  | 159 | # Sub dir where the help files goes. (aka .hlp) | 
|---|
|  | 160 | PATH_SUB_HELP   = help | 
|---|
| [9127] | 161 | # Sub dir where the documentation goes. | 
|---|
| [9273] | 162 | PATH_SUB_DOC    = docs | 
|---|
| [8253] | 163 |  | 
|---|
|  | 164 |  | 
|---|
| [9127] | 165 |  | 
|---|
| [8253] | 166 | # Note: Makefiles are supposed to set the correct *RELATIVE* path to the | 
|---|
|  | 167 | #       projects root. Using '\' slashes please. No trailing slash. | 
|---|
|  | 168 | # | 
|---|
|  | 169 | # Example: | 
|---|
|  | 170 | #       PATH_ROOT= ..\..\.. | 
|---|
|  | 171 | # Assert PATH_ROOT | 
|---|
|  | 172 | !if "$(PATH_ROOT)" == "" | 
|---|
|  | 173 | !error fatal error: PATH_ROOT empty or undefined. | 
|---|
| [8197] | 174 | !endif | 
|---|
|  | 175 |  | 
|---|
| [8715] | 176 | # | 
|---|
|  | 177 | # A workaround for SlickEdits inability to find the buggy files.. | 
|---|
|  | 178 | # This fixes the relative paths of includes. | 
|---|
|  | 179 | # Set the make line to: | 
|---|
|  | 180 | #   '%v && cd %p && nmake PATH_ROOT_ABS=%rp. %n.obj -a' | 
|---|
|  | 181 | # (NB! Set the project directory to the root dir by creating the project there!) | 
|---|
|  | 182 | # | 
|---|
|  | 183 | !ifdef SLKRUNS | 
|---|
|  | 184 | ! ifdef PATH_ROOT_ABS | 
|---|
|  | 185 | PATH_ROOT = $(PATH_ROOT_ABS) | 
|---|
|  | 186 | ! endif | 
|---|
|  | 187 | !endif | 
|---|
| [8197] | 188 |  | 
|---|
| [8715] | 189 |  | 
|---|
|  | 190 |  | 
|---|
| [8253] | 191 | # ----------------------------------------------------------------------------- | 
|---|
|  | 192 | # Common variables / Project variables | 
|---|
|  | 193 | # ----------------------------------------------------------------------------- | 
|---|
| [8197] | 194 |  | 
|---|
| [8253] | 195 | # The default definitions. | 
|---|
| [9131] | 196 | !ifndef ODIN32_USERAPP | 
|---|
|  | 197 | BUILD_DEFINES           = -D__WIN32OS2__ -DTCPV40HDRS -DCOMCTL32UNDOC -D__WINE__ | 
|---|
|  | 198 | !else | 
|---|
|  | 199 | BUILD_DEFINES           = -D__WIN32OS2__ #-DTCPV40HDRS -DCOMCTL32UNDOC -D__WINE__ | 
|---|
|  | 200 | !endif | 
|---|
| [8333] | 201 | BUILD_BLDLEVEL_FLAGS    = -V^"^#define=ODIN32_VERSION,$(PATH_ROOT)\include\odinbuild.h^" \ | 
|---|
|  | 202 | -M^"^#define=ODIN32_BUILD_NR,$(PATH_ROOT)\include\odinbuild.h^" | 
|---|
| [8423] | 203 | BUILD_PROJECT           = Odin32 | 
|---|
| [8253] | 204 |  | 
|---|
| [9117] | 205 | # Project Specific definitions. | 
|---|
|  | 206 | !if "$(BUILD_MODE)" != "DEBUG" | 
|---|
|  | 207 | LIB_ODINCRT             = $(PATH_LIB)\odincrt.$(EXT_LIB) | 
|---|
|  | 208 | !else | 
|---|
|  | 209 | LIB_ODINCRT             = $(PATH_LIB)\odincrtd.$(EXT_LIB) | 
|---|
|  | 210 | !endif | 
|---|
|  | 211 | !ifndef CUSTOMBUILD | 
|---|
|  | 212 | OBJ_DLLENTRY            = $(PATH_LIB)\dllentry.$(EXT_OBJ) | 
|---|
|  | 213 | !else | 
|---|
|  | 214 | OBJ_DLLENTRY            = | 
|---|
|  | 215 | !endif | 
|---|
|  | 216 |  | 
|---|
| [8253] | 217 | # This is the process file to include at end of the makefile. | 
|---|
|  | 218 | MAKE_INCLUDE_PROCESS    = $(PATH_MAKE)\process.mak | 
|---|
|  | 219 |  | 
|---|
| [9165] | 220 | # ----------------------------------------------------------------------------- | 
|---|
|  | 221 | # Build the environments variables | 
|---|
|  | 222 | # ----------------------------------------------------------------------------- | 
|---|
| [8253] | 223 |  | 
|---|
| [9165] | 224 | # In the makefiles you're allowed to use the BUILD_ENVS_PRE, | 
|---|
|  | 225 | # BUILD_ENV_FORCE, BUILD_ENVS_POST variables to make private changes to the | 
|---|
|  | 226 | # environment. These are combined with the two base ones as follows: | 
|---|
|  | 227 | #   $(BUILD_ENVS_BASE_PRE) $(BUILD_ENVS_PRE) $(ENV_ENVS) $(BUILD_ENVS_BASE_POST) $(BUILD_ENVS_POST) | 
|---|
|  | 228 | # | 
|---|
|  | 229 | # BUILD_ENV_FORCE is used for changing the base compiler. Do *NOT* use | 
|---|
|  | 230 | # BUILD_ENV for that! BUILD_ENV_FORCE isn't used directly but in the setup | 
|---|
|  | 231 | # string above, but ENV_ENVS from the setup.[w]xyz.mk setup file is used. | 
|---|
|  | 232 | # | 
|---|
|  | 233 |  | 
|---|
|  | 234 | # These strings are passed on to the BuildEnv.cmd script to setup the correct | 
|---|
|  | 235 | # shell environment. | 
|---|
|  | 236 | # TODO   Should these be overridable by setup.[w]xyz.mak ? (kso) | 
|---|
| [9174] | 237 | BUILD_ENVS_BASE_POST    = toolkit452 | 
|---|
| [9165] | 238 | BUILD_ENVS_BASE_POST_16 = | 
|---|
| [9186] | 239 | BUILD_ENVS_BASE_PRE     = buildsetup emx~ cvs~ | 
|---|
|  | 240 | BUILD_ENVS_BASE_PRE_16  = buildsetup emx~ cvs~ toolkit452 ddkbase | 
|---|
| [9165] | 241 |  | 
|---|
|  | 242 |  | 
|---|
| [9150] | 243 | # ----------------------------------------------------------------------------- | 
|---|
|  | 244 | # Set forwarding flag. | 
|---|
|  | 245 | #   If    there is any change in the environment | 
|---|
|  | 246 | #      OR the environment is uncertain (_BUILD_PROJECT not right) Then | 
|---|
|  | 247 | #   Forward all target commands to the new shell environment we setup. | 
|---|
|  | 248 | # | 
|---|
|  | 249 | #   (This have to be done early so the CC setup and it's like can check for | 
|---|
|  | 250 | #   the flag. The rest of the forward stuff is at the bottom.) | 
|---|
|  | 251 | # ----------------------------------------------------------------------------- | 
|---|
|  | 252 | !if "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)" || "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)" || "$(BUILD_ENVS_PRE)" != "" || "$(BUILD_ENVS_POST)" != "" | 
|---|
|  | 253 | BUILD_FORWARDING = 1 | 
|---|
|  | 254 | !else | 
|---|
|  | 255 | BUILD_FORWARDING = 0 | 
|---|
|  | 256 | !endif | 
|---|
| [9131] | 257 |  | 
|---|
| [9150] | 258 |  | 
|---|
| [8253] | 259 | # ----------------------------------------------------------------------------- | 
|---|
|  | 260 | # Include the setup. | 
|---|
|  | 261 | #   First the default common tools setup is included. | 
|---|
|  | 262 | #   The the environment specific setup. | 
|---|
|  | 263 | # ----------------------------------------------------------------------------- | 
|---|
|  | 264 |  | 
|---|
|  | 265 | !include $(PATH_MAKE)\setup.tools.mk | 
|---|
|  | 266 |  | 
|---|
|  | 267 | MAKE_INCLUDE_SETUP = $(PATH_MAKE)\setup.$(SHT_TRGPLTFRM)$(SHT_BLDMD)$(SHT_BLDENV).mk | 
|---|
|  | 268 | !ifndef BUILD_QUIET | 
|---|
| [8715] | 269 | ! ifndef MAKEVER | 
|---|
|  | 270 | !  if [$(ECHO) Including platform setup file $(CLRFIL)$(MAKE_INCLUDE_SETUP)$(CLRRST)] | 
|---|
|  | 271 | !  endif | 
|---|
|  | 272 | ! else | 
|---|
|  | 273 | $(ECHO) Including platform setup file $(CLRFIL)$(MAKE_INCLUDE_SETUP)$(CLRRST) | 
|---|
| [8197] | 274 | ! endif | 
|---|
|  | 275 | !endif | 
|---|
| [8253] | 276 | !include $(MAKE_INCLUDE_SETUP) | 
|---|
| [8197] | 277 |  | 
|---|
|  | 278 |  | 
|---|
| [8253] | 279 | # ----------------------------------------------------------------------------- | 
|---|
|  | 280 | # Verify the environment setups. | 
|---|
| [9150] | 281 | #   Uncomment this when configuring a new project. | 
|---|
|  | 282 | #   When the setup is stable comment it out. (it's a waste of time!) | 
|---|
| [8253] | 283 | # ----------------------------------------------------------------------------- | 
|---|
| [8197] | 284 |  | 
|---|
| [9150] | 285 | # | 
|---|
|  | 286 | #!ifndef ENV_NAME | 
|---|
|  | 287 | #!error No environment signature has been defined ($(NAME_COMPLETE)) | 
|---|
|  | 288 | #!endif | 
|---|
|  | 289 | # | 
|---|
|  | 290 | #!ifndef MAKE_INCLUDE_SETUP | 
|---|
|  | 291 | #!error No setup to include has been determined (MAKE_INCLUDE_SETUP) | 
|---|
|  | 292 | #!endif | 
|---|
|  | 293 | # | 
|---|
|  | 294 | #!if "$(ENV_STATUS)" != "OK" | 
|---|
|  | 295 | #!error Environment $(ENV_NAME) does work yet (ENV_STATUS is not OK). | 
|---|
|  | 296 | #!endif | 
|---|
|  | 297 | # | 
|---|
|  | 298 | #!ifndef CC | 
|---|
|  | 299 | #!error Environment $(ENV_NAME) does not define variable (CC). | 
|---|
|  | 300 | #!endif | 
|---|
|  | 301 | # | 
|---|
|  | 302 | #!ifndef CC_FLAGS_EXE | 
|---|
|  | 303 | #!error Environment $(ENV_NAME) does not define variable (CC_FLAGS_EXE). | 
|---|
|  | 304 | #!endif | 
|---|
|  | 305 | # | 
|---|
|  | 306 | #!ifndef LINK | 
|---|
|  | 307 | #!error Environment $(ENV_NAME) does not define variable (LINK). | 
|---|
|  | 308 | #!endif | 
|---|
|  | 309 | # | 
|---|
|  | 310 | #!ifndef LINK_FLAGS_EXE | 
|---|
|  | 311 | #!error Environment $(ENV_NAME) does not define variable (LINK_FLAGS_EXE). | 
|---|
|  | 312 | #!endif | 
|---|
|  | 313 | # | 
|---|
| [8197] | 314 |  | 
|---|
| [9165] | 315 |  | 
|---|
| [8253] | 316 | # ----------------------------------------------------------------------------- | 
|---|
| [9165] | 317 | # Forwarding processing. | 
|---|
| [8294] | 318 | # ----------------------------------------------------------------------------- | 
|---|
| [9150] | 319 | !if $(BUILD_FORWARDING) | 
|---|
| [8294] | 320 |  | 
|---|
|  | 321 | MAKE_INCLUDE_PROCESS = $(PATH_MAKE)\process.forwarder.mak | 
|---|
|  | 322 |  | 
|---|
| [9047] | 323 | # Debug - find the reason for forwarding. | 
|---|
|  | 324 | #! if 0 | 
|---|
|  | 325 | #!  if "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)" | 
|---|
|  | 326 | #!   if [echo debug - _BUILD_PROJECT: "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)"] | 
|---|
|  | 327 | #!   endif | 
|---|
|  | 328 | #!  endif | 
|---|
|  | 329 | #!  if "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)" | 
|---|
|  | 330 | #!   if [echo debug - BUILD_ENV: "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)"] | 
|---|
|  | 331 | #!   endif | 
|---|
|  | 332 | #!  endif | 
|---|
|  | 333 | #!  if "$(BUILD_ENVS_PRE)" != "" | 
|---|
|  | 334 | #!   if [echo debug - BUILD_ENVS_PRE: "$(BUILD_ENVS_PRE)" != ""] | 
|---|
|  | 335 | #!   endif | 
|---|
|  | 336 | #!  endif | 
|---|
|  | 337 | #!  if "$(BUILD_ENVS_POST)" != "" | 
|---|
|  | 338 | #!   if [echo debug - BUILD_ENVS_POST: "$(BUILD_ENVS_POST)" != ""] | 
|---|
|  | 339 | #!   endif | 
|---|
|  | 340 | #!  endif | 
|---|
|  | 341 | #! endif | 
|---|
|  | 342 |  | 
|---|
|  | 343 |  | 
|---|
| [8423] | 344 | # set the secret _build_project env.var. | 
|---|
| [9047] | 345 | # Note: This 'SET' operation doesn't allways work as designed. | 
|---|
|  | 346 | #       Therefore we have a workaround in the forwarder statement which makes | 
|---|
|  | 347 | #       sure that the internal variable is set. The problem seems to be to | 
|---|
|  | 348 | #       create new environment variables. | 
|---|
|  | 349 | ! if "$(_BUILD_PROJECT)" != "$(BUILD_PROJECT)" | 
|---|
|  | 350 | !  if [SET _BUILD_PROJECT=$(BUILD_PROJECT)] | 
|---|
|  | 351 | !  endif | 
|---|
| [8423] | 352 | ! endif | 
|---|
| [8294] | 353 |  | 
|---|
|  | 354 | # Compiler change or just environment change. | 
|---|
|  | 355 | ! if "$(BUILD_ENV)" != "$(BUILD_ENV_FORCE)" | 
|---|
|  | 356 | MAKE_INCLUDE_SETUP_FORCE = $(PATH_MAKE)\setup.$(SHT_TRGPLTFRM)$(SHT_BLDMD)$(SHT_BLDENVFRC).mk | 
|---|
|  | 357 | !  ifndef BUILD_QUIET | 
|---|
| [8715] | 358 | !   ifndef MAKEVER | 
|---|
|  | 359 | !    if [$(ECHO) Including forced platform setup file $(CLRFIL)$(MAKE_INCLUDE_SETUP_FORCE)$(CLRRST)] | 
|---|
|  | 360 | !    endif | 
|---|
|  | 361 | !   else | 
|---|
|  | 362 | $(ECHO) Including forced platform setup file $(CLRFIL)$(MAKE_INCLUDE_SETUP_FORCE)$(CLRRST) | 
|---|
| [8294] | 363 | !   endif | 
|---|
|  | 364 | !  endif | 
|---|
|  | 365 | !  include $(MAKE_INCLUDE_SETUP_FORCE) | 
|---|
| [8423] | 366 | !  ifdef ENV_16BIT | 
|---|
|  | 367 | BUILD_ENVS_CHANGE = $(ENV_ENVS: =- )- $(BUILD_ENVS_BASE_PRE_16) $(BUILD_ENVS_PRE) $(ENV_ENVS_FORCE) $(BUILD_ENVS_BASE_POST_16) $(BUILD_ENVS_POST) | 
|---|
|  | 368 | !  else | 
|---|
| [8294] | 369 | BUILD_ENVS_CHANGE = $(ENV_ENVS: =- )- $(BUILD_ENVS_BASE_PRE) $(BUILD_ENVS_PRE) $(ENV_ENVS_FORCE) $(BUILD_ENVS_BASE_POST) $(BUILD_ENVS_POST) | 
|---|
| [8423] | 370 | !  endif | 
|---|
| [8294] | 371 | ! else | 
|---|
| [8423] | 372 | !  ifdef ENV_16BIT | 
|---|
|  | 373 | BUILD_ENVS_CHANGE = $(BUILD_ENVS_BASE_PRE_16) $(BUILD_ENVS_PRE) $(ENV_ENVS) $(BUILD_ENVS_BASE_POST_16) $(BUILD_ENVS_POST) | 
|---|
|  | 374 | !  else | 
|---|
| [8294] | 375 | BUILD_ENVS_CHANGE = $(BUILD_ENVS_BASE_PRE) $(BUILD_ENVS_PRE) $(ENV_ENVS) $(BUILD_ENVS_BASE_POST) $(BUILD_ENVS_POST) | 
|---|
| [8423] | 376 | !  endif | 
|---|
| [8294] | 377 | ! endif | 
|---|
|  | 378 |  | 
|---|
| [9150] | 379 | !endif # BUILD_FORWARDING | 
|---|
| [8294] | 380 |  | 
|---|