Changeset 77 for trunk/kBuild/tools


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

..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.