VirtualBox

Changeset 2064 in kBuild


Ignore:
Timestamp:
Nov 16, 2008 1:39:23 PM (16 years ago)
Author:
bird
Message:

VAC308.kmk: some fixes and enhancements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/VAC308.kmk

    r2018 r2064  
    3838# Determin VAC308 location.
    3939ifndef PATH_TOOL_VAC308
    40  PATH_TOOL_VAC308 := $(wildcard $(PATH_DEVTOOLS_BLD)/vac/v308*)
     40 PATH_TOOL_VAC308 := $(wildcard $(PATH_DEVTOOLS_BLD)/vac/v3.0.8*)
    4141 ifeq ($(PATH_TOOL_VAC308),)
    42  PATH_TOOL_VAC308 := $(wildcard $(PATH_DEVTOOLS_TRG)/vac/v308*)
     42  PATH_TOOL_VAC308 := $(wildcard $(PATH_DEVTOOLS_BLD)/vac/v308*)
    4343 endif
    4444 ifeq ($(PATH_TOOL_VAC308),)
    45   PATH_TOOL_VAC308 := $(lastword $(sort $(PATH_TOOL_VAC308)))
     45  PATH_TOOL_VAC308 := $(wildcard $(PATH_DEVTOOLS_TRG)/vac/v3.0.8*)
     46  ifeq ($(PATH_TOOL_VAC308),)
     47   PATH_TOOL_VAC308 := $(wildcard $(PATH_DEVTOOLS_TRG)/vac/v308*)
     48  endif
     49 endif
     50 ifeq ($(PATH_TOOL_VAC308),)
     51  PATH_TOOL_VAC308 := $(firstword $(rsort $(PATH_TOOL_VAC308)))
    4652 endif
    4753 # if not found, we'll enter 'pathless' mode.
     
    5157endif
    5258ifneq ($(PATH_TOOL_VAC308),)
    53  PATH_TOOL_VAC308_BIN ?= $(PATH_TOOL_VAC308)/bin
    54  PATH_TOOL_VAC308_LIB ?= $(PATH_TOOL_VAC308)/lib
    55  PATH_TOOL_VAC308_INC ?= $(PATH_TOOL_VAC308)/include
    56 
    57  TOOL_VAC308_CC  ?= $(PATH_TOOL_VAC308_BIN)/icc$(HOSTSUFF_EXE)
    58  TOOL_VAC308_CXX ?= $(PATH_TOOL_VAC308_BIN)/icc$(HOSTSUFF_EXE)
    59  TOOL_VAC308_AR  ?= $(PATH_TOOL_VAC308_BIN)/ilib$(HOSTSUFF_EXE)
    60  TOOL_VAC308_LD  ?= $(PATH_TOOL_VAC308_BIN)/icc$(HOSTSUFF_EXE)
    61  TOOL_VAC308_RC  ?= $(PATH_TOOL_VAC308_BIN)/rc$(HOSTSUFF_EXE)
     59 TOOL_VAC308_PATHLESS := yes
     60 
     61 PATH_TOOL_VAC308_BIN    ?= $(PATH_TOOL_VAC308)/bin
     62 PATH_TOOL_VAC308_LIB    ?= $(PATH_TOOL_VAC308)/lib
     63 PATH_TOOL_VAC308_INC    ?= $(PATH_TOOL_VAC308)/include
     64 PATH_TOOL_VAC308_DLL    ?= $(PATH_TOOL_VAC308)/dll
     65 PATH_TOOL_VAC308_HELP   ?= $(PATH_TOOL_VAC308)/help
     66 PATH_TOOL_VAC308_LOCALE ?= $(PATH_TOOL_VAC308)/locale
     67 
     68 TOOL_VAC308_REDIRECT ?= $(REDIRECT) \
     69        -E 'BEGINLIBPATH=$(PATH_TOOL_VAC308_DLL);$(BEGINLIBPATH)' \
     70        -E 'DPATH=$(PATH_TOOL_VAC308_LOCALE);$(PATH_TOOL_VAC308_HELP);$(DPATH)' \
     71        -E 'LIB=' \
     72        -E 'INCLUDE=' \
     73        --
     74 TOOL_VAC308_CC  ?= $(TOOL_VAC308_REDIRECT) $(PATH_TOOL_VAC308_BIN)/icc$(HOSTSUFF_EXE)
     75 TOOL_VAC308_CXX ?= $(TOOL_VAC308_REDIRECT) $(PATH_TOOL_VAC308_BIN)/icc$(HOSTSUFF_EXE)
     76 TOOL_VAC308_AR  ?= $(TOOL_VAC308_REDIRECT) $(PATH_TOOL_VAC308_BIN)/ilib$(HOSTSUFF_EXE)
     77 TOOL_VAC308_LD  ?= $(TOOL_VAC308_REDIRECT) $(PATH_TOOL_VAC308_BIN)/icc$(HOSTSUFF_EXE)
     78 TOOL_VAC308_RC  ?= $(TOOL_VAC308_REDIRECT) $(PATH_TOOL_VAC308_BIN)/rc$(HOSTSUFF_EXE)
    6279
    6380else
    6481 # Pathless, relies on the environment.
     82 TOOL_VAC308_PATHLESS :=
    6583 TOOL_VAC308_CC  ?= icc$(HOSTSUFF_EXE)
    6684 TOOL_VAC308_CXX ?= icc$(HOSTSUFF_EXE)
     
    8199TOOL_VAC308_CFLAGS.debug     ?= -Ti+
    82100TOOL_VAC308_CFLAGS.release   ?= -O
    83 TOOL_VAC308_CINCS            ?=
     101TOOL_VAC308_CINCS            ?= $(PATH_TOOL_VAC308_INC)
    84102TOOL_VAC308_CDEFS            ?=
    85103
     
    88106TOOL_VAC308_CXXFLAGS.debug   ?= -Ti
    89107TOOL_VAC308_CXXFLAGS.release ?= -O
    90 TOOL_VAC308_CXXINCS          ?=
     108TOOL_VAC308_CXXINCS          ?= $(PATH_TOOL_VAC308_INC)
    91109TOOL_VAC308_CXXDEFS          ?=
    92110
     
    194212#
    195213# @param    $(outbase)  Output basename (full). Use this for list files and such.
    196 TOOL_VAC308_LINK_LIBRARY_OUTPUT = $(outbase).rsp
     214TOOL_VAC308_LINK_LIBRARY_OUTPUT = ## @todo $(outbase).rsp
    197215TOOL_VAC308_LINK_LIBRARY_DEPEND = $(othersrc)
    198216TOOL_VAC308_LINK_LIBRARY_DEPORD =
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