Changeset 731
- Timestamp:
- Dec 17, 2006, 5:19:16 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 5 edited
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Config.kmk ¶
r722 r731 67 67 TEMPLATE_BIN_INST = $(NIX_INSTALL_DIR_BIN)/ 68 68 else 69 TEMPLATE_BIN_INST = kBuild/bin/ x86.os2/69 TEMPLATE_BIN_INST = kBuild/bin/os2.x86/ 70 70 endif 71 71 endif … … 79 79 TEMPLATE_BIN_INST = $(NIX_INSTALL_DIR_BIN)/ 80 80 else 81 TEMPLATE_BIN_INST = kBuild/bin/$(BUILD_TARGET _ARCH).$(BUILD_TARGET)/81 TEMPLATE_BIN_INST = kBuild/bin/$(BUILD_TARGET).$(BUILD_TARGET_ARCH)/ 82 82 endif 83 83 endif 84 84 85 ifeq ($(filter-out x86.win32 x86.win x86.nt,$(BUILD_TARGET_ARCH).$(BUILD_TARGET)),)85 ifeq ($(filter-out win nt,$(BUILD_TARGET)),) 86 86 include $(PATH_KBUILD)/tools/VCC70.kmk # fixme! template expanding does something bad to _LIBS /me thinks. 87 87 TEMPLATE_BIN_TOOL = VCC70 … … 105 105 TEMPLATE_BIN_INST = $(NIX_INSTALL_DIR_BIN)/ 106 106 else 107 TEMPLATE_BIN_INST = kBuild/bin/ x86.win32/107 TEMPLATE_BIN_INST = kBuild/bin/win.$(BUILD_TARGET_ARCH)/ 108 108 endif 109 109 endif … … 124 124 TEMPLATE_BIN_INST = $(NIX_INSTALL_DIR_BIN)/ 125 125 else 126 TEMPLATE_BIN_INST = kBuild/bin/$(BUILD_TARGET _ARCH).$(BUILD_TARGET)/126 TEMPLATE_BIN_INST = kBuild/bin/$(BUILD_TARGET).$(BUILD_TARGET_ARCH)/ 127 127 endif 128 128 endif -
TabularUnified trunk/kBuild/env.sh ¶
r718 r731 164 164 165 165 # Make shell 166 export MAKESHELL="$PATH_KBUILD/bin/$BUILD_PLATFORM _ARCH.$BUILD_PLATFORM/kmk_ash${_SUFF_EXE}";166 export MAKESHELL="$PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/kmk_ash${_SUFF_EXE}"; 167 167 168 168 # The PATH. 169 PATH="$PATH_KBUILD/bin/$BUILD_PLATFORM _ARCH.$BUILD_PLATFORM/${_PATH_SEP}$PATH"169 PATH="$PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/${_PATH_SEP}$PATH" 170 170 export PATH 171 171 echo "dbg: PATH=$PATH" 172 172 173 173 # Sanity and x bits. 174 if [ ! -d "$PATH_KBUILD/bin/$BUILD_PLATFORM _ARCH.$BUILD_PLATFORM/" ]; then175 echo "$0: warning: The bin directory for this platform doesn't exists. ($PATH_KBUILD/bin/$BUILD_PLATFORM _ARCH.$BUILD_PLATFORM/)"174 if [ ! -d "$PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/" ]; then 175 echo "$0: warning: The bin directory for this platform doesn't exists. ($PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/)" 176 176 else 177 for prog in kmk kDepPre kDepIDB kmk_append kmk_ash kmk_cat kmk_cp kmk_echo kmk_install kmk_ln kmk_mkdir kmk_mv kmk_rm kmk_ sed;177 for prog in kmk kDepPre kDepIDB kmk_append kmk_ash kmk_cat kmk_cp kmk_echo kmk_install kmk_ln kmk_mkdir kmk_mv kmk_rm kmk_rmdir kmk_sed; 178 178 do 179 chmod a+x $PATH_KBUILD/bin/$BUILD_PLATFORM _ARCH.$BUILD_PLATFORM/${prog} > /dev/null 2>&1180 if [ ! -f "$PATH_KBUILD/bin/$BUILD_PLATFORM _ARCH.$BUILD_PLATFORM/${prog}${_SUFF_EXE}" ]; then181 echo "$0: warning: The ${prog} program doesn't exist for this platform. ($PATH_KBUILD/bin/$BUILD_PLATFORM _ARCH.$BUILD_PLATFORM/${prog}${_SUFF_EXE})"179 chmod a+x $PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/${prog} > /dev/null 2>&1 180 if [ ! -f "$PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/${prog}${_SUFF_EXE}" ]; then 181 echo "$0: warning: The ${prog} program doesn't exist for this platform. ($PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/${prog}${_SUFF_EXE})" 182 182 fi 183 183 done … … 198 198 $* 199 199 fi 200 -
TabularUnified trunk/kBuild/envos2.cmd ¶
r718 r731 8 8 * Environment setup script for OS/2. 9 9 * 10 * Copyright (c) 2006 knut st. osmundsen <bird-kbuild-src@anduin.net>10 * Copyright (c) 1999-2006 knut st. osmundsen <bird-kbuild-src@anduin.net> 11 11 * 12 12 * … … 129 129 130 130 131 sPlatformBin = EnvGet("PATH_KBUILD")||"\bin\"||EnvGet("BUILD_PLATFORM _ARCH")||"."||EnvGet("BUILD_PLATFORM");131 sPlatformBin = EnvGet("PATH_KBUILD")||"\bin\"||EnvGet("BUILD_PLATFORM")||"."||EnvGet("BUILD_PLATFORM_ARCH"); 132 132 133 133 /* Make shell */ … … 149 149 else 150 150 do 151 sPrograms = "kmk kDepPre kDepIDB kmk_append kmk_ash kmk_cat kmk_cp kmk_echo kmk_install kmk_ln kmk_mkdir kmk_mv kmk_rm kmk_ sed";151 sPrograms = "kmk kDepPre kDepIDB kmk_append kmk_ash kmk_cat kmk_cp kmk_echo kmk_install kmk_ln kmk_mkdir kmk_mv kmk_rm kmk_rmdir kmk_sed"; 152 152 do i = 1 to words(sPrograms) 153 153 sProgram = word(sPrograms, i); -
TabularUnified trunk/kBuild/envwin.cmd ¶
r718 r731 36 36 if ".%1" = ".--help" goto help 37 37 38 if ".%1" = ".-win" goto want_win _bit38 if ".%1" = ".-win" goto want_win 39 39 if ".%1" = ".-win32" goto want_win32_bit 40 40 if ".%1" = ".-win64" goto want_win64_bit 41 if ".%1" = ".-nt" goto want_nt _bit41 if ".%1" = ".-nt" goto want_nt 42 42 if ".%1" = ".-nt32" goto want_nt32_bit 43 43 if ".%1" = ".-nt64" goto want_nt64_bit … … 53 53 54 54 55 :want_win _bit55 :want_win 56 56 shift 57 57 set BUILD_TARGET=win … … 61 61 :want_win32_bit 62 62 shift 63 set BUILD_PLATFORM=win 3264 set BUILD_TARGET=win 3263 set BUILD_PLATFORM=win 64 set BUILD_TARGET=win 65 65 set BUILD_TARGET_ARCH=x86 66 66 goto done_arguments … … 68 68 :want_win64_bit 69 69 shift 70 set BUILD_TARGET=win 6470 set BUILD_TARGET=win 71 71 set BUILD_TARGET_ARCH=amd64 72 72 goto done_arguments 73 73 74 :want_nt _bit74 :want_nt 75 75 shift 76 76 set BUILD_PLATFORM=nt … … 93 93 94 94 :done_arguments 95 96 97 REM # 98 REM # Check for illegal target/platforms. 99 REM # 100 if "%BUILD_TARGET" = "win32" goto illegal_target 101 if "%BUILD_TARGET" = "win64" goto illegal_target 102 103 if "%BUILD_PLATFORM" = "win32" goto illegal_platform 104 if "%BUILD_PLATFORM" = "win64" goto illegal_platform 105 goto target_and_platform_ok 106 107 :illegal_target 108 echo error: BUILD_TARGET=%BUILD_TARGET is no longer valid. 109 echo Only 'win' and 'nt' are permitted for targeting microsoft windows. 110 goto failed 111 112 :illegal_platform 113 echo error: BUILD_PLATFORM=%BUILD_PLATFORM is no longer valid. 114 echo Only 'win' and 'nt' are permitted for building on microsoft windows. 115 goto failed 116 117 :target_and_platform_ok 118 95 119 96 120 REM # … … 168 192 :have_2_BUILD_PLATFORM 169 193 echo dbg: BUILD_PLATFORM=%BUILD_PLATFORM% 170 IF "%BUILD_PLATFORM%" = "win32" set BUILD_PLATFORM_ARCH=x86171 IF "%BUILD_PLATFORM%" = "win64" set BUILD_PLATFORM_ARCH=amd64172 194 IF NOT ".%BUILD_PLATFORM_ARCH%" = "." goto have_2_BUILD_PLATFORM_ARCH 173 195 set TEST_PROCESSOR_ARCH=%PROCESSOR_ARCHITECTURE% … … 216 238 IF NOT ".%BUILD_TARGET_ARCH%" = "." goto have_2_BUILD_TARGET_ARCH 217 239 IF "%BUILD_TARGET%" = "os2" set BUILD_TARGET_ARCH=x86 218 IF "%BUILD_TARGET%" = "win32" set BUILD_TARGET_ARCH=x86219 IF "%BUILD_TARGET%" = "win64" set BUILD_TARGET_ARCH=amd64220 240 IF ".%BUILD_TARGET_ARCH%" = "." set BUILD_TARGET_ARCH=%BUILD_PLATFORM_ARCH% 221 241 :have_2_BUILD_TARGET_ARCH … … 233 253 234 254 REM # The PATH. 235 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "x86.nt" set PATH=%PATH_KBUILD%\bin\x86.win32;%PATH% 236 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "x86.win" set PATH=%PATH_KBUILD%\bin\x86.win32;%PATH% 237 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "amd64.nt" set PATH=%PATH_KBUILD%\bin\amd64.nt;%PATH_KBUILD%\bin\x86.win32;%PATH% 238 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "amd64.win" set PATH=%PATH_KBUILD%\bin\amd64.win64;%PATH_KBUILD%\bin\x86.win32;%PATH% 239 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "amd64.win64" set PATH=%PATH_KBUILD%\bin\x86.win32;%PATH% 240 set PATH=%PATH_KBUILD%\bin\%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%;%PATH% 255 set PATH=%PATH_KBUILD%\bin\win.x86;%PATH% 256 IF "%BUILD_PLATFORM_ARCH%" = "win.amd64" set PATH=%PATH_KBUILD%\bin\win.amd64;%PATH% 241 257 echo dbg: PATH=%PATH% 242 258 -
TabularUnified trunk/kBuild/header.kmk ¶
r725 r731 273 273 274 274 ifndef PATH_KBUILD_BIN 275 PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM _ARCH).$(BUILD_PLATFORM)275 PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH) 276 276 ifeq ($(wildcard $(PATH_KBUILD_BIN)/kmk_ash$(HOSTSUFF_EXE)),) 277 277 ifeq ($(BUILD_TARGET_ARCH),amd64) 278 PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/ x86.$(BUILD_PLATFORM)278 PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM).x86 279 279 endif 280 280 ifeq ($(wildcard $(PATH_KBUILD_BIN)/kmk_ash$(HOSTSUFF_EXE)),) 281 281 ifeq ($(filter-out win64 win32 win nt ,$(BUILD_PLATFORM)),) 282 PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/ x86.win282 PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/win.x86 283 283 endif 284 284 endif 285 285 ifeq ($(wildcard $(PATH_KBUILD_BIN)/kmk_ash$(HOSTSUFF_EXE)),) 286 286 # give up 287 PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM _ARCH).$(BUILD_PLATFORM)287 PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH) 288 288 endif 289 289 endif
Note:
See TracChangeset
for help on using the changeset viewer.