VirtualBox

Changeset 77 in kBuild for trunk


Ignore:
Timestamp:
May 31, 2004 8:53:24 AM (21 years ago)
Author:
bird
Message:

..

Location:
trunk/kBuild
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r75 r77  
    121121BUILD_TARGET        := win32
    122122endif
    123 ifeq ($(BUILD_TARGET),WIN32)
     123ifeq ($(BUILD_TARGET),win32)
    124124_BUILD_TARGET_OK    := 1
    125125endif
     
    277277_CFGFILES   :=
    278278define def_include_config
    279 _CFGDIR     := $(_CFGDIR)/$(1)
    280 _CFGFILES   += $(wildcard $(_CFGDIR)/config.kmk $(_CFGDIR)/config.kMk)
     279$(eval _CFGDIR := $(_CFGDIR)/$(1))
     280_CFGFILES   += $(wildcard $(_CFGDIR)/Config.kmk $(_CFGDIR)/config.kmk)
    281281endef
    282282# walk down the _RELATIVE_ path specified by DEPTH.
  • trunk/kBuild/rules.kmk

    r71 r77  
    2525#
    2626
    27                
    2827ifdef PATH_KBUILD
    2928# Usual location.
  • trunk/kBuild/tools/GCC.kmk

    r75 r77  
    8585
    8686
     87## Compile C++ source.
     88# @param    $(target)   Normalized main target name.
     89# @param    $(source)   Source filename (relative).
     90# @param        $(obj)      Object file name. This shall be (re)created by the compilation.
     91# @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
     92# @param    $(flags)    Flags.
     93# @param    $(defs)     Definitions. No -D or something.
     94# @param    $(incs)     Includes. No -I or something.
     95# @param        $(dirdep)   Directory creation dependency.
     96#
     97# @param    $(outbase)  Output basename (full). Use this for list files and such.
     98# @param        $(objsuff)  Object suffix.
     99define TOOL_GCC_COMPILE_CXX
     100#$ (warning dbg: TOOL_GCC_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff))
     101$(obj): $(dirdep) $(PATH_CURRENT)/$(source)
     102        $(call MSG_L2,Compiling $$@ using GCC)
     103        $(TOOL_GCC_CXX) -c\
     104                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     105                -Wp,-MD,$(dep) -Wp,-MT,$$@ \
     106                -o $$@\
     107                $(PATH_CURRENT)/$(source)               
     108               
     109endef
     110
     111
    87112## Link library
    88113# @param    $(target)   Normalized main target name.
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