VirtualBox

Changeset 6242 in vbox


Ignore:
Timestamp:
Jan 4, 2008 6:37:57 PM (17 years ago)
Author:
vboxsync
Message:

use if1of.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r6241 r6242  
    372372#
    373373VBOX_BUILD_TYPES ?= release profile debug kprofile #todo: checked
    374 ifneq ($(filter-out $(VBOX_BUILD_TYPES),$(BUILD_TYPE)),)
     374ifn1of ($(BUILD_TYPE), $(VBOX_BUILD_TYPES))
    375375 $(error Invalid BUILD_TYPE value '$(BUILD_TYPE)'. Choose one these: $(VBOX_BUILD_TYPES))
    376376endif
     
    459459# Image and object format config.
    460460#
    461 ifeq ($(filter-out linux l4 freebsd netbsd openbsd solaris,$(BUILD_TARGET)),)
     461if1of ($(BUILD_TARGET), linux l4 freebsd netbsd openbsd solaris)
    462462 VBOX_LDR_FMT = elf
    463463endif
     
    781781# Add the output dir(s) to the dynamic loader search path.
    782782#
    783 ifeq ($(filter-out linux l4 freebsd netbsd openbsd solaris,$(BUILD_TARGET)),)
     783if1of ($(BUILD_TARGET), linux l4 freebsd netbsd openbsd solaris)
    784784 export LD_LIBRARY_PATH:=$(PATH_BIN):$(PATH_LIB):$(LD_LIBRARY_PATH)
    785785endif
     
    812812 LIB_XPCOM       = $(PATH_BIN)/VBoxXPCOM.s.so
    813813endif
    814 ifeq ($(filter-out linux freebsd netbsd openbsd solaris,$(BUILD_TARGET)),)
     814if1of ($(BUILD_TARGET), linux freebsd netbsd openbsd solaris)
    815815 LIB_RUNTIME     = $(PATH_BIN)/VBoxRT.so
    816816 LIB_RUNTIME_EF  = $(PATH_LIB)/RuntimeEFCPP.a
     
    915915# We need to export YASM for OSE, but since it was converted to .zip we need to
    916916# allow for the location used by the zip to be properly cleaned up first.
    917 ifeq ($(filter-out win.x86 linux.x86 solaris.x86, $(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH)),)
     917if1of ($(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH),  win.x86 linux.x86 solaris.x86)
    918918 PATH_TOOL_YASM ?= $(PATH_DEVTOOLS_BLD)/bin
    919919endif
     
    11511151#
    11521152VBOX_PREF_LIB =
    1153 ifeq ($(filter-out win os2,$(BUILD_TARGET)),)
     1153if1of ($(BUILD_TARGET),win os2)
    11541154VBOX_SUFF_LIB = .lib
    11551155else
     
    11901190
    11911191SDK_VBOX_ZLIB         = .
    1192 ifeq ($(filter-out win os2,$(BUILD_TARGET)),)
     1192if1of ($(BUILD_TARGET), win os2)
    11931193 SDK_VBOX_ZLIB_INCS  ?= $(PATH_ROOT)/src/libs/zlib-1.2.1
    11941194 SDK_VBOX_ZLIB_LIBS  ?= $(PATH_LIB)/VBox-zlib$(VBOX_SUFF_LIB)
     
    12031203
    12041204SDK_VBOX_FFMPEG       = .
    1205 ifeq ($(filter-out win os2 darwin,$(BUILD_TARGET)),)
     1205if1of ($(BUILD_TARGET), win os2 darwin)
    12061206 SDK_VBOX_FFMPEG_INCS ?= \
    12071207        $(PATH_ROOT)/src/libs/ffmpeg-20060710/libavutil \
     
    13161316# The linux kernel headers(/sources).
    13171317#
    1318 ifneq ($(filter linux,$(BUILD_TARGET)),)
     1318if1of ($(BUILD_TARGET), linux)
    13191319 ifeq ($(origin VBOX_LINUX_SRC),undefined)
    13201320  ifneq ($(wildcard /lib/modules/$(shell uname -r)/build/include/linux/autoconf.h),)
     
    13861386 TEMPLATE_VBOXGC_LDFLAGS.release    = $(if $(VBOX_DO_STRIP_MODULES),-S,)
    13871387endif
    1388 ifneq ($(filter-out solaris freebsd,$(BUILD_TARGET)),)
    1389 TEMPLATE_VBOXGC_LIBS                = \
     1388ifn1of ($(BUILD_TARGET), solaris freebsd)
     1389 TEMPLATE_VBOXGC_LIBS               = \
    13901390        $(VBOX_GCC32_LIBGCC) # instricts
    13911391endif
     
    14891489 TEMPLATE_VBOXR0_LDFLAGS.release     = $(if $(VBOX_DO_STRIP_MODULES),-S,)
    14901490endif
    1491 
    1492 ifneq ($(filter-out solaris freebsd,$(BUILD_TARGET)),)
     1491ifn1of ($(BUILD_TARGET),solaris freebsd)
    14931492 TEMPLATE_VBOXR0_LIBS                = \
    14941493        $(VBOX_GCC_LIBGCC) # instricts
     
    17921791TEMPLATE_VBOXR3EXE_LDFLAGS             = -read_only_relocs suppress
    17931792TEMPLATE_VBOXR3EXE_INCS               += $(VBOX_PATH_MACOSX_SDK_INCS)
    1794  else ifeq ($(filter-out freebsd netbsd openbsd,$(BUILD_TARGET)),)
     1793 else if1of ($(BUILD_TARGET),freebsd netbsd openbsd)
    17951794TEMPLATE_VBOXR3EXE_TOOL                = GXX3
    17961795TEMPLATE_VBOXR3EXE_LIBS                = pthread
     
    19451944 else # x86:
    19461945  TEMPLATE_VBOXNOCRTGCC_LDFLAGS         = -nostdlib
    1947   ifneq ($(filter-out os2 darwin solaris,$(BUILD_TARGET)),)
     1946  ifn1of ($(BUILD_TARGET), os2 darwin solaris)
    19481947   TEMPLATE_VBOXNOCRTGCC_LDFLAGS       += -Wl,--no-undefined
    19491948  endif
     
    20422041TEMPLATE_VBOXMAINEXE_LIBS                = $(LIB_RUNTIME)
    20432042TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin      = -bind_at_load -framework Carbon
    2044  else ifeq ($(filter-out freebsd netbsd openbsd,$(BUILD_TARGET)),)
     2043 else if1of ($(BUILD_TARGET), freebsd netbsd openbsd)
    20452044TEMPLATE_VBOXMAINEXE_TOOL                = GXX3
    20462045TEMPLATE_VBOXMAINEXE_LIBS                = $(LIB_RUNTIME)
     
    23522351TEMPLATE_VBOXBLDPROG_LIBS                =
    23532352TEMPLATE_VBOXBLDPROG_INCS               += $(VBOX_PATH_MACOSX_SDK_INCS)
    2354  else ifeq ($(filter-out freebsd netbsd openbsd,$(BUILD_PLATFORM)),)
     2353 else if1of ($(BUILD_PLATFORM), freebsd netbsd openbsd)
    23552354TEMPLATE_VBOXBLDPROG_TOOL                = GXX3
    23562355TEMPLATE_VBOXBLDPROG_LIBS                =
     
    27602759
    27612760ifndef VBOX_OSE
    2762 ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # linux only, yea, right.
     2761if1of ($(BUILD_TARGET),freebsd linux netbsd openbsd solaris)
    27632762VBOX_LICENSE_SRC := $(PATH_ROOT)/doc/License.html
    27642763## @todo this can be done by sed alone. Why do we have to do this $(shell ) stuff in *all* make
    27652764# files btw? If this is really necessary, then just do it once for <insert deity of choice>'s sake.
     2765# Who-ever added this, please fix!
    27662766VBOX_LICENSE_VER := $(shell grep Version $(VBOX_LICENSE_SRC)|sed -e 's/.*Version \([0-9.]*\),.*/\1/g')
    27672767VBOX_LICENSE_BIN := $(PATH_BIN)/License-$(VBOX_LICENSE_VER).html
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