VirtualBox

Changeset 16333 in vbox


Ignore:
Timestamp:
Jan 28, 2009 8:28:47 PM (16 years ago)
Author:
vboxsync
Message:

Config.kmk: 64-bit mac in the works...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r16290 r16333  
    527527 VBOX_WITH_VRDP_RDESKTOP=
    528528 VBOX_WITH_PDM_ASYNC_COMPLETION=
     529 ifeq ($(KBUILD_TARGET_ARCH),amd64)
     530  # Temporary:
     531  VBOX_WITH_QTGUI=
     532  VBOX_WITH_MAIN=
     533  VBOX_WITH_DEBUGGER_GUI=
     534  VBOX_WITH_VBOXSDL=
     535  VBOX_WITH_VBOXBFE=
     536  VBOX_WITH_WEBSERVICES=
     537 endif
    529538endif
    530539
     
    813822endif
    814823ifeq ($(VBOX_LDR_FMT),macho)
    815  VBOX_ASFLAGS_FMT = -f macho -DASM_FORMAT_MACHO
     824 ifeq ($(KBUILD_TARGET_ARCH),x86)
     825  VBOX_ASFLAGS_FMT = -f macho32 -DASM_FORMAT_MACHO
     826 else
     827  VBOX_ASFLAGS_FMT = -f macho64 -DASM_FORMAT_MACHO
     828 endif
    816829 VBOX_ASFLAGS_DBFINFO = -g dwarf2
    817830endif
     
    837850endif
    838851ifeq ($(VBOX_LDR_FMT32),macho)
    839  VBOX_ASFLAGS_FMT32 = -f macho -DASM_FORMAT_MACHO
     852 VBOX_ASFLAGS_FMT32 = -f macho32 -DASM_FORMAT_MACHO
    840853 VBOX_ASFLAGS_DBFINFO32 = -g dwarf2
    841854endif
     
    13561369#
    13571370ifeq ($(KBUILD_TARGET),darwin)
    1358  VBOX_DEF_MACOSX_VERSION_MIN ?= 10.4
     1371 ifeq ($(KBUILD_TARGET_ARCH),x86)
     1372  VBOX_DEF_MACOSX_VERSION_MIN ?= 10.4
     1373 else
     1374  VBOX_DEF_MACOSX_VERSION_MIN ?= 10.6
     1375 endif
    13591376 ifeq ($(VBOX_DEF_MACOSX_VERSION_MIN),10.4)
    13601377  ifeq ($(origin VBOX_DARWIN_CLASSIC_LINKER),undefined)
     
    13921409 VBOX_DARWIN_DEF_SDK_10_5_OBJCFLAGS := -mmacosx-version-min=10.5 -isysroot $(VBOX_PATH_MACOSX_SDK_10_5)
    13931410 VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS   := -mmacosx-version-min=10.5 -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK_10_5)
     1411
     1412 # specific versions.
     1413 VBOX_PATH_MACOSX_SDK_10_6          ?= /Developer/SDKs/MacOSX10.6.sdk
     1414 VBOX_DARWIN_DEF_SDK_10_6_DEFS      := MAC_OS_X_VERSION_MIN_REQUIRED=1060 MAC_OS_X_VERSION_MAX_ALLOWED=1060
     1415 VBOX_DARWIN_DEF_SDK_10_6_CFLAGS    := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6)
     1416 VBOX_DARWIN_DEF_SDK_10_6_CXXFLAGS  := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6)
     1417 VBOX_DARWIN_DEF_SDK_10_6_OBJCFLAGS := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6)
     1418 VBOX_DARWIN_DEF_SDK_10_6_LDFLAGS   := -mmacosx-version-min=10.6 -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK_10_6)
    13941419
    13951420endif # target=darwin
     
    18991924TEMPLATE_VBOXGC_TOOL                = GXX4MACHO
    19001925TEMPLATE_VBOXGC_DEFS               += $(VBOX_DARWIN_DEF_SDK_DEFS)
    1901 TEMPLATE_VBOXGC_CXXFLAGS            = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing
    1902 TEMPLATE_VBOXGC_CFLAGS              = $(VBOX_DARWIN_DEF_SDK_CFLAGS)   -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing
    1903 TEMPLATE_VBOXGC_LDFLAGS             = $(VBOX_DARWIN_DEF_SDK_LDFLAGS)  -nostdlib
     1926TEMPLATE_VBOXGC_CXXFLAGS            = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -m32 -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static -fno-exceptions -fno-rtti $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing
     1927TEMPLATE_VBOXGC_CFLAGS              = $(VBOX_DARWIN_DEF_SDK_CFLAGS)   -m32 -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing
     1928TEMPLATE_VBOXGC_LDFLAGS             = $(VBOX_DARWIN_DEF_SDK_LDFLAGS)  -m32 -nostdlib
    19041929#TEMPLATE_VBOXGC_LDFLAGS.release     = -Wl,-S ???
    19051930endif
     
    20182043TEMPLATE_VBOXR0_TOOL                = GXX4MACHO
    20192044TEMPLATE_VBOXR0_DEFS               += $(VBOX_DARWIN_DEF_SDK_DEFS)
    2020 TEMPLATE_VBOXR0_CXXFLAGS            = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing
    2021 TEMPLATE_VBOXR0_CFLAGS              = $(VBOX_DARWIN_DEF_SDK_CFLAGS)   -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing
    2022 TEMPLATE_VBOXR0_LDFLAGS             = $(VBOX_DARWIN_DEF_SDK_LDFLAGS)  -nostdlib
     2045TEMPLATE_VBOXR0_CXXFLAGS            = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) \
     2046        -fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing \
     2047        -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
     2048TEMPLATE_VBOXR0_CXXFLAGS.amd64      = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2  -mno-sse4a
     2049TEMPLATE_VBOXR0_CXXFLAGS.x86        = -m32
     2050TEMPLATE_VBOXR0_CFLAGS              = $(VBOX_DARWIN_DEF_SDK_CFLAGS)   -nostdinc -g -pipe $(VBOX_GCC_PEDANTIC) $(VBOX_GCC_Wno-variadic-macros) \
     2051        -fno-common -msoft-float -static -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing \
     2052        -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
     2053TEMPLATE_VBOXR0_CFLAGS.amd64        = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2  -mno-sse4a
     2054TEMPLATE_VBOXR0_CFLAGS.x86          = -m32
     2055TEMPLATE_VBOXR0_LDFLAGS             = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -nostdlib
    20232056#TEMPLATE_VBOXR0_LDFLAGS.release     = -Wl,-S ???
     2057TEMPLATE_VBOXR0_LDFLAGS.amd64       = -m64
     2058TEMPLATE_VBOXR0_LDFLAGS.x86         = -m32
    20242059endif
    20252060
     
    21062141TEMPLATE_VBOXR0DRV_CXXFLAGS            = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) \
    21072142        -g -pipe $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \
    2108         -fno-keep-inline-functions -force_cpusubtype_ALL -fno-exceptions -msoft-float -static \
     2143        -fno-keep-inline-functions -fno-exceptions -msoft-float -static \
    21092144        -fapple-kext -fno-rtti -fcheck-new
     2145## @todo check what Xcode does wrt -mno-sse -mno-mmx -mno-sse2 -mno-3dnow on amd64.
     2146TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64      = -m64 -mno-red-zone
     2147TEMPLATE_VBOXR0DRV_CXXFLAGS.x86        = -m32 -force_cpusubtype_ALL
    21102148TEMPLATE_VBOXR0DRV_CXXFLAGS.release    = $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fasm-blocks
    21112149TEMPLATE_VBOXR0DRV_CXXFLAGS.profile    = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release)
     
    21132151TEMPLATE_VBOXR0DRV_CFLAGS              = $(VBOX_DARWIN_DEF_SDK_CFLAGS) \
    21142152        -g -pipe $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \
    2115         -fno-keep-inline-functions -force_cpusubtype_ALL -fno-exceptions -msoft-float -static \
     2153        -fno-keep-inline-functions -fno-exceptions -msoft-float -static \
    21162154        -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
     2155TEMPLATE_VBOXR0DRV_CFLAGS.amd64        = -m64 -mno-red-zone
     2156TEMPLATE_VBOXR0DRV_CFLAGS.x86          = -m32 -force_cpusubtype_ALL
    21172157TEMPLATE_VBOXR0DRV_CFLAGS.release      = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.release)
    21182158TEMPLATE_VBOXR0DRV_CFLAGS.profile      = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.profile)
    21192159TEMPLATE_VBOXR0DRV_CFLAGS.kprofile     = $(TEMPLATE_VBOXR0DRV_CXXFLAGS.kprofile)
    21202160TEMPLATE_VBOXR0DRV_LDFLAGS             = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -static -nostdlib -r -Wl,-Y,1455 -keep_private_extern
     2161TEMPLATE_VBOXR0DRV_LDFLAGS.amd64       = -m64
     2162TEMPLATE_VBOXR0DRV_LDFLAGS.x86         = -m32
    21212163TEMPLATE_VBOXR0DRV_LIBS                = kmodc++ kmod cc_kext cpp_kext $(VBOX_GCC_LIBGCC)
    21222164
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette