儲存庫 vbox 的更動 8758
- 時間撮記:
- 2008-5-11 下午06:27:49 (17 年 以前)
- 位置:
- trunk
- 檔案:
-
- 修改 36 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/Config.kmk
r8757 r8758 38 38 # Install paths. 39 39 PATH_INS := $(PATH_OUT) 40 ifeq ($( BUILD_TARGET),darwin)40 ifeq ($(KBUILD_TARGET),darwin) 41 41 INST_DIST = dist/ 42 42 INST_SDK = $(INST_DIST)sdk/ … … 137 137 # This indicates that additions (of some kind or another) is being _built_. 138 138 # VBOX_WITHOUT_ADDITIONS overrides it. 139 if1of ($( BUILD_TARGET),l4 linux os2 solaris win)139 if1of ($(KBUILD_TARGET),l4 linux os2 solaris win) 140 140 VBOX_WITH_ADDITIONS = 1 141 141 else ifdef VBOX_WITH_WIN32_ADDITIONS # for ssh cross builds -remove later! … … 148 148 VBOX_WITH_ADDITION_DRIVERS = 1 149 149 # Build win32 additions (cross building them on linux and l4 using wine). 150 if1of ($( BUILD_TARGET),l4 linux win)150 if1of ($(KBUILD_TARGET),l4 linux win) 151 151 VBOX_WITH_WIN32_ADDITIONS = 1 152 152 endif … … 154 154 # Note! VBOX_WITH_LINUX_ADDITIONS will be removed later and only 155 155 # VBOX_WITH_WIN32_ADDITIONS will be kept around for cross building. 156 if1of ($( BUILD_TARGET),l4 linux)156 if1of ($(KBUILD_TARGET),l4 linux) 157 157 VBOX_WITH_LINUX_ADDITIONS = 1 158 158 endif … … 162 162 VBOX_WITH_X11_ADDITIONS = 1 163 163 endif 164 if1of ($( BUILD_TARGET), solaris)164 if1of ($(KBUILD_TARGET), solaris) 165 165 VBOX_WITH_X11_ADDITIONS = 1 166 166 endif … … 192 192 # build enhanced version of rdesktop 193 193 VBOX_WITH_VRDP_RDESKTOP = 1 194 if1of ($( BUILD_TARGET).$(BUILD_TARGET_ARCH), win.x86 l4.x86 l4.amd64)194 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86 l4.x86 l4.amd64) 195 195 # build the support driver & library with IDT patching. 196 196 VBOX_WITH_IDT_PATCHING = 1 … … 201 201 VBOX_WITH_VBOXDRV = 1 202 202 # build with secure label support 203 ifeq ($(filter win.amd64,$( BUILD_TARGET).$(BUILD_TARGET_ARCH)),) # too much work with freetype and all that.203 ifeq ($(filter win.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) # too much work with freetype and all that. 204 204 VBOX_WITH_SECURELABEL = 1 205 205 endif … … 259 259 # Enables the ffmpeg module for recording test runs. 260 260 # Enable this for non-Linux builds later. 261 ifeq ($( BUILD_TARGET),linux)261 ifeq ($(KBUILD_TARGET),linux) 262 262 # VBOX_WITH_FFMPEG = 1 263 263 endif … … 275 275 VBOX_DO_STRIP_MODULES = 1 276 276 # Use kStuff for MACH-O and LX binary loading. 277 if1of ($( BUILD_TARGET),darwin os2)277 if1of ($(KBUILD_TARGET),darwin os2) 278 278 IPRT_WITH_KSTUFF = 1 279 279 endif … … 292 292 # Enable use of the $ORIGIN rpath feature. This is the default on 293 293 # Solaris, but not else where for various reasons (ld.so, dist builds). 294 ifeq ($( BUILD_TARGET),solaris)294 ifeq ($(KBUILD_TARGET),solaris) 295 295 VBOX_WITH_ORIGIN = 1 296 296 endif … … 316 316 317 317 # l4 have to skip a few things. 318 ifeq ($( BUILD_TARGET),l4)318 ifeq ($(KBUILD_TARGET),l4) 319 319 VBOX_WITH_VBOXDRV= 320 320 VBOX_WITH_ADDITION_DRIVERS= … … 331 331 332 332 # Darwin have to skip a few things at present. 333 ifeq ($( BUILD_TARGET),darwin)333 ifeq ($(KBUILD_TARGET),darwin) 334 334 # Internal networking requires testing and possibly proper ring-3/ring0 separation. 335 335 VBOX_WITH_INTERNAL_NETWORKING= … … 343 343 344 344 # Most stuff doesn't build yet on the new targets. 345 ifeq ($( BUILD_TARGET),os2)345 ifeq ($(KBUILD_TARGET),os2) 346 346 VBOX_WITH_INSTALLER= 347 347 VBOX_WITH_SECURELABEL= … … 355 355 endif 356 356 357 ifeq ($( BUILD_TARGET),solaris)357 ifeq ($(KBUILD_TARGET),solaris) 358 358 VBOX_WITH_SECURELABEL= 359 359 VBOX_WITH_VRDP_AUTHMOD= … … 363 363 endif 364 364 365 ifeq ($( BUILD_TARGET),freebsd)365 ifeq ($(KBUILD_TARGET),freebsd) 366 366 VBOX_WITH_INSTALLER= 367 367 VBOX_WITH_SECURELABEL= … … 433 433 VBOX_WITH_TESTSUITE= 434 434 VBOX_WITH_INTEL_PXE= 435 ifeq ($( BUILD_TARGET),darwin)435 ifeq ($(KBUILD_TARGET),darwin) 436 436 # Qt/Mac v3.3.x requires patching to work for us. 437 437 VBOX_WITH_QTGUI= 438 438 endif 439 ifn1of ($( BUILD_TARGET),linux solaris)439 ifn1of ($(KBUILD_TARGET),linux solaris) 440 440 # Only the Linux, Solaris installers are public 441 441 VBOX_WITH_INSTALLER= … … 501 501 # Image and object format config. 502 502 # 503 if1of ($( BUILD_TARGET), linux l4 freebsd netbsd openbsd solaris)503 if1of ($(KBUILD_TARGET), linux l4 freebsd netbsd openbsd solaris) 504 504 VBOX_LDR_FMT = elf 505 505 endif 506 ifeq ($( BUILD_TARGET),darwin)506 ifeq ($(KBUILD_TARGET),darwin) 507 507 VBOX_LDR_FMT = macho 508 508 endif 509 ifeq ($( BUILD_TARGET),os2)509 ifeq ($(KBUILD_TARGET),os2) 510 510 VBOX_LDR_FMT = lx 511 511 VBOX_LDR_FMT32 = lx … … 513 513 DONT_USE_YASM = 1 # yasm doesn't implement omf yet. 514 514 endif 515 ifeq ($( BUILD_TARGET),win)515 ifeq ($(KBUILD_TARGET),win) 516 516 VBOX_LDR_FMT = pe 517 517 endif … … 526 526 # 527 527 ifeq ($(VBOX_LDR_FMT),elf) 528 ifeq ($( BUILD_TARGET_ARCH),x86)528 ifeq ($(KBUILD_TARGET_ARCH),x86) 529 529 VBOX_ASFLAGS_FMT = -f elf32 -DASM_FORMAT_ELF 530 530 else … … 542 542 endif 543 543 ifeq ($(VBOX_LDR_FMT),pe) 544 ifeq ($( BUILD_TARGET_ARCH),x86)544 ifeq ($(KBUILD_TARGET_ARCH),x86) 545 545 VBOX_ASFLAGS_FMT = -f win32 -DASM_FORMAT_PE 546 546 else … … 611 611 # 612 612 ifndef VBOX_GCC_TOOL 613 ifeq ($( BUILD_TARGET),win)613 ifeq ($(KBUILD_TARGET),win) 614 614 VBOX_GCC_TOOL := MINGW32 615 615 TOOL_MINGW32_CFLAGS := $(UNDEFINED) # override -g 616 else ifeq ($( BUILD_TARGET),os2)616 else ifeq ($(KBUILD_TARGET),os2) 617 617 VBOX_GCC_TOOL := GXX3OMF 618 else ifeq ($( BUILD_TARGET),darwin)618 else ifeq ($(KBUILD_TARGET),darwin) 619 619 VBOX_GCC_TOOL := GXX4MACHO 620 else ifeq ($( BUILD_TARGET),solaris)620 else ifeq ($(KBUILD_TARGET),solaris) 621 621 VBOX_GCC_TOOL := GXX3PLAIN 622 622 VBOX_GCC32_TOOL := GXX3PLAIN 623 623 else 624 624 VBOX_GCC_TOOL := GXX3 625 ifeq ($( BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH),x86.amd64) ## @todo mixing target/host here!625 ifeq ($(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH),x86.amd64) ## @todo mixing target/host here! 626 626 VBOX_GCC_TOOL := GXX32 627 627 VBOX_WITH_VBOXDRV= 628 628 VBOX_WITH_LINUX_ADDITIONS= 629 629 VBOX_WITH_WIN32_ADDITIONS= 630 else ifeq ($( BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH),amd64.x86)630 else ifeq ($(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH),amd64.x86) 631 631 VBOX_GCC_TOOL := GXX64 632 632 VBOX_WITH_VBOXDRV= … … 637 637 endif 638 638 ifndef VBOX_GCC32_TOOL 639 ifeq ($( BUILD_TARGET_ARCH),x86)639 ifeq ($(KBUILD_TARGET_ARCH),x86) 640 640 VBOX_GCC32_TOOL := $(VBOX_GCC_TOOL) 641 else ifeq ($( BUILD_TARGET),win)641 else ifeq ($(KBUILD_TARGET),win) 642 642 VBOX_GCC32_TOOL := MINGW32 643 643 else … … 650 650 # 651 651 ifndef VBOX_VCC_TOOL 652 ifeq ($( BUILD_TARGET).$(BUILD_TARGET_ARCH),win.amd64)652 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64) 653 653 VBOX_USE_VCC80 ?= 1 # Enforce VCC80 when targetting AMD64. 654 654 endif 655 655 ifdef VBOX_USE_VCC80 656 ifeq ($( BUILD_TARGET_ARCH),x86)656 ifeq ($(KBUILD_TARGET_ARCH),x86) 657 657 VBOX_VCC_TOOL := VCC80X86 658 658 else … … 671 671 PATH_DEVTOOLS := $(abspath $(PATH_DEVTOOLS)) 672 672 PATH_DEVTOOLS_BLD ?= $(PATH_DEVTOOLS)/$(KBUILD_HOST).$(KBUILD_HOST_ARCH) 673 PATH_DEVTOOLS_TRG ?= $(PATH_DEVTOOLS)/$( BUILD_TARGET).$(BUILD_TARGET_ARCH)673 PATH_DEVTOOLS_TRG ?= $(PATH_DEVTOOLS)/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) 674 674 675 675 ## @todo Remove the default tool crap here! … … 687 687 # 688 688 ifdef L4_DIR 689 ifeq ($( BUILD_TARGET),l4)689 ifeq ($(KBUILD_TARGET),l4) 690 690 L4_API ?= l4v2 691 L4_ARCH ?= $( BUILD_TARGET_ARCH)691 L4_ARCH ?= $(KBUILD_TARGET_ARCH) 692 692 ifeq ($(L4_ARCH),x86) 693 693 L4_CPU ?= 586 … … 726 726 727 727 # Produce debugging information that the Fiasco kernel debugger can read. 728 ifeq ($( BUILD_TARGET).$(BUILD_TYPE),l4.debug)728 ifeq ($(KBUILD_TARGET).$(BUILD_TYPE),l4.debug) 729 729 DEBUG_L4 = -gstabs+ 730 730 endif … … 812 812 # ARCH_BITS_DEFS. 813 813 # 814 ifeq ($( BUILD_TARGET_ARCH),amd64)814 ifeq ($(KBUILD_TARGET_ARCH),amd64) 815 815 ARCH_BITS_DEFS := HC_ARCH_BITS=64 GC_ARCH_BITS=32 816 else ifeq ($( BUILD_TARGET_ARCH),x86)816 else ifeq ($(KBUILD_TARGET_ARCH),x86) 817 817 ARCH_BITS_DEFS := HC_ARCH_BITS=32 GC_ARCH_BITS=32 818 818 else 819 error BUILD_TARGET_ARCH=$( BUILD_TARGET_ARCH)819 error BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH) 820 820 endif 821 821 … … 823 823 # Add the output dir(s) to the dynamic loader search path. 824 824 # 825 if1of ($( BUILD_TARGET), linux l4 freebsd netbsd openbsd solaris)825 if1of ($(KBUILD_TARGET), linux l4 freebsd netbsd openbsd solaris) 826 826 export LD_LIBRARY_PATH:=$(PATH_BIN):$(PATH_LIB):$(LD_LIBRARY_PATH) 827 827 endif 828 ifeq ($( BUILD_TARGET),os2)828 ifeq ($(KBUILD_TARGET),os2) 829 829 #fixme! export BEGINLIBPATH:=$(PATH_BIN);$(PATH_LIB);$(BEGINLIBPATH) 830 830 endif 831 ifeq ($( BUILD_TARGET),win)831 ifeq ($(KBUILD_TARGET),win) 832 832 export PATH:=$(PATH_BIN);$(PATH_LIB);$(PATH) 833 833 endif … … 836 836 # Common libraries and tools. 837 837 # 838 ifeq ($( BUILD_TARGET),darwin)838 ifeq ($(KBUILD_TARGET),darwin) 839 839 LIB_RUNTIME = $(PATH_BIN)/VBoxRT.dylib 840 840 LIB_RUNTIME_EF = #$(PATH_LIB)/RuntimeEFCPP.a … … 847 847 LIB_SETTINGS = $(PATH_BIN)/VBoxSettings.dylib 848 848 endif 849 ifeq ($( BUILD_TARGET),l4)849 ifeq ($(KBUILD_TARGET),l4) 850 850 LIB_RUNTIME = $(PATH_BIN)/VBoxRT.s.so 851 851 LIB_RUNTIME_EF = #$(PATH_LIB)/RuntimeEFCPP.a … … 858 858 LIB_SETTINGS = $(PATH_BIN)/VBoxSettings.s.so 859 859 endif 860 if1of ($( BUILD_TARGET), linux freebsd netbsd openbsd solaris)860 if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd solaris) 861 861 LIB_RUNTIME = $(PATH_BIN)/VBoxRT.so 862 862 LIB_RUNTIME_EF = $(PATH_LIB)/RuntimeEFCPP.a … … 869 869 LIB_SETTINGS = $(PATH_BIN)/VBoxSettings.so 870 870 endif 871 ifeq ($( BUILD_TARGET),os2)871 ifeq ($(KBUILD_TARGET),os2) 872 872 LIB_RUNTIME = $(PATH_BIN)/VBoxRT.dll 873 873 LIB_RUNTIME_EF = #$(PATH_LIB)/RuntimeEFCPP.a … … 881 881 OBJ_SYS0 = $(PATH_OBJ)/src/VBox/Runtime/RuntimeR0/os2/sys0.obj 882 882 endif 883 ifeq ($( BUILD_TARGET),win)883 ifeq ($(KBUILD_TARGET),win) 884 884 LIB_RUNTIME = $(PATH_LIB)/VBoxRT.lib 885 885 LIB_RUNTIME_EF = #$(PATH_LIB)/RuntimeEFCPP.lib … … 910 910 endif 911 911 ifeq ($(VBOX_XCURSOR_LIBS),) 912 ifeq ($( BUILD_TARGET),solaris)912 ifeq ($(KBUILD_TARGET),solaris) 913 913 VBOX_XCURSOR_LIBS := $(lastword $(wildcard $(PATH_DEVTOOLS_TRG)/libXcursor/*/lib/libXcursor.a)) 914 914 ifneq ($(VBOX_XCURSOR_LIBS),) … … 966 966 # Windows install tools... 967 967 VBOX_PATH_WIX ?= $(PATH_DEVTOOLS)/win.x86/wix/v2.0.4611.0 968 VBOX_PATH_DIFX ?= $(PATH_DEVTOOLS)/win.$( BUILD_TARGET_ARCH)/DIFx/v2.1968 VBOX_PATH_DIFX ?= $(PATH_DEVTOOLS)/win.$(KBUILD_TARGET_ARCH)/DIFx/v2.1 969 969 970 970 # We need to export YASM for OSE, but since it was converted to .zip we need to … … 975 975 976 976 # XPCOM setup for all but win32. 977 ifneq ($( BUILD_TARGET),win)977 ifneq ($(KBUILD_TARGET),win) 978 978 VBOX_WITH_XPCOM = 1 979 979 VBOX_XPIDL ?= $(VBOX_PATH_SDK)/bin/xpidl$(HOSTSUFF_EXE) … … 986 986 $(VBOX_PATH_SDK)/include/xpcom/xpcom \ 987 987 $(VBOX_PATH_SDK)/include/xpcom/ipcd 988 ifneq ($( BUILD_TARGET),os2)988 ifneq ($(KBUILD_TARGET),os2) 989 989 # libIDL-config (for xpcom18a4) 990 990 ifeq ($(origin VBOX_LIBIDL_CONFIG),undefined) … … 994 994 endif 995 995 996 ifeq ($( BUILD_TARGET),os2)996 ifeq ($(KBUILD_TARGET),os2) 997 997 # search DLLs in the EXE directory first 998 998 VBOX_XPIDL := BEGINLIBPATH="$(dir $(VBOX_XPIDL));$$BEGINLIBPATH" $(VBOX_XPIDL) … … 1001 1001 1002 1002 # The X11 LIBPATH. (The amd64 hack is for RHEL4.) 1003 ifeq ($( BUILD_TARGET_ARCH),amd64)1003 ifeq ($(KBUILD_TARGET_ARCH),amd64) 1004 1004 VBOX_LIBPATH_X11 ?= /usr/X11R6/lib64 /usr/X11R6/lib 1005 1005 else … … 1046 1046 # VBOX_GCC_RPATH_OPT - Different GCC/LD combinations needs different options. 1047 1047 VBOX_ORIGIN = $$ORIGIN 1048 ifeq ($( BUILD_TARGET),solaris)1048 ifeq ($(KBUILD_TARGET),solaris) 1049 1049 VBOX_GCC_RPATH_OPT = -R 1050 1050 else … … 1139 1139 $(APPEND) '$@' 'VBOX_GCC_mtune-generic ?= $(call VBOX_GCC_CHECK_CC,-mtune=generic,)' 1140 1140 $(APPEND) '$@' 'VBOX_LD_as_needed ?= $(call VBOX_GCC_CHECK_LD,--as-needed,)' 1141 ifneq ($( BUILD_TARGET),l4)1141 ifneq ($(KBUILD_TARGET),l4) 1142 1142 # Set default attribute for ELF and MACH-O symbols to ``hidden'' to reduce the number 1143 1143 # of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4. … … 1148 1148 $(APPEND) '$@' 'endif' 1149 1149 endif 1150 ifneq ($( BUILD_TARGET),l4)1150 ifneq ($(KBUILD_TARGET),l4) 1151 1151 # Set default attribute for inline functions to ``hidden'' to reduce the number 1152 1152 # of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4. … … 1227 1227 VBOX_MAKE_CAT64_FN ?= $(call VBOX_MAKE_CAT_HLP_FN,$(1),$(2),XP_X64;Server2003_X64;Vista_X64) 1228 1228 VBOX_MAKE_CAT32_FN ?= $(call VBOX_MAKE_CAT_HLP_FN,$(1),$(2),2000;XP_X86;Server2003_X86;Vista_X86) 1229 ifeq ($( BUILD_TARGET_ARCH),x86)1229 ifeq ($(KBUILD_TARGET_ARCH),x86) 1230 1230 VBOX_MAKE_CAT_FN ?= $(call VBOX_MAKE_CAT32_FN,$(1),$(2)) 1231 1231 else … … 1249 1249 # Windows .inf editing. 1250 1250 # 1251 ifeq ($( BUILD_TARGET_ARCH),x86)1251 ifeq ($(KBUILD_TARGET_ARCH),x86) 1252 1252 VBOX_EDIT_INF_FN = $(call VBOX_EDIT_INF32_FN,$(1),$(2)) 1253 1253 else … … 1267 1267 # 1268 1268 VBOX_PREF_LIB = 1269 if1of ($( BUILD_TARGET),win os2)1269 if1of ($(KBUILD_TARGET),win os2) 1270 1270 VBOX_SUFF_LIB = .lib 1271 1271 else … … 1273 1273 endif 1274 1274 VBOX_SUFF_DLL = $(SUFF_DLL) 1275 ifeq ($( BUILD_TARGET),os2) # GXX3OMF produces out .o at the moment.1275 ifeq ($(KBUILD_TARGET),os2) # GXX3OMF produces out .o at the moment. 1276 1276 VBOX_SUFF_OBJ = .o 1277 1277 else … … 1285 1285 # 1286 1286 SDK_VBOX_LIBXML2 = . 1287 #if1of ($( BUILD_TARGET),win os2 solaris)1287 #if1of ($(KBUILD_TARGET),win os2 solaris) 1288 1288 SDK_VBOX_LIBXML2_INCS ?= $(PATH_ROOT)/src/libs/libxml2-2.6.30/include 1289 1289 SDK_VBOX_LIBXML2_LIBS ?= $(PATH_LIB)/VBox-libxml2$(VBOX_SUFF_LIB) 1290 1290 SDK_VBOX_LIBXML2_DEFS ?= LIBXML_STATIC 1291 1291 SDK_VBOX_LIBXML2_DEFS.win += WIN32 _WINDOWS _MBCS 1292 #else if1of ($( BUILD_TARGET),linux)1292 #else if1of ($(KBUILD_TARGET),linux) 1293 1293 # SDK_VBOX_LIBXML2_INCS ?= 1294 1294 # SDK_VBOX_LIBXML2_LIBS ?= … … 1302 1302 1303 1303 SDK_VBOX_LIBXSLT = . 1304 #if1of ($( BUILD_TARGET),win os2 solaris)1304 #if1of ($(KBUILD_TARGET),win os2 solaris) 1305 1305 SDK_VBOX_LIBXSLT_INCS ?= $(PATH_ROOT)/src/libs/libxslt-1.1.22 1306 1306 SDK_VBOX_LIBXSLT_LIBS ?= $(PATH_LIB)/VBox-libxslt$(VBOX_SUFF_LIB) 1307 1307 SDK_VBOX_LIBXSLT_DEFS ?= 1308 1308 SDK_VBOX_LIBXSLT_DEFS.win += WIN32 _WINDOWS _MBCS _REENTRANT 1309 #else if1of ($( BUILD_TARGET),linux)1309 #else if1of ($(KBUILD_TARGET),linux) 1310 1310 # SDK_VBOX_LIBXSLT_INCS ?= 1311 1311 # SDK_VBOX_LIBXSLT_LIBS ?= … … 1323 1323 1324 1324 SDK_VBOX_ZLIB = . 1325 if1of ($( BUILD_TARGET), win os2)1325 if1of ($(KBUILD_TARGET), win os2) 1326 1326 SDK_VBOX_ZLIB_INCS ?= $(PATH_ROOT)/src/libs/zlib-1.2.1 1327 1327 SDK_VBOX_ZLIB_LIBS ?= $(PATH_LIB)/VBox-zlib$(VBOX_SUFF_LIB) … … 1336 1336 1337 1337 SDK_VBOX_FFMPEG = . 1338 if1of ($( BUILD_TARGET), win os2 darwin)1338 if1of ($(KBUILD_TARGET), win os2 darwin) 1339 1339 SDK_VBOX_FFMPEG_INCS ?= \ 1340 1340 $(PATH_ROOT)/src/libs/ffmpeg-20060710/libavutil \ 1341 1341 $(PATH_ROOT)/src/libs/ffmpeg-20060710/libavcodec \ 1342 1342 $(PATH_ROOT)/src/libs/ffmpeg-20060710/libavformat 1343 ifeq ($( BUILD_TARGET),win)1343 ifeq ($(KBUILD_TARGET),win) 1344 1344 ## @todo Michael! Where is $(PATH_LIB)/VBoxFFmpegImp$(VBOX_SUFF_LIB) supposed to come from? 1345 1345 #SDK_VBOX_FFMPEG_LIBS ?= $(PATH_LIB)/VBoxFFmpeg.a … … 1365 1365 # 1366 1366 ## @todo convert this into SDK and integrate the Qt stuff into kBuild. 1367 ifeq ($( BUILD_TARGET),win)1367 ifeq ($(KBUILD_TARGET),win) 1368 1368 VBOX_PATH_QT ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v3.*))) 1369 1369 VBOX_DLL_QT ?= $(firstword $(wildcard $(VBOX_PATH_QT)/bin/VBoxQt3*.dll) \ … … 1384 1384 $(wildcard $(VBOX_PATH_QT)/lib/dynamic/qtmain.lib)) 1385 1385 QTDIR ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_BLD)/qt/v3.*))) 1386 else ifeq ($( BUILD_TARGET),os2)1386 else ifeq ($(KBUILD_TARGET),os2) 1387 1387 QTDIR ?= $(PATH_DEVTOOLS_TRG)/qt/v3.3.1 1388 1388 VBOX_PATH_QT ?= $(QTDIR) … … 1391 1391 LIB_QT_PRL ?= $(lastword $(sort $(wildcard $(VBOX_PATH_QT)/lib/*qt*.prl))) 1392 1392 QTDIR := $(VBOX_PATH_QT) 1393 else ifeq ($( BUILD_TARGET),darwin)1393 else ifeq ($(KBUILD_TARGET),darwin) 1394 1394 ifndef VBOX_PATH_QT 1395 1395 VBOX_PATH_QT := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v3.*))) … … 1435 1435 LIB_QT ?= qt-mt 1436 1436 endif 1437 ifeq ($(KBUILD_HOST),$( BUILD_TARGET))1437 ifeq ($(KBUILD_HOST),$(KBUILD_TARGET)) 1438 1438 VBOX_PATH_QT_HOST ?= $(VBOX_PATH_QT) 1439 1439 else … … 1445 1445 VBOX_LRELEASE ?= $(VBOX_PATH_QT_HOST)/bin/lrelease$(HOSTSUFF_EXE) 1446 1446 1447 ifeq ($( BUILD_TARGET),os2)1447 ifeq ($(KBUILD_TARGET),os2) 1448 1448 # search DLLs in the EXE directory first (unless VBOX_DLL_QT is set) 1449 1449 VBOX_DLL_QT_PATH := $(dir $(VBOX_DLL_QT)) … … 1458 1458 # The linux kernel headers(/sources). 1459 1459 # 1460 if1of ($( BUILD_TARGET), linux)1460 if1of ($(KBUILD_TARGET), linux) 1461 1461 ifeq ($(origin VBOX_LINUX_SRC),undefined) 1462 1462 ifneq ($(wildcard /lib/modules/$(shell uname -r)/build/include/linux/autoconf.h),) … … 1477 1477 kernelpath := $(VBOX_LINUX_SRC) 1478 1478 endif 1479 ifeq ($( BUILD_TARGET_ARCH),x86)1479 ifeq ($(KBUILD_TARGET_ARCH),x86) 1480 1480 VBOX_LINUX_INCS += $(kernelpath)/include/asm-i386/mach-default \ 1481 1481 $(kernelpath)/include/asm-x86/mach-default … … 1520 1520 TEMPLATE_VBOXGC_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC32_Wno-variadic-macros) -pipe -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) 1521 1521 TEMPLATE_VBOXGC_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC32_Wno-variadic-macros) -pipe -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) 1522 ifeq ($( BUILD_TARGET),solaris)1522 ifeq ($(KBUILD_TARGET),solaris) 1523 1523 TEMPLATE_VBOXGC_LDFLAGS = -r 1524 1524 else … … 1528 1528 TEMPLATE_VBOXGC_LDFLAGS.release = $(if $(VBOX_DO_STRIP_MODULES),-S,) 1529 1529 endif 1530 ifn1of ($( BUILD_TARGET), solaris freebsd)1530 ifn1of ($(KBUILD_TARGET), solaris freebsd) 1531 1531 TEMPLATE_VBOXGC_LIBS = \ 1532 1532 $(VBOX_GCC32_LIBGCC) # instricts … … 1623 1623 TEMPLATE_VBOXR0_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables -ffreestanding 1624 1624 TEMPLATE_VBOXR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables 1625 ifeq ($( BUILD_TARGET),solaris)1625 ifeq ($(KBUILD_TARGET),solaris) 1626 1626 TEMPLATE_VBOXR0_LDFLAGS = -r 1627 1627 else … … 1631 1631 TEMPLATE_VBOXR0_LDFLAGS.release = $(if $(VBOX_DO_STRIP_MODULES),-S,) 1632 1632 endif 1633 ifn1of ($( BUILD_TARGET),solaris freebsd)1633 ifn1of ($(KBUILD_TARGET),solaris freebsd) 1634 1634 TEMPLATE_VBOXR0_LIBS = \ 1635 1635 $(VBOX_GCC_LIBGCC) # instricts … … 1665 1665 TEMPLATE_VBOXR0DRV_DEFS = IN_RING0 IN_RT_R0 $(ARCH_BITS_DEFS) 1666 1666 1667 ifeq ($( BUILD_TARGET),win)1667 ifeq ($(KBUILD_TARGET),win) 1668 1668 TEMPLATE_VBOXR0DRV_TOOL = $(VBOX_VCC_TOOL) 1669 1669 TEMPLATE_VBOXR0DRV_RCDEFS = \ … … 1688 1688 endif 1689 1689 1690 ifeq ($( BUILD_TARGET),linux)1690 ifeq ($(KBUILD_TARGET),linux) 1691 1691 TEMPLATE_VBOXR0DRV_TOOL = $(VBOX_GCC_TOOL) 1692 1692 TEMPLATE_VBOXR0DRV_DEFS = __KERNEL__ MODULE IN_RING0 IN_RT_R0 … … 1699 1699 -fno-reorder-blocks -ffreestanding -fno-asynchronous-unwind-tables -funit-at-a-time \ 1700 1700 -Wno-sign-compare -Wdeclaration-after-statement 1701 TEMPLATE_VBOXR0DRV_CXXFLAGS = $(filter-out -Wstrict-prototypes -Wno-pointer-sign -ffreestanding -Wdeclaration-after-statement,$(TEMPLATE_VBOXR0DRV_CFLAGS) $(TEMPLATE_VBOXR0DRV_CFLAGS.$( BUILD_TARGET_ARCH))) -fno-exceptions -fno-rtti1701 TEMPLATE_VBOXR0DRV_CXXFLAGS = $(filter-out -Wstrict-prototypes -Wno-pointer-sign -ffreestanding -Wdeclaration-after-statement,$(TEMPLATE_VBOXR0DRV_CFLAGS) $(TEMPLATE_VBOXR0DRV_CFLAGS.$(KBUILD_TARGET_ARCH))) -fno-exceptions -fno-rtti 1702 1702 ifndef VBOX_LINUX_VERSION_2_4 1703 1703 # 2.6 … … 1712 1712 endif 1713 1713 1714 ifeq ($( BUILD_TARGET),os2)1714 ifeq ($(KBUILD_TARGET),os2) 1715 1715 TEMPLATE_VBOXR0DRV_TOOL = GXX3OMF 1716 1716 TEMPLATE_VBOXR0DRV_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs $(VBOX_GCC_Wno-variadic-macros) -pipe $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-rtti -fno-exceptions … … 1721 1721 endif 1722 1722 1723 ifeq ($( BUILD_TARGET),darwin)1723 ifeq ($(KBUILD_TARGET),darwin) 1724 1724 TEMPLATE_VBOXR0DRV_TOOL = GXX4MACHO 1725 1725 TEMPLATE_VBOXR0DRV_DEFS += KERNEL KERNEL_PRIVATE DRIVER_PRIVATE APPLE NeXT … … 1746 1746 endif 1747 1747 1748 ifeq ($( BUILD_TARGET),solaris)1748 ifeq ($(KBUILD_TARGET),solaris) 1749 1749 ## The Solaris /usr/platform/i86pc/include and /usr/include directories. 1750 1750 VBOX_SOLARIS_SYS_INCS ?= /usr/platform/i86pc/include /usr/include … … 1768 1768 endif # Solaris 1769 1769 1770 ifeq ($( BUILD_TARGET),freebsd)1770 ifeq ($(KBUILD_TARGET),freebsd) 1771 1771 # x86 FreeBSD: 1772 1772 # cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE \ … … 1851 1851 TEMPLATE_VBOXR3EXE_DEFS = IN_RING3 $(ARCH_BITS_DEFS) 1852 1852 TEMPLATE_VBOXR3EXE_LIBS.kprofile = $(LIB_KPROFILE) 1853 ifeq ($( BUILD_TARGET),win)1853 ifeq ($(KBUILD_TARGET),win) 1854 1854 TEMPLATE_VBOXR3EXE_TOOL = $(VBOX_VCC_TOOL) 1855 1855 TEMPLATE_VBOXR3EXE_RCDEFS = \ … … 1914 1914 -Wl,--rpath-link,$(L4_LIBDIR) 1915 1915 TEMPLATE_VBOXR3EXE_LDFLAGS.linux = -Wl,-z,noexecstack $(VBOX_LD_as_needed) 1916 ifeq ($( BUILD_TARGET),linux)1916 ifeq ($(KBUILD_TARGET),linux) 1917 1917 TEMPLATE_VBOXR3EXE_LIBS = pthread m rt dl 1918 else ifeq ($( BUILD_TARGET),l4)1918 else ifeq ($(KBUILD_TARGET),l4) 1919 1919 TEMPLATE_VBOXR3EXE_LIBS = \ 1920 1920 $(L4_LIBDIR)/libvboxserver.s.so \ … … 1923 1923 $(L4_LIBDIR)/libdl.s.so \ 1924 1924 $(L4_LIBDIR)/libuc.0.s.so 1925 else ifeq ($( BUILD_TARGET),os2)1925 else ifeq ($(KBUILD_TARGET),os2) 1926 1926 TEMPLATE_VBOXR3EXE_TOOL = GXX3OMF 1927 1927 TEMPLATE_VBOXR3EXE_LIBS = socket iconv 1928 else ifeq ($( BUILD_TARGET),darwin)1928 else ifeq ($(KBUILD_TARGET),darwin) 1929 1929 TEMPLATE_VBOXR3EXE_TOOL = GXX4MACHO 1930 1930 TEMPLATE_VBOXR3EXE_LIBS = 1931 1931 TEMPLATE_VBOXR3EXE_LDFLAGS = -read_only_relocs suppress 1932 else if1of ($( BUILD_TARGET),freebsd netbsd openbsd)1932 else if1of ($(KBUILD_TARGET),freebsd netbsd openbsd) 1933 1933 TEMPLATE_VBOXR3EXE_TOOL = GXX3 1934 1934 TEMPLATE_VBOXR3EXE_LIBS = pthread … … 1937 1937 /usr/X11R6/include \ 1938 1938 /usr/local/include 1939 else ifeq ($( BUILD_TARGET),solaris)1939 else ifeq ($(KBUILD_TARGET),solaris) 1940 1940 TEMPLATE_VBOXR3EXE_TOOL = GXX3PLAIN 1941 1941 TEMPLATE_VBOXR3EXE_DEFS += LIBICONV_PLUG _REENTRANT # Avoid the GNU libiconv, for now at least. 1942 1942 TEMPLATE_VBOXR3EXE_LIBS = rt socket 1943 1943 else 1944 $(warning Warning: VBOX Build: Target $( BUILD_TARGET) is not officially supported!)1944 $(warning Warning: VBOX Build: Target $(KBUILD_TARGET) is not officially supported!) 1945 1945 TEMPLATE_VBOXR3EXE_CXXFLAGS.profile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.release) 1946 1946 TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.krelease) … … 1960 1960 TEMPLATE_VBOXR3_DEFS.l4 = $(TEMPLATE_VBOXR3EXE_DEFS.l4) __PIC__ 1961 1961 TEMPLATE_VBOXR3_DEFS.darwin = $(TEMPLATE_VBOXR3EXE_DEFS.darwin) PIC 1962 ifeq ($(filter-out solaris.x86 %.amd64,$( BUILD_TARGET).$(BUILD_TARGET_ARCH)),)1963 ifneq ($( BUILD_TARGET),win)1962 ifeq ($(filter-out solaris.x86 %.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) 1963 ifneq ($(KBUILD_TARGET),win) 1964 1964 TEMPLATE_VBOXR3_DEFS = $(TEMPLATE_VBOXR3EXE_DEFS) PIC 1965 1965 TEMPLATE_VBOXR3_CFLAGS = $(TEMPLATE_VBOXR3EXE_CFLAGS) -fPIC … … 1980 1980 TEMPLATE_VBOXR3TSTEXE_LDFLAGS= '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)/..' $(TEMPLATE_VBOXR3EXE_LDFLAGS) 1981 1981 endif 1982 ifeq ($( BUILD_TARGET),win)1982 ifeq ($(KBUILD_TARGET),win) 1983 1983 ifdef VBOX_SIGNING_MODE 1984 1984 TEMPLATE_VBOXR3TSTEXE_POST_CMDS = … … 2002 2002 TEMPLATE_VBOXR3NPEXE = VBox Ring 3 Non-pedantic 2003 2003 TEMPLATE_VBOXR3NPEXE_EXTENDS = VBOXR3EXE 2004 ifneq ($( BUILD_TARGET),win) # (only gcc)2004 ifneq ($(KBUILD_TARGET),win) # (only gcc) 2005 2005 TEMPLATE_VBOXR3NPEXE_TOOL = $(VBOX_GCC_TOOL) 2006 2006 TEMPLATE_VBOXR3NPEXE_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_VBOXR3EXE_CXXFLAGS)) … … 2020 2020 -nostdlib 2021 2021 TEMPLATE_VBOXR3NP_DEFS.l4 = $(TEMPLATE_VBOXR3NPEXE_DEFS.l4) __PIC__ 2022 ifeq ($(filter-out solaris.x86 %.amd64,$( BUILD_TARGET).$(BUILD_TARGET_ARCH)),)2023 ifneq ($( BUILD_TARGET),win)2022 ifeq ($(filter-out solaris.x86 %.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) 2023 ifneq ($(KBUILD_TARGET),win) 2024 2024 TEMPLATE_VBOXR3NP_DEFS = $(TEMPLATE_VBOXR3NPEXE_DEFS) PIC 2025 2025 TEMPLATE_VBOXR3NP_CFLAGS = $(TEMPLATE_VBOXR3NPEXE_CFLAGS) -fPIC … … 2049 2049 endif 2050 2050 TEMPLATE_VBOXNOCRTGCC_CXXFLAGS = $(TEMPLATE_VBOXNOCRTGCC_CFLAGS) 2051 TEMPLATE_VBOXNOCRTGCC_CXXFLAGS.$( BUILD_TARGET) = $(TEMPLATE_VBOXNOCRTGCC_CFLAGS.$(BUILD_TARGET))2052 TEMPLATE_VBOXNOCRTGCC_CXXFLAGS.$( BUILD_TARGET_ARCH) = $(TEMPLATE_VBOXNOCRTGCC_CFLAGS.$(BUILD_TARGET_ARCH))2051 TEMPLATE_VBOXNOCRTGCC_CXXFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_VBOXNOCRTGCC_CFLAGS.$(KBUILD_TARGET)) 2052 TEMPLATE_VBOXNOCRTGCC_CXXFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_VBOXNOCRTGCC_CFLAGS.$(KBUILD_TARGET_ARCH)) 2053 2053 TEMPLATE_VBOXNOCRTGCC_INCS = $(PATH_ROOT)/include/iprt/nocrt 2054 2054 2055 ifeq ($( BUILD_TARGET).$(BUILD_TARGET_ARCH),win.amd64)2055 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64) 2056 2056 # cross compile to 64-bit ELF (linux). 2057 2057 TEMPLATE_VBOXNOCRTGCC_TOOL = XGCCAMD64LINUX … … 2061 2061 TEMPLATE_VBOXNOCRTGCC_LDFLAGS = -nostdlib 2062 2062 2063 else ifeq ($( BUILD_TARGET).$(BUILD_TARGET_ARCH),win.x86)2063 else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86) 2064 2064 # Use the default GCC (MinGW) with the Microsoft linker. 2065 2065 # (Drop all '-g' options as we're unable to strip the debug info.) … … 2080 2080 TEMPLATE_VBOXNOCRTGCC_CFLAGS += $(VBOX_GCC_fno-stack-protector) 2081 2081 TEMPLATE_VBOXNOCRTGCC_CXXFLAGS += $(VBOX_GCC_fno-stack-protector) 2082 ifeq ($( BUILD_TARGET_ARCH),amd64)2082 ifeq ($(KBUILD_TARGET_ARCH),amd64) 2083 2083 # in 64-bit mode we'll build a sys-module (VBoxREM2). 2084 if1of ($( BUILD_TARGET),darwin solaris)2084 if1of ($(KBUILD_TARGET),darwin solaris) 2085 2085 TEMPLATE_VBOXNOCRTGCC_LDFLAGS.solaris= -64 -r 2086 2086 else … … 2089 2089 else # x86: 2090 2090 TEMPLATE_VBOXNOCRTGCC_LDFLAGS = -nostdlib 2091 ifn1of ($( BUILD_TARGET), os2 darwin solaris)2091 ifn1of ($(KBUILD_TARGET), os2 darwin solaris) 2092 2092 TEMPLATE_VBOXNOCRTGCC_LDFLAGS += -Wl,--no-undefined 2093 2093 endif … … 2103 2103 TEMPLATE_VBOXNOCRTGAS_EXTENDS = VBOXNOCRTGCC 2104 2104 TEMPLATE_VBOXNOCRTGAS_ASTOOL = $(TEMPLATE_VBOXNOCRTGCC_TOOL) 2105 ifeq ($( BUILD_TARGET).$(BUILD_TARGET_ARCH),win.x86)2105 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86) 2106 2106 TEMPLATE_VBOXNOCRTGAS_ASFLAGS = -s 2107 2107 else … … 2126 2126 $(VBOX_PATH_SDK)/include 2127 2127 2128 ifeq ($( BUILD_TARGET),win)2128 ifeq ($(KBUILD_TARGET),win) 2129 2129 TEMPLATE_VBOXMAINEXE_SDKS = WINPSDK W2K3DDK 2130 2130 ifdef VBOX_USE_VCC80 … … 2172 2172 TEMPLATE_VBOXMAINEXE_LDFLAGS.x86 = -m32 2173 2173 TEMPLATE_VBOXMAINEXE_LDFLAGS.amd64 = -m64 2174 ifeq ($( BUILD_TARGET),linux)2174 ifeq ($(KBUILD_TARGET),linux) 2175 2175 TEMPLATE_VBOXMAINEXE_LIBS = pthread m rt $(LIB_RUNTIME) 2176 2176 TEMPLATE_VBOXMAINEXE_LDFLAGS.linux = $(VBOX_LD_as_needed) 2177 else ifeq ($( BUILD_TARGET),l4)2177 else ifeq ($(KBUILD_TARGET),l4) 2178 2178 TEMPLATE_VBOXMAINEXE_LIBS = $(LIB_RUNTIME) 2179 2179 # no libs as yet in l4 target - must be added later 2180 else ifeq ($( BUILD_TARGET),os2)2180 else ifeq ($(KBUILD_TARGET),os2) 2181 2181 TEMPLATE_VBOXMAINEXE_TOOL = GXX3OMF 2182 2182 TEMPLATE_VBOXMAINEXE_LIBS = $(LIB_RUNTIME) 2183 else ifeq ($( BUILD_TARGET),darwin)2183 else ifeq ($(KBUILD_TARGET),darwin) 2184 2184 TEMPLATE_VBOXMAINEXE_TOOL = GXX4MACHO 2185 2185 TEMPLATE_VBOXMAINEXE_LIBS = $(LIB_RUNTIME) 2186 2186 TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin = -bind_at_load -framework Carbon 2187 else if1of ($( BUILD_TARGET), freebsd netbsd openbsd)2187 else if1of ($(KBUILD_TARGET), freebsd netbsd openbsd) 2188 2188 TEMPLATE_VBOXMAINEXE_TOOL = GXX3 2189 2189 TEMPLATE_VBOXMAINEXE_LIBS = $(LIB_RUNTIME) 2190 else ifeq ($( BUILD_TARGET),solaris)2190 else ifeq ($(KBUILD_TARGET),solaris) 2191 2191 TEMPLATE_VBOXMAINEXE_TOOL = GXX3PLAIN 2192 2192 TEMPLATE_VBOXMAINEXE_DEFS += _REENTRANT 2193 2193 TEMPLATE_VBOXMAINEXE_LIBS = $(LIB_RUNTIME) rt 2194 2194 else 2195 $(warning Warning: VBOX Build: Target $( BUILD_TARGET) is not officially supported!)2195 $(warning Warning: VBOX Build: Target $(KBUILD_TARGET) is not officially supported!) 2196 2196 TEMPLATE_VBOXMAINEXE_LIBS = 2197 2197 endif … … 2223 2223 TEMPLATE_VBOXMAINDLL = VBox Main Component (shared library) 2224 2224 TEMPLATE_VBOXMAINDLL_EXTENDS = VBOXMAINEXE 2225 ifeq ($(filter-out solaris.x86 %.amd64,$( BUILD_TARGET).$(BUILD_TARGET_ARCH)),)2226 ifneq ($( BUILD_TARGET),win)2225 ifeq ($(filter-out solaris.x86 %.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) 2226 ifneq ($(KBUILD_TARGET),win) 2227 2227 TEMPLATE_VBOXMAINDLL_DEFS = PIC $(TEMPLATE_VBOXMAINEXE_DEFS) 2228 2228 TEMPLATE_VBOXMAINDLL_CFLAGS = -fPIC $(TEMPLATE_VBOXMAINEXE_CFLAGS) … … 2247 2247 TEMPLATE_VBOXMAINCLIENTEXE = VBox Main Client (executable) 2248 2248 TEMPLATE_VBOXMAINCLIENTEXE_EXTENDS = VBOXMAINEXE 2249 ifeq ($( BUILD_TARGET),win)2249 ifeq ($(KBUILD_TARGET),win) 2250 2250 TEMPLATE_VBOXMAINCLIENTEXE_LIBS.win = $(TEMPLATE_VBOXMAINEXE_LIBS.win) \ 2251 2251 $(PATH_SDK_WINPSDK_LIB)/User32.Lib \ … … 2271 2271 TEMPLATE_VBOXMAINCLIENTDLL = VBox MAIN Client (shared library) 2272 2272 TEMPLATE_VBOXMAINCLIENTDLL_EXTENDS = VBOXMAINCLIENTEXE 2273 ifeq ($(filter-out solaris.x86 %.amd64,$( BUILD_TARGET).$(BUILD_TARGET_ARCH)),)2274 ifneq ($( BUILD_TARGET),win)2273 ifeq ($(filter-out solaris.x86 %.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) 2274 ifneq ($(KBUILD_TARGET),win) 2275 2275 TEMPLATE_VBOXMAINCLIENTDLL_DEFS = PIC $(TEMPLATE_VBOXMAINCLIENTEXE_DEFS) 2276 2276 TEMPLATE_VBOXMAINCLIENTDLL_CFLAGS = -fPIC $(TEMPLATE_VBOXMAINCLIENTEXE_CFLAGS) … … 2291 2291 $(VBOX_PATH_QT)/include 2292 2292 2293 ifeq ($( BUILD_TARGET),win)2293 ifeq ($(KBUILD_TARGET),win) 2294 2294 # drag in library configuration (we need QMAKE_PRL_DEFINES) 2295 2295 ifneq ($(LIB_QT_PRL),) … … 2351 2351 $(LIB_VMM) 2352 2352 2353 ifeq ($( BUILD_TARGET_ARCH),amd64)2353 ifeq ($(KBUILD_TARGET_ARCH),amd64) 2354 2354 TEMPLATE_VBOXQTGUIEXE_LIBPATH = \ 2355 2355 $(VBOX_PATH_QT)/lib64 $(VBOX_PATH_QT)/lib … … 2359 2359 endif 2360 2360 2361 ifeq ($( BUILD_TARGET),linux)2361 ifeq ($(KBUILD_TARGET),linux) 2362 2362 TEMPLATE_VBOXQTGUIEXE_LDFLAGS += $(VBOX_LD_as_needed) 2363 else ifeq ($( BUILD_TARGET),darwin)2363 else ifeq ($(KBUILD_TARGET),darwin) 2364 2364 TEMPLATE_VBOXQTGUIEXE_LDFLAGS += -framework Carbon -framework QuickTime -bind_at_load 2365 2365 TEMPLATE_VBOXQTGUIEXE_LIBS += 2366 2366 TEMPLATE_VBOXQTGUIEXE_LIBPATH += 2367 else ifeq ($( BUILD_TARGET),os2)2367 else ifeq ($(KBUILD_TARGET),os2) 2368 2368 # drag in library configuration (we need QMAKE_PRL_DEFINES) 2369 2369 ifneq ($(LIB_QT_PRL),) … … 2384 2384 TEMPLATE_VBOXQTGUIEXE_LIBPATH += \ 2385 2385 $(VBOX_LIBPATH_X11) 2386 ifeq ($( BUILD_TARGET),freebsd)2386 ifeq ($(KBUILD_TARGET),freebsd) 2387 2387 TEMPLATE_VBOXQTGUIEXE_INCS += \ 2388 2388 /usr/include \ … … 2390 2390 /usr/local/include 2391 2391 endif 2392 ifeq ($( BUILD_TARGET),solaris)2392 ifeq ($(KBUILD_TARGET),solaris) 2393 2393 TEMPLATE_VBOXQTGUIEXE_LIBS += \ 2394 2394 rt socket nsl … … 2396 2396 endif 2397 2397 ifdef VBOX_WITH_ORIGIN 2398 ifeq ($( BUILD_TARGET),solaris)2398 ifeq ($(KBUILD_TARGET),solaris) 2399 2399 TEMPLATE_VBOXQTGUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN):$$(VBOX_ORIGIN)/qtgcc/lib' 2400 2400 else … … 2423 2423 TEMPLATE_VBOXQTGUI_EXTENDS = VBOXQTGUIEXE 2424 2424 TEMPLATE_VBOXQTGUI_LIBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBOXQTGUIEXE_LIBS)) 2425 ifeq ($( BUILD_TARGET),darwin)2425 ifeq ($(KBUILD_TARGET),darwin) 2426 2426 TEMPLATE_VBOXQTGUI_LDFLAGS = $(filter-out -framework Carbon -framework QuickTime -bind_at_load,$(TEMPLATE_VBOXQTGUIEXE_LDFLAGS)) 2427 2427 endif 2428 ifeq ($(filter-out solaris.x86 %.amd64,$( BUILD_TARGET).$(BUILD_TARGET_ARCH)),)2429 ifneq ($( BUILD_TARGET),win)2428 ifeq ($(filter-out solaris.x86 %.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) 2429 ifneq ($(KBUILD_TARGET),win) 2430 2430 TEMPLATE_VBOXQTGUI_DEFS = PIC $(TEMPLATE_VBOXQTGUIEXE_DEFS) 2431 2431 TEMPLATE_VBOXQTGUI_CFLAGS = -fPIC $(TEMPLATE_VBOXQTGUIEXE_CFLAGS) … … 2708 2708 # 2709 2709 TEMPLATE_VBOXGUESTR3EXE = VBox Guest Program 2710 ifeq ($( BUILD_TARGET),win) # quick hack2710 ifeq ($(KBUILD_TARGET),win) # quick hack 2711 2711 TEMPLATE_VBOXGUESTR3EXE_EXTENDS = VBOXW32GUESTR3 2712 2712 else … … 2723 2723 $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR3EXE_DEFS)) \ 2724 2724 HC_ARCH_BITS=32 GC_ARCH_BITS=32 2725 if1of ($( BUILD_TARGET),l4 linux) # As few libs as possible on linux.2725 if1of ($(KBUILD_TARGET),l4 linux) # As few libs as possible on linux. 2726 2726 TEMPLATE_VBOXGUESTR3EXE_LIBS = pthread rt m 2727 2727 endif 2728 ifeq ($( BUILD_TARGET),l4) # cross building linux on l4.2728 ifeq ($(KBUILD_TARGET),l4) # cross building linux on l4. 2729 2729 TEMPLATE_VBOXGUESTR3EXE_BLD_TRG = linux 2730 2730 TEMPLATE_VBOXGUESTR3EXE_DLLSUFF = .so … … 2738 2738 TEMPLATE_VBOXGUESTR3DLL_EXTENDS = VBOXGUESTR3EXE 2739 2739 ## @todo add a INSTFUN that separates dlls and libs. 2740 ifn1of ($( BUILD_TARGET), os2 win)2740 ifn1of ($(KBUILD_TARGET), os2 win) 2741 2741 TEMPLATE_VBOXGUESTR3DLL_DEFS = $(TEMPLATE_VBOXGUESTR3EXE_DEFS) PIC 2742 2742 TEMPLATE_VBOXGUESTR3DLL_CFLAGS = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fPIC … … 2751 2751 TEMPLATE_VBOXGUESTR3LIB_EXTENDS = VBOXGUESTR3EXE 2752 2752 TEMPLATE_VBOXGUESTR3LIB_INST = $(INST_ADDITIONS_LIB) 2753 if1of ($( BUILD_TARGET), solaris) ## @todo r=bird: Fix the *R3Mini template to VBOXGUESTR3DLL and remove this hack.2753 if1of ($(KBUILD_TARGET), solaris) ## @todo r=bird: Fix the *R3Mini template to VBOXGUESTR3DLL and remove this hack. 2754 2754 TEMPLATE_VBOXGUESTR3LIB_DEFS = $(TEMPLATE_VBOXGUESTR3EXE_DEFS) PIC 2755 2755 TEMPLATE_VBOXGUESTR3LIB_CFLAGS = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fPIC … … 2765 2765 TEMPLATE_VBOXGUESTR3XF86MOD_EXTENDS = VBOXGUESTR3EXE 2766 2766 TEMPLATE_VBOXGUESTR3XF86MOD_LIBS.$(BUILD_TYPE) = $(NO_SUCH_VARIABLE) 2767 TEMPLATE_VBOXGUESTR3XF86MOD_LIBS.$( BUILD_TARGET) = $(NO_SUCH_VARIABLE)2767 TEMPLATE_VBOXGUESTR3XF86MOD_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 2768 2768 TEMPLATE_VBOXGUESTR3XF86MOD_LIBS.linux = $(NO_SUCH_VARIABLE) 2769 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.$( BUILD_TARGET) = $(NO_SUCH_VARIABLE)2769 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 2770 2770 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.$(BUILD_TYPE) = $(NO_SUCH_VARIABLE) 2771 2771 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.linux = $(NO_SUCH_VARIABLE) 2772 2772 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS = -r 2773 if1of ($( BUILD_TARGET), freebsd linux l4 netbsd openbsd) # the gnu ld guys.2773 if1of ($(KBUILD_TARGET), freebsd linux l4 netbsd openbsd) # the gnu ld guys. 2774 2774 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.release = -S 2775 2775 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.x86 = -m elf_i386 … … 2791 2791 TEMPLATE_VBOXGUESTR3XORGMOD_EXTENDS = VBOXGUESTR3DLL 2792 2792 TEMPLATE_VBOXGUESTR3XORGMOD_LIBS.$(BUILD_TYPE) = $(NO_SUCH_VARIABLE) 2793 TEMPLATE_VBOXGUESTR3XORGMOD_LIBS.$( BUILD_TARGET) = $(NO_SUCH_VARIABLE)2793 TEMPLATE_VBOXGUESTR3XORGMOD_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 2794 2794 TEMPLATE_VBOXGUESTR3XORGMOD_LIBS.linux = $(NO_SUCH_VARIABLE) 2795 2795 TEMPLATE_VBOXGUESTR3XORGMOD_CFLAGS = $(TEMPLATE_VBOXGUESTR3DLL_CFLAGS) -std=c99 2796 2796 TEMPLATE_VBOXGUESTR3XORGMOD_DEFS = $(TEMPLATE_VBOXGUESTR3DLL_DEFS) LOG_TO_BACKDOOR 2797 if1of ($( BUILD_TARGET), linux l4)2797 if1of ($(KBUILD_TARGET), linux l4) 2798 2798 TEMPLATE_VBOXGUESTR3XORGMOD_LDFLAGS = $(TEMPLATE_VBOXGUESTR3DLL_LDFLAGS) -s 2799 2799 endif … … 2810 2810 TEMPLATE_VBOXGUESTR3CPPEXE = VBox Guest Program with C++ library dependencies 2811 2811 TEMPLATE_VBOXGUESTR3CPPEXE_EXTENDS = VBOXGUESTR3EXE 2812 ifeq ($( BUILD_TARGET),win)2812 ifeq ($(KBUILD_TARGET),win) 2813 2813 # later 2814 2814 else … … 2827 2827 TEMPLATE_VBOXGUESTR0_SDKS.win.x86 = WIN32SDK W2K3DDKX86 2828 2828 TEMPLATE_VBOXGUESTR0_SDKS.win.amd64 = W2K3DDK WINPSDKINCS 2829 ifn1of ($( BUILD_TARGET),l4 linux) # must be same as the host.2829 ifn1of ($(KBUILD_TARGET),l4 linux) # must be same as the host. 2830 2830 TEMPLATE_VBOXGUESTR0_DEFS = $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR0DRV_DEFS)) IN_GUEST IN_GUEST_R0 HC_ARCH_BITS=32 GC_ARCH_BITS=32 2831 2831 TEMPLATE_VBOXGUESTR0_BLD_TRG_ARCH = x86 … … 2834 2834 TEMPLATE_VBOXGUESTR0_DEFS = $(TEMPLATE_VBOXR0DRV_DEFS) IN_GUEST IN_GUEST_R0 2835 2835 endif 2836 ifeq ($( BUILD_TARGET),l4) # cross building linux on l4.2836 ifeq ($(KBUILD_TARGET),l4) # cross building linux on l4. 2837 2837 TEMPLATE_VBOXGUESTR0_BLD_TRG = linux 2838 2838 TEMPLATE_VBOXGUESTR0_SYSSUFF = .ko … … 2906 2906 2907 2907 ifndef VBOX_OSE 2908 if1of ($( BUILD_TARGET),freebsd linux netbsd openbsd solaris)2908 if1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris) 2909 2909 # VBOX_LICENSE_VER is used in several Makefiles 2910 2910 VBOX_LICENSE_SRC := $(PATH_ROOT)/doc/License.html -
trunk/Makefile.kmk
r8155 r8758 43 43 44 44 # The SDL DLLs 45 if1of ($( BUILD_TARGET), win os2)45 if1of ($(KBUILD_TARGET), win os2) 46 46 ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),) 47 47 include $(PATH_KBUILD)/sdks/LIBSDL.kmk … … 52 52 $(DLL_SDK_LIBSDL_SDLTTF) 53 53 endif 54 ifeq ($( BUILD_TARGET),os2)54 ifeq ($(KBUILD_TARGET),os2) 55 55 bin_SOURCES += \ 56 56 $(DLL_SDK_LIBSDL_FSLIB) … … 62 62 # The Qt DLLs. 63 63 ifneq ($(VBOX_WITH_QTGUI),) 64 if1of ($( BUILD_TARGET), win os2)64 if1of ($(KBUILD_TARGET), win os2) 65 65 #include $(PATH_KBUILD)/sdks/QT3.kmk 66 66 #bin_SOURCES += \ … … 81 81 82 82 # The compiler runtime DLLs. 83 ifeq ($( BUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)83 ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.) 84 84 ifdef VBOX_USE_VCC80 85 85 include $(PATH_KBUILD)/tools/VCC80X86.kmk … … 103 103 VBOX_INSTALL_VCC70_RT = 1 104 104 endif 105 ifeq ($( BUILD_TARGET).$(BUILD_TARGET_ARCH),win.x86)105 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86) 106 106 VBOX_INSTALL_VCC70_RT = 1 107 107 endif … … 161 161 # compile things. 162 162 # 163 ifn1of ($( BUILD_TARGET), l4 linux win)163 ifn1of ($(KBUILD_TARGET), l4 linux win) 164 164 VBOX_PATH_STAGED ?= . 165 165 … … 398 398 $(APPEND) [email protected] "INPUT = $(DOXYGEN_INPUT)" 399 399 $(APPEND) [email protected] 400 $(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$( BUILD_TARGET)) $(DEFS.$(BUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"400 $(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)" 401 401 $(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS " 402 402 $(APPEND) [email protected] … … 545 545 546 546 additions-build-win.x86: 547 ifeq ($( BUILD_TARGET),win)547 ifeq ($(KBUILD_TARGET),win) 548 548 + $(KMK) BUILD_TARGET_ARCH=x86 VBOX_ADDITIONS_WIN32_ONLY=1 $(VBOX_ADDITIONS_BUILD) 549 549 else … … 552 552 553 553 additions-build-solaris.x86: 554 ifeq ($( BUILD_TARGET),solaris)554 ifeq ($(KBUILD_TARGET),solaris) 555 555 + $(KMK) BUILD_TARGET_ARCH=x86 $(VBOX_ADDITIONS_BUILD) 556 556 else … … 559 559 560 560 additions-build-os2.x86: 561 #ifeq ($( BUILD_TARGET),os2)561 #ifeq ($(KBUILD_TARGET),os2) 562 562 # + $(KMK) BUILD_TARGET_ARCH=x86 563 563 #else … … 566 566 567 567 additions-build-linux.x86: 568 ifeq ($( BUILD_TARGET),linux)568 ifeq ($(KBUILD_TARGET),linux) 569 569 + $(KMK) BUILD_TARGET_ARCH=x86 VBOX_ADDITIONS_LINUX_ONLY=1 $(VBOX_ADDITIONS_BUILD) 570 570 else -
trunk/src/VBox/Additions/Makefile.kmk
r8298 r8758 54 54 VBOX_WITH_ADDITIONS_ISO.linux.x86 = 1 55 55 endif 56 ifeq ($( BUILD_TARGET),solaris)56 ifeq ($(KBUILD_TARGET),solaris) 57 57 VBOX_WITH_ADDITIONS_ISO.solaris.x86 = 1 58 58 endif 59 ifeq ($( BUILD_TARGET),freebsd)59 ifeq ($(KBUILD_TARGET),freebsd) 60 60 VBOX_WITH_ADDITIONS_ISO.freebsd.x86 = 1 61 61 endif … … 72 72 include $(PATH_SUB_CURRENT)/x11/Makefile.kmk 73 73 endif 74 ifeq ($( BUILD_TARGET),solaris)74 ifeq ($(KBUILD_TARGET),solaris) 75 75 include $(PATH_SUB_CURRENT)/solaris/Makefile.kmk 76 76 endif 77 ifeq ($( BUILD_TARGET),freebsd)77 ifeq ($(KBUILD_TARGET),freebsd) 78 78 include $(PATH_SUB_CURRENT)/freebsd/Makefile.kmk 79 79 endif -
trunk/src/VBox/Additions/common/Makefile.kmk
r8155 r8758 26 26 # Include sub-makefile. 27 27 include $(PATH_SUB_CURRENT)/VBoxGuestLib/Makefile.kmk 28 if1of ($( BUILD_TARGET), freebsd os2 solaris)28 if1of ($(KBUILD_TARGET), freebsd os2 solaris) 29 29 include $(PATH_SUB_CURRENT)/VBoxGuest/Makefile.kmk 30 30 include $(PATH_SUB_CURRENT)/VBoxService/Makefile.kmk -
trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk
r8155 r8758 26 26 # PORTME: OSes using mixed case driver names join OS/2, the others join Solaris below. 27 27 28 if1of ($( BUILD_TARGET), os2)28 if1of ($(KBUILD_TARGET), os2) 29 29 # 30 30 # VBoxGuest - The Guest Additions Driver (mixed case). … … 37 37 VBoxGuest_DEFS = VBGL_VBOXGUEST VBOX_HGCM 38 38 VBoxGuest_INCS := $(PATH_SUB_CURRENT) 39 ifneq ($( BUILD_TARGET),os2)39 ifneq ($(KBUILD_TARGET),os2) 40 40 VBoxGuest_SOURCES = \ 41 VBoxGuest-$( BUILD_TARGET).cpp \41 VBoxGuest-$(KBUILD_TARGET).cpp \ 42 42 VBoxGuest.cpp 43 43 VBoxGuest_LIBS = \ … … 72 72 endif # OS/2 73 73 74 else if1of ($( BUILD_TARGET), freebsd solaris)74 else if1of ($(KBUILD_TARGET), freebsd solaris) 75 75 # 76 76 # vboxguest - The Guest Additions Driver (lower cased). … … 85 85 $(PATH_TARGET) 86 86 vboxguest_SOURCES = \ 87 VBoxGuest-$( BUILD_TARGET).c \87 VBoxGuest-$(KBUILD_TARGET).c \ 88 88 VBoxGuest.cpp 89 89 vboxguest_LIBS = \ -
trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk
r8155 r8758 27 27 # Target config. 28 28 # 29 ifn1of ($( BUILD_TARGET),l4 linux win)29 ifn1of ($(KBUILD_TARGET),l4 linux win) 30 30 LIBRARIES += \ 31 31 VBoxGuestR0Lib \ … … 34 34 VBoxGuestR3Lib \ 35 35 VBoxGuestR3LibShared 36 if1of ($( BUILD_TARGET),freebsd linux netbsd openbsd)36 if1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd) 37 37 LIBRARIES += \ 38 38 VBoxGuestR3LibXFree86 … … 62 62 63 63 ifndef VBOX_WITH_ADDITION_DRIVERS 64 if1of ($( BUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.64 if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0. 65 65 LIBRARIES := $(filter-out VBoxGuestR0Lib VBoxGuestR0LibBase, $(LIBRARIES)) 66 66 endif -
trunk/src/VBox/Additions/linux/Makefile.kmk
r8372 r8758 25 25 26 26 # This can only be built on a real Linux system. 27 if1of ($( BUILD_TARGET),linux l4)27 if1of ($(KBUILD_TARGET),linux l4) 28 28 include $(PATH_SUB_CURRENT)/module/Makefile.kmk 29 29 include $(PATH_SUB_CURRENT)/daemon/Makefile.kmk -
trunk/src/VBox/Additions/x11/Makefile.kmk
r8155 r8758 24 24 25 25 # Include sub-makefiles. 26 if1of ($( BUILD_TARGET), freebsd l4 linux solaris)26 if1of ($(KBUILD_TARGET), freebsd l4 linux solaris) 27 27 include $(PATH_SUB_CURRENT)/xclient/Makefile.kmk 28 28 include $(PATH_SUB_CURRENT)/xgraphics/Makefile.kmk -
trunk/src/VBox/Additions/x11/xgraphics/Makefile.kmk
r8155 r8758 27 27 # vboxvideo_drv 28 28 # 29 if1of ($( BUILD_TARGET),linux l4)29 if1of ($(KBUILD_TARGET),linux l4) 30 30 SYSMODS += vboxvideo_drv 31 31 vboxvideo_drv_TEMPLATE = VBOXGUESTR3XF86MOD … … 115 115 DLLS += vboxvideo_drv_70 116 116 vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD 117 if1of ($( BUILD_TARGET), l4 linux)117 if1of ($(KBUILD_TARGET), l4 linux) 118 118 vboxvideo_drv_70_CFLAGS += \ 119 119 -Wno-conversion -Wno-unused-parameter $(VBOX_GCC_Wno-variadic-macros) # template? … … 121 121 vboxvideo_drv_70_DEFS := \ 122 122 XFree86Server IN_MODULE XFree86Module XFree86LOADER XORG_7X RENDER=1 123 ifeq ($( BUILD_TARGET),solaris) # don't use .solaris or anything here.123 ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here. 124 124 vboxvideo_drv_70_DEFS += _XPG6 __EXTENSIONS__ 125 125 endif -
trunk/src/VBox/Additions/x11/xmouse/Makefile.kmk
r8155 r8758 28 28 # vboxmouse_drv 29 29 # 30 if1of ($( BUILD_TARGET),linux l4)30 if1of ($(KBUILD_TARGET),linux l4) 31 31 SYSMODS += vboxmouse_drv 32 32 vboxmouse_drv_TEMPLATE = VBOXGUESTR3XF86MOD … … 65 65 vboxmouse_drv_70_DEFS = \ 66 66 XFree86Server IN_MODULE XFree86Module XFree86LOADER XINPUT XORG_7X 67 ifeq ($( BUILD_TARGET),solaris) # don't use .solaris or anything here.67 ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here. 68 68 vboxmouse_drv_70_DEFS += _XPG6 __EXTENSIONS__ 69 69 endif -
trunk/src/VBox/Debugger/Makefile.kmk
r8155 r8758 133 133 $(LIB_VMM) \ 134 134 $(LIB_RUNTIME) 135 ifeq ($( BUILD_TARGET),win)135 ifeq ($(KBUILD_TARGET),win) 136 136 tstVBoxDbg_LIBS += \ 137 137 $(PATH_LIB)/VBoxDbg.lib -
trunk/src/VBox/Devices/Makefile.kmk
r8611 r8758 100 100 $(PATH_LIB)/USBLib$(VBOX_SUFF_LIB) 101 101 endif 102 ifeq ($( BUILD_TARGET),l4)102 ifeq ($(KBUILD_TARGET),l4) 103 103 VBoxDDU_LIBS += \ 104 104 $(L4_LIBDIR)/libl4sys.p.a … … 117 117 # VBoxDDULnxHostR3 (Only needed for l4, currently for executing vditool on L4Linux.) 118 118 # 119 ifeq ($( BUILD_TARGET),l4)119 ifeq ($(KBUILD_TARGET),l4) 120 120 LIBRARIES += VBoxDDULnxHostR3 121 121 VBoxDDULnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB … … 159 159 $(LIB_VMM) \ 160 160 $(LIB_RUNTIME) 161 ifeq ($( BUILD_TARGET),win)161 ifeq ($(KBUILD_TARGET),win) 162 162 VBoxDD_LIBS += \ 163 163 $(LIB_DDU) \ … … 169 169 $(INSTARGET_VBoxDD2) 170 170 endif 171 ifeq ($( BUILD_TARGET),l4)171 ifeq ($(KBUILD_TARGET),l4) 172 172 VBoxDD_LIBS += \ 173 173 $(L4_LIBDIR)/libl4sys.p.a 174 174 endif 175 ifeq ($( BUILD_TARGET),solaris)175 ifeq ($(KBUILD_TARGET),solaris) 176 176 VBoxDD_LIBS += adm 177 177 ifdef VBOX_WITH_SUID_WRAPPER … … 191 191 192 192 # damn, fix this. 193 ifeq ($( BUILD_TARGET),win)193 ifeq ($(KBUILD_TARGET),win) 194 194 $(PATH_LIB)/VBoxDD2.lib: $(PATH_BIN)/VBoxDD2.dll 195 195 $(PATH_LIB)/VBoxDDU.lib: $(PATH_BIN)/VBoxDDU.dll … … 213 213 $(LIB_VMM) \ 214 214 $(LIB_RUNTIME) 215 ifeq ($( BUILD_TARGET),l4)215 ifeq ($(KBUILD_TARGET),l4) 216 216 VBoxDD2_LIBS += \ 217 217 $(L4_LIBDIR)/libl4sys.p.a … … 497 497 # Drivers (library) 498 498 # 499 ifeq ($( BUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones499 ifeq ($(KBUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones 500 500 Drivers_TEMPLATE = VBOXR3NP 501 501 else … … 551 551 # -- OS specific -- 552 552 553 ifeq ($( BUILD_TARGET),darwin)553 ifeq ($(KBUILD_TARGET),darwin) 554 554 Drivers_SOURCES := $(filter-out \ 555 555 Storage/DrvHostRaw% \ … … 560 560 endif # darwin 561 561 562 ifeq ($( BUILD_TARGET),freebsd)562 ifeq ($(KBUILD_TARGET),freebsd) 563 563 Drivers_SOURCES := $(filter-out \ 564 564 Storage/DrvHost% \ … … 568 568 569 569 570 ifeq ($( BUILD_TARGET),l4)570 ifeq ($(KBUILD_TARGET),l4) 571 571 Drivers_SOURCES = \ 572 572 Input/DrvMouseQueue.cpp \ … … 598 598 Serial/DrvHostSerial.cpp 599 599 600 ifeq ($( BUILD_TARGET),os2)600 ifeq ($(KBUILD_TARGET),os2) 601 601 Drivers_SOURCES := $(filter-out \ 602 602 Storage/DrvHost% \ … … 606 606 endif 607 607 608 ifeq ($( BUILD_TARGET),solaris)608 ifeq ($(KBUILD_TARGET),solaris) 609 609 Drivers_SOURCES := $(filter-out \ 610 610 Storage/DrvHost% \ -
trunk/src/VBox/Devices/PC/Etherboot-src/Makefile.kmk
r8315 r8758 162 162 163 163 # Linker scripts. 164 ifeq ($( BUILD_TARGET),win)164 ifeq ($(KBUILD_TARGET),win) 165 165 LDSCRIPT = arch/i386/core/etherboot-pe.lds 166 166 PLDSCRIPT = arch/i386/core/etherboot.prefix-pe.lds … … 295 295 # the final binary to 0xffc00000 and filling out relocations incorrectly 296 296 # (first occurrence is the call to prelocate in the pciprefix.o file). 297 ifeq ($(filter-out darwin.x86 darwin.amd64 os2.x86 solaris.x86 solaris.amd64 win.x86 win.amd64 linux.amd64,$( BUILD_TARGET).$(BUILD_TARGET_ARCH)),)297 ifeq ($(filter-out darwin.x86 darwin.amd64 os2.x86 solaris.x86 solaris.amd64 win.x86 win.amd64 linux.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) 298 298 $(PATH_TARGET)/pcnet32.zrom: pcnet32.zrom | $(call DIRDEP,$(PATH_TARGET)) 299 299 $(CP) -f $< $@ -
trunk/src/VBox/Devices/Storage/testcase/Makefile.kmk
r8155 r8758 28 28 # 29 29 PROGRAMS += vditool 30 ifeq ($( BUILD_TARGET),l4)30 ifeq ($(KBUILD_TARGET),l4) 31 31 vditool_TEMPLATE = VBOXLNXHOSTR3EXE 32 32 vditool_LIBS = \ … … 45 45 ifdef VBOX_WITH_TESTCASES 46 46 PROGRAMS += tstVDI 47 ifeq ($( BUILD_TARGET),l4)47 ifeq ($(KBUILD_TARGET),l4) 48 48 tstVDI_TEMPLATE = VBOXLNXHOSTR3EXE 49 49 else … … 59 59 ifdef VBOX_WITH_TESTCASES 60 60 PROGRAMS += tstVD 61 ifeq ($( BUILD_TARGET),l4)61 ifeq ($(KBUILD_TARGET),l4) 62 62 tstVD_TEMPLATE = VBOXLNXHOSTR3EXE 63 63 else -
trunk/src/VBox/Devices/testcase/Makefile.kmk
r8757 r8758 28 28 # validation testcases. Perhaps a bit hackish, but extremely useful. 29 29 # 30 ifeq ($( BUILD_TARGET),$(KBUILD_HOST))31 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $( BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)30 ifeq ($(KBUILD_TARGET),$(KBUILD_HOST)) 31 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),) 32 32 OTHERS += \ 33 33 $(PATH_TARGET)/tstDeviceStructSize.run -
trunk/src/VBox/Disassembler/Makefile.kmk
r8299 r8758 28 28 29 29 DisasmR3_TEMPLATE = VBOXR3 30 ifeq ($( BUILD_TARGET),win)30 ifeq ($(KBUILD_TARGET),win) 31 31 DisasmR3_CXXFLAGS += -EHa 32 32 else 33 ifneq ($( BUILD_TARGET),l4)33 ifneq ($(KBUILD_TARGET),l4) 34 34 DisasmR3_CXXFLAGS += -fexceptions 35 35 endif -
trunk/src/VBox/Frontends/VBoxBFE/Makefile.kmk
r8732 r8758 36 36 VBoxBFE_DEFS += VBOX_VRDP 37 37 endif 38 ifneq ($( BUILD_TARGET).$(VBOX_WITHOUT_COM),win.)38 ifneq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COM),win.) 39 39 VBoxBFE_DEFS += VBOXBFE_WITHOUT_COM 40 40 endif … … 79 79 80 80 # SDL 81 ifneq ($( BUILD_TARGET),l4)81 ifneq ($(KBUILD_TARGET),l4) 82 82 VBoxBFE_SDKS += LIBSDL 83 83 VBoxBFE_DEFS += USE_SDL … … 88 88 89 89 # USB Support 90 if1of ($( BUILD_TARGET), l4 win)90 if1of ($(KBUILD_TARGET), l4 win) 91 91 VBoxBFE_DEFS += VBOXBFE_WITH_USB 92 92 VBoxBFE_SOURCES += \ … … 103 103 $(PATH_VBoxBFE) \ 104 104 $(VBOX_PATH_SDK)/include 105 ifneq ($(filter-out win os2 l4 darwin,$( BUILD_TARGET)),) # X11105 ifneq ($(filter-out win os2 l4 darwin,$(KBUILD_TARGET)),) # X11 106 106 VBoxBFE_INCS += \ 107 107 $(VBOX_XCURSOR_INCS) … … 114 114 $(LIB_RUNTIME) \ 115 115 $(LIB_VMM) 116 ifneq ($(filter-out win os2 l4,$( BUILD_TARGET)),)116 ifneq ($(filter-out win os2 l4,$(KBUILD_TARGET)),) 117 117 VBoxBFE_LIBS += \ 118 118 $(LIB_REM) 119 119 endif 120 ifneq ($(filter-out win os2 l4 darwin,$( BUILD_TARGET)),) # X11120 ifneq ($(filter-out win os2 l4 darwin,$(KBUILD_TARGET)),) # X11 121 121 VBoxBFE_LIBS += \ 122 122 $(VBOX_XCURSOR_LIBS) \ -
trunk/src/VBox/Frontends/VBoxSDL/Makefile.kmk
r8752 r8758 71 71 $(PATH_BIN)/sdk/include \ 72 72 $(PATH_VBoxSDL) 73 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # X1173 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 74 74 VBoxSDL_INCS += \ 75 75 $(VBOX_XCURSOR_INCS) … … 79 79 /usr/local/include \ 80 80 /usr/X11R6/include ## @todo figure this out. 81 ifneq ($(filter-out win solaris,$( BUILD_TARGET)),)81 ifneq ($(filter-out win solaris,$(KBUILD_TARGET)),) 82 82 83 83 VBoxSDL_LIBS = \ 84 84 $(LIB_SDK_LIBSDL_SDLMAIN) 85 85 endif 86 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # X1186 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 87 87 VBoxSDL_LIBS += \ 88 88 $(VBOX_XCURSOR_LIBS) \ … … 122 122 tstSDL_LIBS = \ 123 123 $(LIB_RUNTIME) 124 ifneq ($(filter-out win solaris,$( BUILD_TARGET)),)124 ifneq ($(filter-out win solaris,$(KBUILD_TARGET)),) 125 125 tstSDL_LIBS += \ 126 126 $(LIB_SDK_LIBSDL_SDLMAIN) … … 130 130 tstSDL_LIBS.linux += GL 131 131 endif 132 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # X11132 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 133 133 tstSDL_LIBPATH = \ 134 134 $(VBOX_LIBPATH_X11) -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r8748 r8758 85 85 # 86 86 PROGRAMS = VirtualBox 87 ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$( BUILD_TARGET)),) # X1187 ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(KBUILD_TARGET)),) # X11 88 88 DLLS = VBoxKeyboard 89 89 OTHERS = $(PATH_BIN)/vboxkeyboard.tar.gz … … 91 91 INSTALLS = VirtualBox.nls 92 92 93 ifeq ($( BUILD_TARGET),os2)93 ifeq ($(KBUILD_TARGET),os2) 94 94 DLLS += VBoxHlp 95 95 ifneq ($(strip $(VBOX_DLL_QT)),) … … 155 155 VirtualBox_TEMPLATE = VBOXQTGUIEXE 156 156 VirtualBox_SDKS.win = WINPSDK DXSDK 157 #ifeq ($(filter-out freebsd linux netbsd openbsd os2 solaris,$( BUILD_TARGET)),) - later158 ifeq ($(filter-out freebsd linux netbsd openbsd os2,$( BUILD_TARGET)),) # X11 + os2157 #ifeq ($(filter-out freebsd linux netbsd openbsd os2 solaris,$(KBUILD_TARGET)),) - later 158 ifeq ($(filter-out freebsd linux netbsd openbsd os2,$(KBUILD_TARGET)),) # X11 + os2 159 159 VirtualBox_SDKS += LIBSDL 160 160 endif 161 161 162 ifeq ($( BUILD_TARGET),darwin)162 ifeq ($(KBUILD_TARGET),darwin) 163 163 # For the launch trick we need different inode numbers. 164 164 VirtualBox_INST = $(INST_BIN)VirtualBox $(INST_BIN)VirtualBoxVM … … 173 173 174 174 ifndef VBOX_OSE 175 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # linux only, yea, right.175 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # linux only, yea, right. 176 176 # Note: I'm doing this right here because the GUI will _not_ run 177 177 # without that file which might be annoying for developers! … … 213 213 # Sources containing local definitions of classes that use the Q_OBJECT macro 214 214 VirtualBox_QT_MOCSRCS = src/VBoxSelectorWnd.cpp 215 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # X11215 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 216 216 VirtualBox_QT_MOCSRCS += src/VBoxGlobal.cpp 217 217 endif … … 277 277 src/VBoxNetworkFramework.cpp 278 278 279 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # X11279 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 280 280 VirtualBox_SOURCES += \ 281 281 src/linux/XKeyboard-new.cpp … … 305 305 VirtualBox_QT_UISRCS += ui/VBoxAboutDlg.ui 306 306 307 ifneq ($( BUILD_TARGET),win)307 ifneq ($(KBUILD_TARGET),win) 308 308 src/HappyHttp.cpp_CXXFLAGS += -fexceptions 309 309 src/VBoxDownloaderWgt.cpp_CXXFLAGS += -fexceptions … … 390 390 $(PATH_SDK_DXSDK_LIB)/dxguid.lib 391 391 VirtualBox_LIBS.os2 += $(PATH_DLL)/VBoxHlp$(VBOX_SUFF_DLL) 392 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # X11392 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 393 393 VirtualBox_LIBS += $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL) 394 394 endif … … 396 396 397 397 ifdef VBOX_WITH_DEBUGGER_GUI ## @todo make this dynamically loadable and ship with release builds too. 398 ifeq ($( BUILD_TARGET),win)398 ifeq ($(KBUILD_TARGET),win) 399 399 VirtualBox_LIBS += $(PATH_LIB)/VBoxDbg$(VBOX_SUFF_LIB) 400 400 else -
trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
r8740 r8758 70 70 VBOX_DEFS_QT4 = QT_CORE_LIB QT_GUI_LIB QT_NETWORK_LIB QT_QT3SUPPORT_LIB 71 71 72 ifeq ($( BUILD_TARGET),darwin)72 ifeq ($(KBUILD_TARGET),darwin) 73 73 VBOX_MODULE_QT4 += QtSql QtXml 74 74 VBOX_DEFS_QT4 = QT_SQL_LIB QT_XML_LIB … … 109 109 $(VBOX_INCS_QT4) 110 110 111 ifeq ($( BUILD_TARGET),win)111 ifeq ($(KBUILD_TARGET),win) 112 112 # drag in library configuration (we need QMAKE_PRL_DEFINES) 113 113 ifneq ($(LIB_QT_PRL),) … … 170 170 $(LIB_VMM) 171 171 172 ifeq ($( BUILD_TARGET_ARCH),amd64)172 ifeq ($(KBUILD_TARGET_ARCH),amd64) 173 173 TEMPLATE_VBOXQT4GUIEXE_LIBPATH = \ 174 174 $(VBOX_PATH_QT4_LIB64) $(VBOX_PATH_QT4_LIB) … … 178 178 endif 179 179 180 ifeq ($( BUILD_TARGET),linux)180 ifeq ($(KBUILD_TARGET),linux) 181 181 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += $(VBOX_LD_as_needed) 182 182 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 183 183 $(VBOX_XCURSOR_LIBS) 184 else ifeq ($( BUILD_TARGET),darwin)184 else ifeq ($(KBUILD_TARGET),darwin) 185 185 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += $(foreach mod, $(VBOX_MODULE_QT4), -framework $(mod)) \ 186 186 -framework Carbon -framework QuickTime -bind_at_load 187 187 TEMPLATE_VBOXQT4GUIEXE_LIBS += 188 188 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += 189 else ifeq ($( BUILD_TARGET),os2)189 else ifeq ($(KBUILD_TARGET),os2) 190 190 # drag in library configuration (we need QMAKE_PRL_DEFINES) 191 191 ifneq ($(LIB_QT_PRL),) … … 206 206 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \ 207 207 $(VBOX_LIBPATH_X11) 208 ifeq ($( BUILD_TARGET),freebsd)208 ifeq ($(KBUILD_TARGET),freebsd) 209 209 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 210 210 /usr/include \ … … 234 234 TEMPLATE_VBOXQT4GUI_EXTENDS = VBOXQTGUIEXE 235 235 TEMPLATE_VBOXQT4GUI_LIBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBOXQT4GUIEXE_LIBS)) 236 ifeq ($( BUILD_TARGET),darwin)236 ifeq ($(KBUILD_TARGET),darwin) 237 237 TEMPLATE_VBOXQT4GUI_LDFLAGS = $(filter-out -framework Carbon -framework QuickTime -bind_at_load,$(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS)) 238 238 endif 239 ifeq ($(filter-out solaris.x86 %.amd64,$( BUILD_TARGET).$(BUILD_TARGET_ARCH)),)240 ifneq ($( BUILD_TARGET),win)239 ifeq ($(filter-out solaris.x86 %.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) 240 ifneq ($(KBUILD_TARGET),win) 241 241 TEMPLATE_VBOXQT4GUI_DEFS = PIC $(TEMPLATE_VBOXQT4GUIEXE_DEFS) 242 242 TEMPLATE_VBOXQT4GUI_CFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_CFLAGS) … … 296 296 # 297 297 PROGRAMS = VirtualBox 298 ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$( BUILD_TARGET)),) # X11298 ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(KBUILD_TARGET)),) # X11 299 299 DLLS = VBoxKeyboard4 300 300 OTHERS = $(PATH_BIN)/vboxkeyboard4.tar.gz … … 302 302 INSTALLS = VirtualBox.nls 303 303 304 ifeq ($( BUILD_TARGET),os2)304 ifeq ($(KBUILD_TARGET),os2) 305 305 DLLS += VBoxHlp 306 306 ifneq ($(strip $(VBOX_DLL_QT)),) … … 367 367 VirtualBox_NAME = VirtualBox4 368 368 VirtualBox_SDKS.win = WINPSDK DXSDK 369 #ifeq ($(filter-out freebsd linux netbsd openbsd os2 solaris,$( BUILD_TARGET)),) - later370 ifeq ($(filter-out freebsd linux netbsd openbsd os2,$( BUILD_TARGET)),) # X11 + os2369 #ifeq ($(filter-out freebsd linux netbsd openbsd os2 solaris,$(KBUILD_TARGET)),) - later 370 ifeq ($(filter-out freebsd linux netbsd openbsd os2,$(KBUILD_TARGET)),) # X11 + os2 371 371 VirtualBox_SDKS += LIBSDL 372 372 endif 373 373 374 ifeq ($( BUILD_TARGET),darwin)374 ifeq ($(KBUILD_TARGET),darwin) 375 375 # For the launch trick we need different inode numbers. 376 376 VirtualBox_INST = $(INST_BIN)VirtualBox4 $(INST_BIN)VirtualBoxVM4 … … 385 385 386 386 ifndef VBOX_OSE 387 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # linux only, yea, right.387 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # linux only, yea, right. 388 388 # Note: I'm doing this right here because the GUI will _not_ run 389 389 # without that file which might be annoying for developers! … … 440 440 # Sources containing local definitions of classes that use the Q_OBJECT macro 441 441 VirtualBox_QT_MOCSRCS = src/VBoxSelectorWnd.cpp 442 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # X11442 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 443 443 VirtualBox_QT_MOCSRCS += src/VBoxGlobal.cpp 444 444 endif … … 520 520 src/VBoxVMLogViewer.cpp 521 521 522 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # X11522 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 523 523 VirtualBox_SOURCES += \ 524 524 src/linux/XKeyboard-new.cpp … … 543 543 endif 544 544 545 ifneq ($( BUILD_TARGET),win)545 ifneq ($(KBUILD_TARGET),win) 546 546 src/HappyHttp.cpp_CXXFLAGS += -fexceptions 547 547 src/VBoxDownloaderWgt.cpp_CXXFLAGS += -fexceptions … … 628 628 $(PATH_SDK_DXSDK_LIB)/dxguid.lib 629 629 VirtualBox_LIBS.os2 += $(PATH_DLL)/VBoxHlp$(VBOX_SUFF_DLL) 630 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # X11630 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11 631 631 VirtualBox_LIBS += $(PATH_DLL)/VBoxKeyboard4$(VBOX_SUFF_DLL) 632 632 endif … … 634 634 635 635 ifdef VBOX_WITH_DEBUGGER_GUI ## @todo make this dynamically loadable and ship with release builds too. 636 ifeq ($( BUILD_TARGET),win)636 ifeq ($(KBUILD_TARGET),win) 637 637 VirtualBox_LIBS += $(PATH_LIB)/VBoxDbg$(VBOX_SUFF_LIB) 638 638 else -
trunk/src/VBox/HostDrivers/Makefile.kmk
r8155 r8758 25 25 # Include sub-makefiles. 26 26 include $(PATH_SUB_CURRENT)/Support/Makefile.kmk 27 ifeq ($( BUILD_TARGET),win)27 ifeq ($(KBUILD_TARGET),win) 28 28 include $(PATH_SUB_CURRENT)/VBoxTAP/Makefile.kmk 29 29 endif -
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r8732 r8758 88 88 # The Ring-3 Support Library (this is linked into the IPRT dll, VBoxRT). 89 89 # 90 ifneq ($(filter l4%,$( BUILD_TARGET) $(BUILD_TARGET_SUB)),)90 ifneq ($(filter l4%,$(KBUILD_TARGET) $(BUILD_TARGET_SUB)),) 91 91 # L4 has trouble with -pedantic. It also make trouble when inlining is not enabled. 92 92 SUPR3_TEMPLATE = VBOXR3NP … … 102 102 SUPR3_SOURCES = \ 103 103 SUPLib.cpp \ 104 $( BUILD_TARGET)/SUPLib-$(BUILD_TARGET).cpp104 $(KBUILD_TARGET)/SUPLib-$(KBUILD_TARGET).cpp 105 105 106 106 # … … 122 122 # VBoxDrv.sys - The Windows driver. 123 123 # 124 ifeq ($( BUILD_TARGET),win)124 ifeq ($(KBUILD_TARGET),win) 125 125 VBoxDrv_TEMPLATE = VBOXR0DRV 126 126 ifdef VBOX_SIGNING_MODE … … 177 177 # vboxdrv.ko - The Linux Kernel Module (syntax only). 178 178 # 179 ifeq ($( BUILD_TARGET),linux)179 ifeq ($(KBUILD_TARGET),linux) 180 180 vboxdrv_TEMPLATE = VBOXR0DRV 181 181 vboxdrv_DEFS = KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) MODULE IN_RT_R0 IN_SUP_R0 CONFIG_VBOXDRV_AS_MISC USE_NEW_OS_INTERFACE_FOR_MM … … 189 189 vboxdrv_LIBS.debug = $(vboxdrv_LIBS) $(VBOX_GCC_LIBGCC) 190 190 vboxdrv_SOURCES = \ 191 $( BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).c \191 $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \ 192 192 SUPDRVShared.c 193 193 ifndef VBOX_LINUX_VERSION_2_4 194 194 vboxdrv_SOURCES += \ 195 $( BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).mod.c195 $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).mod.c 196 196 endif 197 197 endif # real linux … … 201 201 # VBoxDrv.kext - The Darwin Kernel Extension. 202 202 # 203 ifeq ($( BUILD_TARGET),darwin)203 ifeq ($(KBUILD_TARGET),darwin) 204 204 VBoxDrv_TEMPLATE = VBOXR0DRV 205 205 VBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE … … 214 214 VBoxDrv_SOURCES = \ 215 215 SUPDRVShared.c \ 216 $( BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).cpp216 $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).cpp 217 217 218 218 INSTALLS += VBoxDrv.kext … … 244 244 # VBoxDrv.sys - The OS/2 driver. 245 245 # 246 ifeq ($( BUILD_TARGET),os2)246 ifeq ($(KBUILD_TARGET),os2) 247 247 VBoxDrv_TEMPLATE = VBOXR0DRV 248 248 VBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE … … 276 276 # vboxdrv.ko - The FreeBSD Kernel Module. 277 277 # 278 ifeq ($( BUILD_TARGET),freebsd)278 ifeq ($(KBUILD_TARGET),freebsd) 279 279 vboxdrv_TEMPLATE = VBOXR0DRV 280 280 vboxdrv_DEFS = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE … … 285 285 vboxdrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 286 286 vboxdrv_SOURCES = \ 287 $( BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).c \287 $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \ 288 288 SUPDRVShared.c 289 289 endif # freebsd … … 293 293 # vboxdrv.o - The Solaris Kernel Module. 294 294 # 295 ifeq ($( BUILD_TARGET),solaris)295 ifeq ($(KBUILD_TARGET),solaris) 296 296 vboxdrv_TEMPLATE = VBOXR0DRV 297 297 vboxdrv_DEFS = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE … … 302 302 vboxdrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 303 303 vboxdrv_SOURCES = \ 304 $( BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).c \304 $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \ 305 305 SUPDRVShared.c 306 306 endif # solaris -
trunk/src/VBox/HostServices/Makefile.kmk
r8155 r8758 27 27 include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk 28 28 endif 29 if1of ($( BUILD_TARGET), win linux solaris)29 if1of ($(KBUILD_TARGET), win linux solaris) 30 30 ifdef VBOX_WITH_OGL 31 31 include $(PATH_SUB_CURRENT)/SharedOpenGL/Makefile.kmk 32 32 endif 33 33 endif 34 if1of ($( BUILD_TARGET), win linux solaris darwin)34 if1of ($(KBUILD_TARGET), win linux solaris darwin) 35 35 ifdef VBOX_WITH_SHARED_CLIPBOARD 36 36 include $(PATH_SUB_CURRENT)/SharedClipboard/Makefile.kmk -
trunk/src/VBox/HostServices/SharedClipboard/Makefile.kmk
r8155 r8758 41 41 clipboard-helper.cpp \ 42 42 darwin-pasteboard.cpp 43 if1of ($( BUILD_TARGET),linux solaris) ## @todo X1143 if1of ($(KBUILD_TARGET),linux solaris) ## @todo X11 44 44 ifndef VBOX_HEADLESS 45 45 VBoxSharedClipboard_SOURCES += \ … … 56 56 $(LIB_RUNTIME) \ 57 57 $(LIB_REM) 58 if1of ($( BUILD_TARGET),linux solaris)58 if1of ($(KBUILD_TARGET),linux solaris) 59 59 ifndef VBOX_HEADLESS 60 60 VBoxSharedClipboard_LIBPATH = \ -
trunk/src/VBox/HostServices/SharedFolders/testcase/Makefile.kmk
r8757 r8758 43 43 endif # VBOX_WITH_TESTCASES 44 44 45 ifeq ($( BUILD_TARGET),$(KBUILD_HOST))46 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $( BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)45 ifeq ($(KBUILD_TARGET),$(KBUILD_HOST)) 46 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),) 47 47 OTHERS += \ 48 48 $(PATH_TARGET)/tstShflSizes.run -
trunk/src/VBox/Installer/linux/Makefile.kmk
r8757 r8758 89 89 VMMGC.gc \ 90 90 VMMR0.r0 91 ifeq ($( BUILD_TARGET_ARCH),amd64)91 ifeq ($(KBUILD_TARGET_ARCH),amd64) 92 92 LINUXSTRIPOBJ += \ 93 93 VBoxREM2.rel -
trunk/src/VBox/Installer/solaris/Makefile.kmk
r8757 r8758 32 32 SOL_DBG_OBJCOPY := $(CP) -p # Solaris ld/gobjcopy(2.15) don't get along on x86, works only on amd64. So just using cp for now. 33 33 PKGINFO_ARCH = $(shell uname -p) 34 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$( BUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)34 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV) 35 35 DBG_ARCHIVE = VirtualBox-dbg.tar.bz2 36 36 … … 90 90 VMMR0.r0 91 91 92 ifeq ($( BUILD_TARGET_ARCH),amd64)92 ifeq ($(KBUILD_TARGET_ARCH),amd64) 93 93 SOL64_PKG = 1 94 94 SOLARIS_STRIP_OBJS += \ … … 288 288 $(QUIET)$(SED) \ 289 289 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \ 290 -e "s/@BUILD_TARGET_ARCH@/$( BUILD_TARGET_ARCH)/g" \290 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \ 291 291 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \ 292 292 --output $(SOLARIS_INST_DIR)/ReadMe.txt \ 293 293 $(PATH_ROOT)/doc/ReadMe-Solaris.txt 294 294 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz) 295 $(QUIET)$(SOLARIS_INST_DIR)/makepackage.sh $(SOLARIS_INST_DIR) $(PKG_FILENAME) $( BUILD_TARGET_ARCH)295 $(QUIET)$(SOLARIS_INST_DIR)/makepackage.sh $(SOLARIS_INST_DIR) $(PKG_FILENAME) $(KBUILD_TARGET_ARCH) 296 296 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz $(PATH_BIN) 297 297 @# Clean up files emitted as side-effect or result of packing -
trunk/src/VBox/Main/Makefile.kmk
r8754 r8758 38 38 PROGRAMS += VBoxSVC 39 39 VBOX_MAIN_DEFS = 40 ifneq ($( BUILD_TARGET),win)40 ifneq ($(KBUILD_TARGET),win) 41 41 ifndef VBOX_WITH_XPCOM 42 42 $(error "VBox: VBOX_WITH_XPCOM isn't defined") 43 43 endif 44 44 DLLS += VBoxSVCM 45 ifneq ($( BUILD_TARGET),os2)45 ifneq ($(KBUILD_TARGET),os2) 46 46 VBOX_MAIN_DEFS+= VBOX_WITH_SYS_V_IPC_SESSION_WATCHER 47 47 endif … … 60 60 #PROGRAMS += tstCFGLdr 61 61 62 ifeq ($( BUILD_TARGET),win)62 ifeq ($(KBUILD_TARGET),win) 63 63 OTHERS += $(PATH_BIN)/comregister.cmd 64 64 IDLFILE = $(VBOX_PATH_SDK)/idl/VirtualBox.idl … … 75 75 INSTALLS += xpcom-components 76 76 IDLFILE = $(VBOX_PATH_SDK)/idl/VirtualBox_XPCOM.idl 77 ifeq ($( BUILD_TARGET),linux)77 ifeq ($(KBUILD_TARGET),linux) 78 78 IDLTYPELIB = $(PATH_BIN)/VirtualBox_XPCOM.xpt 79 79 else … … 268 268 269 269 VBoxSVCM_TEMPLATE = VBOXMAINDLL 270 ifneq ($( BUILD_TARGET),linux)270 ifneq ($(KBUILD_TARGET),linux) 271 271 VBoxSVCM_INST = $(INST_BIN)components/ 272 272 endif … … 284 284 -install_name @executable_path/components/VBoxSVCM.dylib \ 285 285 -exported_symbols_list $(PATH_TARGET)/VBoxSVCM.def 286 ifeq ($( BUILD_TARGET),darwin)286 ifeq ($(KBUILD_TARGET),darwin) 287 287 VBoxSVCM_ORDERDEPS += $(PATH_TARGET)/VBoxSVCM.def 288 288 VBoxSVCM_CLEAN += $(PATH_TARGET)/VBoxSVCM.def … … 299 299 # 300 300 VBoxC_TEMPLATE = VBOXMAINDLL 301 ifneq ($(filter-out linux win,$( BUILD_TARGET)),)301 ifneq ($(filter-out linux win,$(KBUILD_TARGET)),) 302 302 VBoxC_INST = $(INST_BIN)components/ 303 303 endif … … 406 406 endif 407 407 408 ifeq ($( BUILD_TARGET),darwin)408 ifeq ($(KBUILD_TARGET),darwin) 409 409 VBoxC_ORDERDEPS += $(PATH_TARGET)/VBoxC.def 410 410 VBoxC_CLEAN += $(PATH_TARGET)/VBoxC.def … … 419 419 Version.cpp_DEPS = $(VBOX_SVN_REV_KMK) 420 420 421 ConsoleImpl.cpp_DEFS = VBOX_BUILD_TARGET=\"$( BUILD_TARGET).$(BUILD_TARGET_ARCH)\"421 ConsoleImpl.cpp_DEFS = VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" 422 422 423 423 win32/VBoxC.rc_DEPS = $(PATH_TARGET)/VBoxC.rgs $(PATH_VBoxCOM)/VirtualBox.tlb … … 449 449 glue/EventQueue.cpp \ 450 450 glue/ErrorInfo.cpp 451 ifeq ($( BUILD_TARGET),win)451 ifeq ($(KBUILD_TARGET),win) 452 452 VBoxCOM_DEFS.x86 += _WIN32_WINNT=0x0500 453 453 VBoxCOM_DEFS.amd64 += _WIN32_WINNT=0x0510 … … 465 465 # Generate _DEPS on all sources which depends on generated headers. 466 466 # 467 ifeq ($( BUILD_TARGET),win)467 ifeq ($(KBUILD_TARGET),win) 468 468 PREREQS = $(PATH_VBoxCOM)/VirtualBox_i.c 469 469 else … … 476 476 endef 477 477 $(foreach src,\ 478 $(VBoxC_SOURCES) $(VBoxC_SOURCES.$( BUILD_TARGET)) \479 $(VBoxSVC_SOURCES) $(VBoxSVC_SOURCES.$( BUILD_TARGET)) \478 $(VBoxC_SOURCES) $(VBoxC_SOURCES.$(KBUILD_TARGET)) \ 479 $(VBoxSVC_SOURCES) $(VBoxSVC_SOURCES.$(KBUILD_TARGET)) \ 480 480 $(VBoxCOM_SOURCES) \ 481 481 ,$(eval $(value def_src_deps))) … … 503 503 $(VBOX_XML_SCHEMA_H) $(VBOX_XML_SCHEMA_COMMON_H) $(VBOX_XML_CONVERTER_TEMPLATE_H) 504 504 505 $(VBOX_XML_SCHEMA_H): $(VBOX_XML_SCHEMA.$( BUILD_TARGET)) $(VBOX_BIN2C)505 $(VBOX_XML_SCHEMA_H): $(VBOX_XML_SCHEMA.$(KBUILD_TARGET)) $(VBOX_BIN2C) 506 506 $(call MSG_TOOL,bin2c,VBoxSVC,$<,$@) 507 507 $(QUIET)$(VBOX_BIN2C) _xml_VirtualBox_settings_xsd $< $@ … … 533 533 VBoxSVC_SOURCES += $(VBOX_XML_SCHEMADEFS_CPP) 534 534 535 $(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$( BUILD_TARGET)) $(VBOX_XML_SCHEMA_COMMON)535 $(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET)) $(VBOX_XML_SCHEMA_COMMON) 536 536 $(call MSG_TOOL,xsltproc,SchemaDefs,$<,$@) 537 537 $(QUIET)$(VBOX_XSLTPROC) --stringparam mode declare -o $@ $(filter-out $(VBOX_XML_SCHEMA_COMMON),$^) 538 538 539 $(VBOX_XML_SCHEMADEFS_CPP): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$( BUILD_TARGET)) $(VBOX_XML_SCHEMA_COMMON)539 $(VBOX_XML_SCHEMADEFS_CPP): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET)) $(VBOX_XML_SCHEMA_COMMON) 540 540 $(call MSG_TOOL,xsltproc,SchemaDefs,$<,$@) 541 541 $(QUIET)$(VBOX_XSLTPROC) --stringparam mode define -o $@ $(filter-out $(VBOX_XML_SCHEMA_COMMON),$^) … … 551 551 552 552 xpcom-components_INST = $(INST_BIN)components/ 553 ifeq ($( BUILD_TARGET),linux)553 ifeq ($(KBUILD_TARGET),linux) 554 554 xpcom-components_SYMLINKS = \ 555 555 VirtualBox_XPCOM.xpt=>../VirtualBox_XPCOM.xpt \ … … 586 586 XIDLFILE = idl/VirtualBox.xidl 587 587 588 ifneq ($( BUILD_TARGET),win)588 ifneq ($(KBUILD_TARGET),win) 589 589 590 590 linux/helpers.cpp: $(IDLTYPELIB) -
trunk/src/VBox/Main/testcase/Makefile.kmk
r8505 r8758 45 45 samples_INST = $(INST_SDK_SAMPLES)/API/ 46 46 samples_MODE = a+r,u+w 47 ifeq ($( BUILD_TARGET),win)47 ifeq ($(KBUILD_TARGET),win) 48 48 samples_SOURCES = tstVBoxAPIWin.cpp 49 49 else … … 59 59 tstAPI_TEMPLATE = VBOXMAINCLIENTEXE 60 60 tstAPI_SOURCES = tstAPI.cpp 61 ifeq ($( BUILD_TARGET),win) ## @todo just add this to the template.61 ifeq ($(KBUILD_TARGET),win) ## @todo just add this to the template. 62 62 tstAPI_DEPS = $(VBOX_PATH_SDK)/include/VirtualBox.h 63 63 else -
trunk/src/VBox/Runtime/Makefile.kmk
r8757 r8758 38 38 # Only build the additions, sort out the legacy names first. 39 39 # 40 ifeq ($( BUILD_TARGET),win)40 ifeq ($(KBUILD_TARGET),win) 41 41 LIBRARIES = RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0 42 42 else … … 45 45 #LIBRARIES.win = RuntimeW32NT4GuestR0 46 46 ifndef VBOX_WITH_ADDITION_DRIVERS 47 if1of ($( BUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.47 if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0. 48 48 LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES)) 49 49 endif … … 67 67 LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0 68 68 endif 69 ifneq ($( BUILD_TARGET),win)69 ifneq ($(KBUILD_TARGET),win) 70 70 LIBRARIES += RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini 71 71 #LIBRARIES.os2 = RuntimeOS2Warp3GuestR0 72 72 #LIBRARIES.win = RuntimeW32NT4GuestR0 73 73 ifndef VBOX_WITH_ADDITION_DRIVERS 74 if1of ($( BUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.74 if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0. 75 75 LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES)) 76 76 endif … … 242 242 r3/tcp.cpp 243 243 244 #if1of ($( BUILD_TARGET_ARCH),amd64 x86)244 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86) 245 245 # RuntimeR3_SOURCES += common/time/timesupA.asm 246 246 #else … … 258 258 VBox/RTAssertDoBreakpoint-vbox.cpp \ 259 259 VBox/log-vbox.cpp 260 ifneq ($( BUILD_TARGET),win)260 ifneq ($(KBUILD_TARGET),win) 261 261 RuntimeR3_SOURCES += \ 262 262 common/err/errmsgxpcom.cpp … … 493 493 RuntimeR3L4_TEMPLATE = VBOXR3NP 494 494 RuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE 495 ifneq ($( BUILD_TARGET_ARCH),amd64)495 ifneq ($(KBUILD_TARGET_ARCH),amd64) 496 496 RuntimeR3L4_DEFS += __PIC__ 497 497 endif … … 541 541 RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win) 542 542 RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) 543 RuntimeGuestR3_DEFS.$( BUILD_TARGET) := $(RuntimeR3_DEFS.$(BUILD_TARGET))543 RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET)) 544 544 RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST)) 545 545 RuntimeGuestR3_INCS := $(RuntimeR3_INCS) 546 RuntimeGuestR3_INCS.$( BUILD_TARGET) := $(RuntimeR3_INCS.$(BUILD_TARGET))546 RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET)) 547 547 RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST)) 548 548 RuntimeGuestR3_SOURCES := $(filter-out \ … … 555 555 common/time/timesysalias.cpp \ 556 556 VBox/logbackdoor.cpp 557 RuntimeGuestR3_SOURCES.$( BUILD_TARGET) := $(RuntimeR3_SOURCES.$(BUILD_TARGET))557 RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET)) 558 558 RuntimeGuestR3_SOURCES.$(KBUILD_HOST):= $(RuntimeR3_SOURCES.$(KBUILD_HOST)) 559 RuntimeGuestR3_SOURCES.$( BUILD_TARGET).$(BUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))560 RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$( BUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(BUILD_TARGET_ARCH))561 RuntimeGuestR3_SOURCES.$( BUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(BUILD_TARGET).x86)559 RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 560 RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH)) 561 RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86) 562 562 RuntimeGuestR3_SOURCES.$(KBUILD_HOST).x86 := $(RuntimeR3_SOURCES.$(KBUILD_HOST).x86) 563 563 … … 572 572 RuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win) 573 573 RuntimeGuestR3Mini_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) RT_MINI 574 RuntimeGuestR3Mini_DEFS.$( BUILD_TARGET) := $(RuntimeR3_DEFS.$(BUILD_TARGET))574 RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET)) 575 575 RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST)) 576 576 RuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS) 577 RuntimeGuestR3Mini_INCS.$( BUILD_TARGET) := $(RuntimeR3_INCS.$(BUILD_TARGET))577 RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET)) 578 578 RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST)) 579 579 RuntimeGuestR3Mini_SOURCES = \ … … 636 636 RuntimeLnxHostR3_DEFS = IN_RT_R3 IN_SUP_R3 RT_WITH_VBOX RT_NO_GIP 637 637 RuntimeLnxHostR3_SOURCES = \ 638 $(RuntimeR3_SOURCES.linux.$( BUILD_TARGET_ARCH)) \638 $(RuntimeR3_SOURCES.linux.$(KBUILD_TARGET_ARCH)) \ 639 639 $(RuntimeR3_SOURCES.linux) \ 640 640 $(RuntimeR3_SOURCES) 641 641 RuntimeLnxHostR3_INCS = \ 642 $(RuntimeR3_INCS.linux.$( BUILD_TARGET_ARCH)) \642 $(RuntimeR3_INCS.linux.$(KBUILD_TARGET_ARCH)) \ 643 643 $(RuntimeR3_INCS.linux) \ 644 644 $(RuntimeR3_INCS) … … 650 650 VBoxRT_TEMPLATE = VBOXR3 651 651 VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL 652 ifeq ($( BUILD_TARGET),darwin)652 ifeq ($(KBUILD_TARGET),darwin) 653 653 VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE) 654 654 endif … … 658 658 VBox/VBoxRTDeps.cpp \ 659 659 $(RuntimeR3_SOURCES) 660 VBoxRT_SOURCES.$( BUILD_TARGET) = $(RuntimeR3_SOURCES.$(BUILD_TARGET))661 VBoxRT_SOURCES.$( BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))660 VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET)) 661 VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 662 662 VBoxRT_SOURCES.win += r3/win/dllmain-win.cpp 663 663 VBoxRT_SOURCES.win.x86 += r3/win/VBoxRT-win32.def 664 664 VBoxRT_SOURCES.win.amd64 += r3/win/VBoxRT-win64.def 665 665 VBoxRT_INCS = $(RuntimeR3_INCS) 666 VBoxRT_INCS.$( BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))667 VBoxRT_INCS.$( BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))666 VBoxRT_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET)) 667 VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 668 668 VBoxRT_LIBS = \ 669 669 $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \ … … 687 687 $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \ 688 688 -Wl,-no-whole-archive 689 ifeq ($( BUILD_TARGET),l4)689 ifeq ($(KBUILD_TARGET),l4) 690 690 VBoxRT_LIBS += \ 691 691 $(L4_LIBDIR)/libl4sys.a \ … … 818 818 VBox/strformat-vbox.cpp 819 819 820 #if1of ($( BUILD_TARGET_ARCH),amd64 x86)820 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86) 821 821 # RuntimeR0_SOURCES += common/time/timesupA.asm 822 822 #else … … 831 831 os2/sys0.asm 832 832 833 ifeq ($(filter-out darwin solaris freebsd,$( BUILD_TARGET)),)833 ifeq ($(filter-out darwin solaris freebsd,$(KBUILD_TARGET)),) 834 834 RuntimeR0_SOURCES += \ 835 835 common/math/gcc/adddi3.c \ … … 862 862 common/string/strlen.cpp_CXXFLAGS.win = -Oi- 863 863 864 ifeq ($( BUILD_TARGET),l4)864 ifeq ($(KBUILD_TARGET),l4) 865 865 RuntimeR0Drv_BLD_TRG = linux 866 866 RuntimeR0Drv_BLD_TRG_ARCH = x86 … … 1122 1122 RuntimeGuestR0_SDKS.win := W2K3DDKX86 WINPSDKINCS 1123 1123 RuntimeGuestR0_DEFS := $(RuntimeR0Drv_DEFS) 1124 RuntimeGuestR0_DEFS.$( BUILD_TARGET) := $(RuntimeR0Drv_DEFS.$(BUILD_TARGET))1124 RuntimeGuestR0_DEFS.$(KBUILD_TARGET) := $(RuntimeR0Drv_DEFS.$(KBUILD_TARGET)) 1125 1125 RuntimeGuestR0_INCS := $(PATH_SUB_CURRENT) include 1126 RuntimeGuestR0_INCS.$( BUILD_TARGET) := $(RuntimeR0Drv_INCS.$(BUILD_TARGET))1126 RuntimeGuestR0_INCS.$(KBUILD_TARGET) := $(RuntimeR0Drv_INCS.$(KBUILD_TARGET)) 1127 1127 RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES)) 1128 1128 RuntimeGuestR0_SOURCES += VBox/logbackdoor.cpp 1129 RuntimeGuestR0_SOURCES.$( BUILD_TARGET) := $(RuntimeR0Drv_SOURCES.$(BUILD_TARGET))1130 RuntimeGuestR0_SOURCES.$( BUILD_TARGET).$(BUILD_TARGET_ARCH) := $(RuntimeR0Drv_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))1129 RuntimeGuestR0_SOURCES.$(KBUILD_TARGET) := $(RuntimeR0Drv_SOURCES.$(KBUILD_TARGET)) 1130 RuntimeGuestR0_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR0Drv_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 1131 1131 ifdef VBOX_USE_VCC80 1132 1132 RuntimeGuestR0_SOURCES.win += \ … … 1155 1155 RuntimeW32GuestR0_INCS := $(PATH_SUB_CURRENT) include 1156 1156 RuntimeW32GuestR0_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS IN_SUP_R0 1157 RuntimeW32GuestR0_DEFS.$( BUILD_TARGET) =1157 RuntimeW32GuestR0_DEFS.$(KBUILD_TARGET) = 1158 1158 RuntimeW32GuestR0_SOURCES = \ 1159 1159 $(filter-out generic/RTLogWriteUser-generic.cpp,$(RuntimeR0Drv_SOURCES)) \ … … 1221 1221 VBox/strformat-vbox.cpp \ 1222 1222 1223 #if1of ($( BUILD_TARGET_ARCH),amd64 x86)1223 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86) 1224 1224 # RuntimeGC_SOURCES += common/time/timesupA.asm 1225 1225 #else … … 1233 1233 endif 1234 1234 1235 if1of ($( BUILD_TARGET), darwin solaris freebsd)1235 if1of ($(KBUILD_TARGET), darwin solaris freebsd) 1236 1236 RuntimeGC_SOURCES += \ 1237 1237 common/math/gcc/adddi3.c \ … … 1262 1262 RuntimeEFCPP_TEMPLATE = $(RuntimeR3_TEMPLATE) 1263 1263 RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS) 1264 RuntimeEFCPP_SDKS.$( BUILD_TARGET) = $(RuntimeR3_SDKS.$(BUILD_TARGET))1264 RuntimeEFCPP_SDKS.$(KBUILD_TARGET) = $(RuntimeR3_SDKS.$(KBUILD_TARGET)) 1265 1265 RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS) 1266 RuntimeEFCPP_DEFS.$( BUILD_TARGET) = $(RuntimeR3_DEFS.$(BUILD_TARGET))1266 RuntimeEFCPP_DEFS.$(KBUILD_TARGET) = $(RuntimeR3_DEFS.$(KBUILD_TARGET)) 1267 1267 RuntimeEFCPP_INCS = $(RuntimeR3_INCS) 1268 RuntimeEFCPP_INCS.$( BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))1268 RuntimeEFCPP_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET)) 1269 1269 RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp 1270 1270 -
trunk/src/VBox/VMM/testcase/Makefile.kmk
r8757 r8758 28 28 # 29 29 PROGRAMS += tstVMStructSize tstVMStructGC tstAsmStructs tstAsmStructsGC tstVMM tstVMM-HwAccm tstGlobalConfig 30 ifneq ($( BUILD_TARGET),win)30 ifneq ($(KBUILD_TARGET),win) 31 31 PROGRAMS += tstVMMFork 32 32 endif 33 33 ifdef VBOX_WITH_TESTCASES 34 34 PROGRAMS += tstCFGM tstSSM tstMMHyperHeap tstVMM-2 tstVMREQ tstMicro tstCompiler tstVMMR0CallHost-1 35 ifneq ($( BUILD_TARGET),l4)35 ifneq ($(KBUILD_TARGET),l4) 36 36 PROGRAMS += tstAnimate 37 37 endif … … 47 47 # validation testcases. Perhaps a bit hackish, but extremely useful. 48 48 # 49 ifeq ($( BUILD_TARGET),$(KBUILD_HOST))50 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $( BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)49 ifeq ($(KBUILD_TARGET),$(KBUILD_HOST)) 50 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),) 51 51 OTHERS += \ 52 52 $(PATH_TARGET)/tstAsmStructs.run \ … … 217 217 $(DEFS) \ 218 218 $(DEFS.$(BUILD_TYPE)) \ 219 $(DEFS.$( BUILD_TARGET)) \219 $(DEFS.$(KBUILD_TARGET)) \ 220 220 IN_RING3 \ 221 $(DEFS.$( BUILD_TARGET_ARCH)) \222 $(DEFS.$( BUILD_TARGET).$(BUILD_TARGET_ARCH)) \221 $(DEFS.$(KBUILD_TARGET_ARCH)) \ 222 $(DEFS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \ 223 223 ) \ 224 -f $(if $(eq $( BUILD_TARGET),darwin),macho,elf) \224 -f $(if $(eq $(KBUILD_TARGET),darwin),macho,elf) \ 225 225 $(foreach inc,$(INCS) $(VBOX_PATH_VMM_SRC)/testcase $(PATH_TARGET),-I$(inc)/) 226 226 -
trunk/src/libs/Makefile.kmk
r8155 r8758 24 24 25 25 26 subdirs := liblzf-1.51 $(subdirs.$( BUILD_TARGET))26 subdirs := liblzf-1.51 $(subdirs.$(KBUILD_TARGET)) 27 27 ifdef IPRT_WITH_KSTUFF 28 28 subdirs += kStuff … … 57 57 # FFmpeg for test videos 58 58 ifdef VBOX_WITH_FFMPEG 59 ifeq ($( BUILD_TARGET),darwin)59 ifeq ($(KBUILD_TARGET),darwin) 60 60 subdirs += ffmpeg-20060710 61 61 endif -
trunk/src/libs/ffmpeg-20060710/Makefile.kmk
r8155 r8758 25 25 DLLS = VBoxFFmpeg 26 26 27 ifeq ($( BUILD_TARGET),win)27 ifeq ($(KBUILD_TARGET),win) 28 28 VBoxFFmpeg_TOOL.win.x86 = MINGW32 29 29 #VBoxFFmpeg_TOOL.win.amd64 = MINGW64... … … 302 302 # The import library for Windows builds. 303 303 # The microsoft linker doesn't like the GNU import libraries from this MinGW version. 304 # 305 ifeq ($( BUILD_TARGET),win)304 # 305 ifeq ($(KBUILD_TARGET),win) 306 306 IMPORT_LIBS += VBoxFFmpegImp 307 307 VBoxFFmpegImp_TEMPLATE = VBOXR3 -
trunk/src/libs/xpcom18a4/Makefile.kmk
r8155 r8758 75 75 -fshort-wchar -fno-rtti -fno-exceptions -fpascal-strings \ 76 76 -framework CoreServices -framework CoreFoundation -framework Foundation -framework AppKit -framework Carbon 77 ifn1of ($( BUILD_TARGET), os2 win)77 ifn1of ($(KBUILD_TARGET), os2 win) 78 78 TEMPLATE_XPCOM_CXXFLAGS += -fPIC 79 79 TEMPLATE_XPCOM_CFLAGS += -fPIC … … 112 112 TEMPLATE_XPCOM_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst))) \ 113 113 $(PATH_VBox-xpcom-string)/idl_ts 114 ifeq ($( BUILD_TARGET),os2)114 ifeq ($(KBUILD_TARGET),os2) 115 115 ifndef USE_OS2_TOOLKIT_HEADERS 116 116 TEMPLATE_XPCOM_DEFS.os2 += OS2EMX_PLAIN_CHAR … … 165 165 166 166 TEMPLATE_XPCOMBLDPROG_DEFS = $(TEMPLATE_BLDPROG_DEFS) $(TEMPLATE_XPCOMEXE_DEFS) 167 TEMPLATE_XPCOMBLDPROG_DEFS.$( BUILD_TARGET) = $(TEMPLATE_BLDPROG_DEFS.$(BUILD_TARGET)) $(TEMPLATE_XPCOMEXE_DEFS.$(BUILD_TARGET))168 TEMPLATE_XPCOMBLDPROG_DEFS.$( BUILD_TARGET_ARCH) = $(TEMPLATE_BLDPROG_DEFS.$(BUILD_TARGET_ARCH)) $(TEMPLATE_XPCOMEXE_DEFS.$(BUILD_TARGET_ARCH))167 TEMPLATE_XPCOMBLDPROG_DEFS.$(KBUILD_TARGET) = $(TEMPLATE_BLDPROG_DEFS.$(KBUILD_TARGET)) $(TEMPLATE_XPCOMEXE_DEFS.$(KBUILD_TARGET)) 168 TEMPLATE_XPCOMBLDPROG_DEFS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_BLDPROG_DEFS.$(KBUILD_TARGET_ARCH)) $(TEMPLATE_XPCOMEXE_DEFS.$(KBUILD_TARGET_ARCH)) 169 169 TEMPLATE_XPCOMBLDPROG_CXXFLAGS = -ansi -Wall -Wno-non-virtual-dtor 170 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.$( BUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_CXXFLAGS.$(BUILD_TARGET_ARCH))170 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) 171 171 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.release = -O 172 172 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.profile = -O … … 174 174 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.linux = -pthread 175 175 TEMPLATE_XPCOMBLDPROG_CFLAGS = -pipe -ansi -Wall -Wno-unused 176 TEMPLATE_XPCOMBLDPROG_CFLAGS.$( BUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_CFLAGS.$(BUILD_TARGET_ARCH))176 TEMPLATE_XPCOMBLDPROG_CFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_CFLAGS.$(KBUILD_TARGET_ARCH)) 177 177 TEMPLATE_XPCOMBLDPROG_CFLAGS.release = -O 178 178 TEMPLATE_XPCOMBLDPROG_CFLAGS.profile = -O … … 185 185 $(VBOX_PATH_SDK)/include/xpcom/xpcom \ 186 186 $(VBOX_PATH_SDK)/include/xpcom/ipcd 187 TEMPLATE_XPCOMBLDPROG_INCS.$( BUILD_TARGET) = $(TEMPLATE_XPCOMEXE_INCS.$(BUILD_TARGET))188 TEMPLATE_XPCOMBLDPROG_INCS.$( BUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_INCS.$(BUILD_TARGET_ARCH))189 TEMPLATE_XPCOMBLDPROG_LIBPATH.$( BUILD_TARGET) = $(TEMPLATE_XPCOMEXE_LIBPATH.$(BUILD_TARGET))190 TEMPLATE_XPCOMBLDPROG_LIBPATH.$( BUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_LIBPATH.$(BUILD_TARGET_ARCH))191 TEMPLATE_XPCOMBLDPROG_LDFLAGS.$( BUILD_TARGET) = $(TEMPLATE_XPCOMEXE_LDFLAGS.$(BUILD_TARGET))192 TEMPLATE_XPCOMBLDPROG_LDFLAGS.$( BUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_LDFLAGS.$(BUILD_TARGET_ARCH))187 TEMPLATE_XPCOMBLDPROG_INCS.$(KBUILD_TARGET) = $(TEMPLATE_XPCOMEXE_INCS.$(KBUILD_TARGET)) 188 TEMPLATE_XPCOMBLDPROG_INCS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_INCS.$(KBUILD_TARGET_ARCH)) 189 TEMPLATE_XPCOMBLDPROG_LIBPATH.$(KBUILD_TARGET) = $(TEMPLATE_XPCOMEXE_LIBPATH.$(KBUILD_TARGET)) 190 TEMPLATE_XPCOMBLDPROG_LIBPATH.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_LIBPATH.$(KBUILD_TARGET_ARCH)) 191 TEMPLATE_XPCOMBLDPROG_LDFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_XPCOMEXE_LDFLAGS.$(KBUILD_TARGET)) 192 TEMPLATE_XPCOMBLDPROG_LDFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_XPCOMEXE_LDFLAGS.$(KBUILD_TARGET_ARCH)) 193 193 TEMPLATE_XPCOMBLDPROG_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst))) 194 194 … … 272 272 PROGRAMS += VBoxXPCOMIPCD 273 273 274 ifeq ($( BUILD_TARGET),linux)274 ifeq ($(KBUILD_TARGET),linux) 275 275 XPCOM_TYPELIB = $(PATH_BIN)/VBoxXPCOMBase.xpt 276 276 else … … 577 577 xpcom/typelib/xpt/src/xpt_xdr.c 578 578 579 ifeq ($( BUILD_TARGET),os2)579 ifeq ($(KBUILD_TARGET),os2) 580 580 # glib and libIDL needed by XPCOM on OS/2. 581 581 ifeq ($(VBOX_PATH_GLIB),) … … 737 737 nsprpub/lib/libc/src/plgetopt.c 738 738 739 ifeq ($(filter-out darwin freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),) # unixish739 ifeq ($(filter-out darwin freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # unixish 740 740 VBox-xpcom-nspr_SOURCES += \ 741 741 nsprpub/pr/src/md/unix/unix.c \ … … 935 935 VBox-xpcom-io_SOURCES.l4 = \ 936 936 xpcom/io/nsLocalFileL4.cpp 937 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$( BUILD_TARGET)),)937 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) 938 938 VBox-xpcom-io_SOURCES += \ 939 939 xpcom/io/nsLocalFileUnix.cpp … … 1101 1101 $(TARGET_VBoxXPCOMGlue_s) 1102 1102 1103 ifeq ($(filter-out freebsd l4 linux netbsd openbsd,$( BUILD_TARGET)),) # gnu ld.1103 ifeq ($(filter-out freebsd l4 linux netbsd openbsd,$(KBUILD_TARGET)),) # gnu ld. 1104 1104 VBoxXPCOM_LDFLAGS = -Wl,--whole-archive \ 1105 1105 $(TARGET_VBox-xpcom-typelib) \ … … 1149 1149 TEMPLATE_XPCOMIPC_EXTENDS = XPCOM 1150 1150 TEMPLATE_XPCOMIPC_DEFS = $(TEMPLATE_XPCOM_DEFS) BUILD_DCONNECT="1" 1151 ifeq ($(filter-out win os2,$( BUILD_TARGET)),)1151 ifeq ($(filter-out win os2,$(KBUILD_TARGET)),) 1152 1152 TEMPLATE_XPCOMIPC_DEFS += IPC_DAEMON_APP_NAME=\"VBoxXPCOMIPCD.exe\" 1153 1153 else … … 1208 1208 VBoxXPCOMIPCC_TEMPLATE = XPCOMIPC 1209 1209 VBoxXPCOMIPCC_NAME.os2 = VBoxIPCC 1210 ifneq ($( BUILD_TARGET),linux)1210 ifneq ($(KBUILD_TARGET),linux) 1211 1211 VBoxXPCOMIPCC_INST = $(INST_BIN)components/ 1212 1212 endif … … 1217 1217 ipc/ipcd/client/src/ipcModuleFactory.cpp \ 1218 1218 ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp 1219 ifeq ($( BUILD_TARGET),win)1219 ifeq ($(KBUILD_TARGET),win) 1220 1220 VBoxXPCOMIPCC_SOURCES += \ 1221 1221 ipc/ipcd/client/src/ipcConnectionWin.cpp … … 1241 1241 ipc/ipcd/daemon/src/ipcModuleReg.cpp \ 1242 1242 ipc/ipcd/daemon/src/ipcCommandModule.cpp 1243 ifeq ($( BUILD_TARGET),win)1243 ifeq ($(KBUILD_TARGET),win) 1244 1244 VBoxXPCOMIPCD_SOURCES += \ 1245 1245 ipc/ipcd/daemon/src/ipcdWin.cpp -
trunk/src/recompiler/Makefile.kmk
r8757 r8758 39 39 40 40 BLDPROGS = dyngen 41 ifneq ($(or $(eq $( BUILD_TARGET_ARCH),amd64) , $(VBOX_TARGET_MAC_OS_X_VERSION_10_5)),)41 ifneq ($(or $(eq $(KBUILD_TARGET_ARCH),amd64) , $(VBOX_TARGET_MAC_OS_X_VERSION_10_5)),) 42 42 SYSMODS = VBoxREM2 43 43 REM_MOD = VBoxREM2 … … 62 62 # when stuffed into a shared library and windows doesn't have 64-bit gcc (yet). 63 63 # 64 ifeq ($(filter-out l4 darwin freebsd,$( BUILD_TARGET)),)64 ifeq ($(filter-out l4 darwin freebsd,$(KBUILD_TARGET)),) 65 65 REM_USE_NOCRT := 1 66 66 endif … … 83 83 dyngen_TEMPLATE = VBOXBLDPROG 84 84 endif 85 ifeq ($( BUILD_TARGET_ARCH),amd64)85 ifeq ($(KBUILD_TARGET_ARCH),amd64) 86 86 dyngen_DEFS += HOST_X86_64=1 87 87 endif … … 122 122 $(REM_MOD)_SOURCES.debug = \ 123 123 Sun/testmath.c 124 ifeq ($(filter-out win os2,$( BUILD_TARGET)),)124 ifeq ($(filter-out win os2,$(KBUILD_TARGET)),) 125 125 $(REM_MOD)_SOURCES += target-i386/op.c 126 126 FILE_OP_OBJ = $(PATH_$(REM_MOD)_target-i386/op.c)/op.o … … 141 141 $(REM_MOD)_CFLAGS.amd64 = -O2 142 142 $(REM_MOD)_CFLAGS.debug = -O0 143 ifdef ($( BUILD_TARGET_ARCH),x86)143 ifdef ($(KBUILD_TARGET_ARCH),x86) 144 144 $(REM_MOD)_CFLAGS.release+= -fomit-frame-pointer -fno-gcse 145 145 endif … … 147 147 # This doesn't fit in IPRT because it requires GAS and is LGPL. 148 148 $(REM_MOD)_SOURCES += \ 149 Sun/e_powl-$( BUILD_TARGET_ARCH).S149 Sun/e_powl-$(KBUILD_TARGET_ARCH).S 150 150 151 151 ifeq ($(REM_MOD),VBoxREM) … … 154 154 $(LIB_VMM) \ 155 155 $(LIB_RUNTIME) 156 ifeq ($( BUILD_TARGET),l4)156 ifeq ($(KBUILD_TARGET),l4) 157 157 $(REM_MOD)_LIBS += \ 158 158 $(L4_LIBDIR)/libuc.0.s.so … … 184 184 $(REM_MOD)_CFLAGS.kprofile = $($(REM_MOD)_CFLAGS.release) 185 185 $(REM_MOD)_CFLAGS.l4 = -nostdinc 186 ifeq ($( BUILD_TARGET),l4)186 ifeq ($(KBUILD_TARGET),l4) 187 187 $(REM_MOD)_INCS += $(VBOX_L4_GCC3_INCS) $(L4_INCDIR) 188 188 endif … … 200 200 $(REM_MOD)_LDFLAGS.solaris = -mimpure-text 201 201 $(REM_MOD)_DEFS.solaris += HOST_SOLARIS=11 202 ifeq ($( BUILD_TARGET_ARCH),amd64)202 ifeq ($(KBUILD_TARGET_ARCH),amd64) 203 203 $(REM_MOD)_LIBS = $(FILE_TOOL_GCC3_LIBGCC) 204 204 else # x86 … … 282 282 # 283 283 VBoxREMImp_TEMPLATE = VBOXR3 284 ifeq ($( BUILD_TARGET),darwin)284 ifeq ($(KBUILD_TARGET),darwin) 285 285 VBoxREMImp_INST = $(INST_LIB) 286 286 endif 287 287 VBoxREMImp_SOURCES.win = VBoxREM.def 288 288 VBoxREMImp_SOURCES.os2 = $(PATH_TARGET)/VBoxREMOS2.def 289 ifeq ($(filter win os2,$( BUILD_TARGET)),)289 ifeq ($(filter win os2,$(KBUILD_TARGET)),) 290 290 VBoxREMImp_SOURCES = $(PATH_TARGET)/VBoxREMImp.c 291 291 VBoxREMImp_CLEAN = $(PATH_TARGET)/VBoxREMImp.c 292 292 endif 293 ifneq ($(filter-out darwin os2 win,$( BUILD_TARGET)),)293 ifneq ($(filter-out darwin os2 win,$(KBUILD_TARGET)),) 294 294 VBoxREMImp_SONAME = VBoxREM$(SUFF_DLL) 295 295 endif … … 338 338 # 339 339 ifndef VBOX_RECOMPILER_OP_GCC 340 ifeq ($( BUILD_TARGET).$(BUILD_TARGET_ARCH),darwin.x86)340 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86) 341 341 VBOX_RECOMPILER_OP_GCC ?= $(notdir $(firstword $(which i386-elf-gcc-3.4 i386-elf-gcc-3.4.6 i386-elf-gcc-3.4.3 i386-elf-gcc) i386-elf-gcc)) # (port install i386-gcc-elf) 342 342 VBOX_RECOMPILER_OP_GCC_OK := yes … … 357 357 -S -s \ 358 358 $(filter-out -g -O0, \ 359 $($(REM_MOD)_CFLAGS) $($(REM_MOD)_CFLAGS.$(BUILD_TYPE)) $($(REM_MOD)_CFLAGS.$( BUILD_TARGET)) $($(REM_MOD)_CFLAGS.$(BUILD_TARGET_ARCH)) $($(REM_MOD)_CFLAGS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)) \360 $(target-i386/op.c_CFLAGS) $(target-i386/op.c_CFLAGS.$( BUILD_TARGET)) $(target-i386/op.c_CFLAGS.$(BUILD_TARGET_ARCH)) $(target-i386/op.c_CFLAGS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)) \359 $($(REM_MOD)_CFLAGS) $($(REM_MOD)_CFLAGS.$(BUILD_TYPE)) $($(REM_MOD)_CFLAGS.$(KBUILD_TARGET)) $($(REM_MOD)_CFLAGS.$(KBUILD_TARGET_ARCH)) $($(REM_MOD)_CFLAGS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \ 360 $(target-i386/op.c_CFLAGS) $(target-i386/op.c_CFLAGS.$(KBUILD_TARGET)) $(target-i386/op.c_CFLAGS.$(KBUILD_TARGET_ARCH)) $(target-i386/op.c_CFLAGS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \ 361 361 ) \ 362 362 $(addprefix -I, \ 363 $($(REM_MOD)_CINCS.$( BUILD_TARGET_ARCH)) $($(REM_MOD)_CINCS.$(BUILD_TARGET)) $($(REM_MOD)_CINCS) $(CINCS) \364 $($(REM_MOD)_INCS.$( BUILD_TARGET_ARCH)) $($(REM_MOD)_INCS.$(BUILD_TARGET)) $($(REM_MOD)_INCS) $(INCS) \363 $($(REM_MOD)_CINCS.$(KBUILD_TARGET_ARCH)) $($(REM_MOD)_CINCS.$(KBUILD_TARGET)) $($(REM_MOD)_CINCS) $(CINCS) \ 364 $($(REM_MOD)_INCS.$(KBUILD_TARGET_ARCH)) $($(REM_MOD)_INCS.$(KBUILD_TARGET)) $($(REM_MOD)_INCS) $(INCS) \ 365 365 ) \ 366 366 $(addprefix -D, \ 367 $($(REM_MOD)_CDEFS.$( BUILD_TARGET_ARCH)) $($(REM_MOD)_CDEFS.$(BUILD_TARGET)) $($(REM_MOD)_CDEFS) $(CDEFS.$(BUILD_TARGET)) $(CDEFS.$(BUILD_TARGET_ARCH)) $(CDEFS.$(BUILD_TYPE)) $(CDEFS) \368 $($(REM_MOD)_DEFS.$( BUILD_TARGET_ARCH)) $($(REM_MOD)_DEFS.$(BUILD_TARGET)) $($(REM_MOD)_DEFS) $(DEFS.$(BUILD_TARGET)) $(DEFS.$(BUILD_TARGET_ARCH)) $(DEFS.$(BUILD_TYPE)) $(DEFS) \367 $($(REM_MOD)_CDEFS.$(KBUILD_TARGET_ARCH)) $($(REM_MOD)_CDEFS.$(KBUILD_TARGET)) $($(REM_MOD)_CDEFS) $(CDEFS.$(KBUILD_TARGET)) $(CDEFS.$(KBUILD_TARGET_ARCH)) $(CDEFS.$(BUILD_TYPE)) $(CDEFS) \ 368 $($(REM_MOD)_DEFS.$(KBUILD_TARGET_ARCH)) $($(REM_MOD)_DEFS.$(KBUILD_TARGET)) $($(REM_MOD)_DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(DEFS.$(BUILD_TYPE)) $(DEFS) \ 369 369 ) \ 370 370 -Wp,-MD,$(PATH_$(REM_MOD))/op.S.dep \ … … 379 379 380 380 # Drop incompatible options when using the cross-compiler on darwin. 381 ifeq ($( BUILD_TARGET),darwin)381 ifeq ($(KBUILD_TARGET),darwin) 382 382 ifeq ($(filter-out i386-elf-gcc%, $(VBOX_RECOMPILER_OP_GCC)),) 383 383 COMPILE_OP_CMDS := $(filter-out -mdynamic-no-pic -mno-dynamic-no-pic -fno-stack-protector, $(COMPILE_OP_CMDS)) 384 384 endif 385 else if1of ($( BUILD_TARGET),linux)385 else if1of ($(KBUILD_TARGET),linux) 386 386 ifneq ($(TOOL_$(VBOX_GCC_TOOL)_CC),$(VBOX_RECOMPILER_OP_GCC)) 387 387 VBOX_RECOMPILER_OP_CHECK_CC_GCC = $(shell \ … … 401 401 $(PATH_$(REM_MOD))/op.S: \ 402 402 target-i386/op.c \ 403 Sun/staged-op-elf-$( BUILD_TARGET_ARCH).S \403 Sun/staged-op-elf-$(KBUILD_TARGET_ARCH).S \ 404 404 Sun/op-validate.sed \ 405 405 Sun/op-darwin.sed \ … … 421 421 else \ 422 422 $(ECHO_EXT) "Using staged op.S [gcc v$${major_ver}.$${minor_ver}.$${bugfix_ver}]" && \ 423 $(CP_EXT) -f Sun/staged-op-elf-$( BUILD_TARGET_ARCH).S [email protected]; \423 $(CP_EXT) -f Sun/staged-op-elf-$(KBUILD_TARGET_ARCH).S [email protected]; \ 424 424 fi 425 425 else 426 $(CP) Sun/staged-op-elf-$( BUILD_TARGET_ARCH).S [email protected]426 $(CP) Sun/staged-op-elf-$(KBUILD_TARGET_ARCH).S [email protected] 427 427 endif 428 428 $(SED) -f Sun/op-validate.sed [email protected] 429 ifeq ($( BUILD_TARGET),darwin)429 ifeq ($(KBUILD_TARGET),darwin) 430 430 $(SED) -f Sun/op-darwin.sed [email protected] > [email protected] 431 431 $(SED) -e 's/^\(.*\)$$/#define \1 _\1/' Sun/op-undefined.lst > [email protected] … … 442 442 DYNGEN = $(PATH_dyngen)/dyngen$(HOSTSUFF_EXE) 443 443 DYNGEN_EXEC = $(DYNGEN) 444 ifneq ($(KBUILD_HOST),$( BUILD_TARGET)) # hack for crosscompiling.445 ifeq ($( BUILD_TARGET),win)444 ifneq ($(KBUILD_HOST),$(KBUILD_TARGET)) # hack for crosscompiling. 445 ifeq ($(KBUILD_TARGET),win) 446 446 DYNGEN = $(PATH_dyngen)/dyngen.exe 447 447 DYNGEN_EXEC := $(EXEC_X86_WIN32) $(DYNGEN_EXEC) -
trunk/tools/CommonFetch.kmk
r8265 r8758 1 1 # $Id$ 2 2 ## @file 3 # Common Fetch. 3 # Common Fetch. 4 4 # Included by both Makefile.kmk and Makefile-ose.kmk. 5 5 # … … 36 36 # OS/2 stuff. 37 37 # 38 ifeq ($( BUILD_TARGET),os2)38 ifeq ($(KBUILD_TARGET),os2) 39 39 FETCHES += os2.x86.glibidl.20070521 40 40 os2.x86.glibidl.20070521_TEMPLATE = VBOXFETCH
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器