Changeset 235 for trunk/kBuild


Ignore:
Timestamp:
Feb 10, 2005, 11:38:52 PM (20 years ago)
Author:
bird
Message:

dirdep is order prereq only and not something causing anything else to build.

Location:
trunk/kBuild/tools
Files:
6 edited

Legend:

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

    r184 r235  
    6969# @param    $(target)   Normalized main target name.
    7070# @param    $(source)   Source filename (relative).
    71 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
     71# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
    7272# @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
    7373# @param    $(flags)    Flags.
    7474# @param    $(defs)     Definitions. No -D or something.
    7575# @param    $(incs)     Includes. No -I or something.
    76 # @param        $(dirdep)   Directory creation dependency.
    77 # @param        $(deps)         Other dependencies.
     76# @param    $(dirdep)   Directory creation dependency.
     77# @param    $(deps)             Other dependencies.
    7878#
    7979# @param    $(outbase)  Output basename (full). Use this for list files and such.
    80 # @param        $(objsuff)  Object suffix.
     80# @param    $(objsuff)  Object suffix.
    8181define TOOL_GCC_COMPILE_C
    8282#$ (warning dbg: TOOL_GCC_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps))
    83 $(obj): $(dirdep) $(PATH_CURRENT)/$(source) $(deps)
     83$(obj): $(PATH_CURRENT)/$(source) $(deps) | $(dirdep)
    8484        $(call MSG_L2,Compiling $$@ using GCC)
    8585        $(TOOL_GCC_CC) -c\
     
    9595# @param    $(target)   Normalized main target name.
    9696# @param    $(source)   Source filename (relative).
    97 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
     97# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
    9898# @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
    9999# @param    $(flags)    Flags.
    100100# @param    $(defs)     Definitions. No -D or something.
    101101# @param    $(incs)     Includes. No -I or something.
    102 # @param        $(dirdep)   Directory creation dependency.
    103 # @param        $(deps)         Other dependencies.
     102# @param    $(dirdep)   Directory creation dependency.
     103# @param    $(deps)             Other dependencies.
    104104#
    105105# @param    $(outbase)  Output basename (full). Use this for list files and such.
    106 # @param        $(objsuff)  Object suffix.
     106# @param    $(objsuff)  Object suffix.
    107107define TOOL_GCC_COMPILE_CXX
    108108#$ (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) deps=$(deps))
    109 $(obj): $(dirdep) $(source) $(deps)
     109$(obj): $(source) $(deps) | $(dirdep)
    110110        $(call MSG_L2,Compiling $$@ using GCC)
    111111        $(TOOL_GCC_CXX) -c\
     
    123123# @param    $(objs)     Object files to put in the library.
    124124# @param    $(flags)    Flags.
    125 # @param        $(dirdep)   Directory creation dependency.
    126 # @param        $(deps)         Other dependencies.
     125# @param    $(dirdep)   Directory creation dependency.
     126# @param    $(deps)             Other dependencies.
    127127#
    128128# @param    $(outbase)  Output basename (full). Use this for list files and such.
    129129define TOOL_GCC_LINK_LIBRARY
    130130#$ (warning dbg: TOOL_GCC_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) outbase=$(outbase))
    131 $(lib): $(dirdep) $(objs) $(deps)
     131$(lib): $(objs) $(deps) | $(dirdep)
    132132        $(call MSG_L1,Creating Library $$@)
    133133        $(RM) -f $$@
     
    144144# @param    $(libpath)  Library search paths.
    145145# @param    $(flags)    Flags.
    146 # @param        $(dirdep)   Directory creation dependency.
    147 # @param        $(deps)         Other dependencies.
    148 # @param        $(othersrc) Unhandled sources.
    149 # @param        $(custom_pre)   Custom step invoked before linking.
    150 # @param        $(custom_post)  Custom step invoked after linking.
     146# @param    $(dirdep)   Directory creation dependency.
     147# @param    $(deps)             Other dependencies.
     148# @param    $(othersrc) Unhandled sources.
     149# @param    $(custom_pre)   Custom step invoked before linking.
     150# @param    $(custom_post)  Custom step invoked after linking.
    151151#
    152152# @param    $(outbase)  Output basename (full). Use this for list files and such.
    153153define TOOL_GCC_LINK_PROGRAM
    154154#$ (warning dbg: TOOL_GCC_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))
    155 $(exe): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)
     155$(exe): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)
    156156        $(call MSG_L1,Creating Program $$@)
    157157ifneq ($(custom_pre),)
     
    174174# @param    $(libpath)  Library search paths.
    175175# @param    $(flags)    Flags.
    176 # @param        $(dirdep)   Directory creation dependency.
    177 # @param        $(deps)         Other dependencies.
    178 # @param        $(othersrc) Unhandled sources.
    179 # @param        $(custom_pre)   Custom step invoked before linking.
    180 # @param        $(custom_post)  Custom step invoked after linking.
     176# @param    $(dirdep)   Directory creation dependency.
     177# @param    $(deps)             Other dependencies.
     178# @param    $(othersrc) Unhandled sources.
     179# @param    $(custom_pre)   Custom step invoked before linking.
     180# @param    $(custom_post)  Custom step invoked after linking.
    181181#
    182182# @param    $(outbase)  Output basename (full). Use this for list files and such.
    183183define TOOL_GCC_LINK_DLL
    184184#$ (warning dbg: TOOL_GCC_LINK_DLL: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))
    185 $(exe): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)
     185$(exe): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)
    186186        $(call MSG_L1,Creating Program $$@)
    187187ifneq ($(custom_pre),)
  • trunk/kBuild/tools/GCC3.kmk

    r231 r235  
    8484# @param    $(target)   Normalized main target name.
    8585# @param    $(source)   Source filename (relative).
    86 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
     86# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
    8787# @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
    8888# @param    $(flags)    Flags.
    8989# @param    $(defs)     Definitions. No -D or something.
    9090# @param    $(incs)     Includes. No -I or something.
    91 # @param        $(dirdep)   Directory creation dependency.
    92 # @param        $(deps)         Other dependencies.
    93 #
    94 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    95 # @param        $(objsuff)  Object suffix.
     91# @param    $(dirdep)   Directory creation dependency.
     92# @param    $(deps)             Other dependencies.
     93#
     94# @param    $(outbase)  Output basename (full). Use this for list files and such.
     95# @param    $(objsuff)  Object suffix.
    9696define TOOL_GCC3_COMPILE_C
    9797#$ (warning dbg: TOOL_GCC3_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff))
    98 $(obj): $(dirdep) $(source) $(deps)
     98$(obj): $(source) $(deps) | $(dirdep)
    9999        $(call MSG_L2,Compiling $$@ using GCC3)
    100100        $(TOOL_GCC3_CC) -c\
     
    110110# @param    $(target)   Normalized main target name.
    111111# @param    $(source)   Source filename (relative).
    112 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
     112# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
    113113# @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
    114114# @param    $(flags)    Flags.
    115115# @param    $(defs)     Definitions. No -D or something.
    116116# @param    $(incs)     Includes. No -I or something.
    117 # @param        $(dirdep)   Directory creation dependency.
    118 # @param        $(deps)         Other dependencies.
    119 #
    120 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    121 # @param        $(objsuff)  Object suffix.
     117# @param    $(dirdep)   Directory creation dependency.
     118# @param    $(deps)             Other dependencies.
     119#
     120# @param    $(outbase)  Output basename (full). Use this for list files and such.
     121# @param    $(objsuff)  Object suffix.
    122122define TOOL_GCC3_COMPILE_CXX
    123123#$ (warning dbg: TOOL_GCC3_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff))
    124 $(obj): $(dirdep) $(source) $(deps)
     124$(obj): $(source) $(deps) | $(dirdep)
    125125        $(call MSG_L2,Compiling $$@ using GCC3)
    126126        $(TOOL_GCC3_CXX) -c\
     
    138138# @param    $(objs)     Object files to put in the library.
    139139# @param    $(flags)    Flags.
    140 # @param        $(dirdep)   Directory creation dependency.
    141 # @param        $(deps)         Other dependencies.
    142 # @param        $(othersrc) Unhandled sources.
     140# @param    $(dirdep)   Directory creation dependency.
     141# @param    $(deps)             Other dependencies.
     142# @param    $(othersrc) Unhandled sources.
    143143#
    144144# @param    $(outbase)  Output basename (full). Use this for list files and such.
     
    158158define TOOL_GCC3_LINK_LIBRARY
    159159#$ (warning dbg: TOOL_GCC3_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
    160 $(lib): $(dirdep) $(objs) $(deps) $(filter %.a %.lib,$(othersrc))
     160$(lib): $(objs) $(deps) $(filter %.a %.lib,$(othersrc)) | $(dirdep)
    161161        $(call MSG_L1,Creating Library $$@)
    162162        $(RM) -f $$@
     
    183183# @param    $(libpath)  Library search paths.
    184184# @param    $(flags)    Flags.
    185 # @param        $(dirdep)   Directory creation dependency.
    186 # @param        $(deps)         Other dependencies.
    187 # @param        $(othersrc) Unhandled sources.
    188 # @param        $(custom_pre)   Custom step invoked before linking.
    189 # @param        $(custom_post)  Custom step invoked after linking.
     185# @param    $(dirdep)   Directory creation dependency.
     186# @param    $(deps)             Other dependencies.
     187# @param    $(othersrc) Unhandled sources.
     188# @param    $(custom_pre)   Custom step invoked before linking.
     189# @param    $(custom_post)  Custom step invoked after linking.
    190190#
    191191# @param    $(outbase)  Output basename (full). Use this for list files and such.
    192192define TOOL_GCC3_LINK_PROGRAM
    193193#$ (warning dbg: TOOL_GCC3_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))
    194 $(exe): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)
     194$(exe): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)
    195195        $(call MSG_L1,Creating Program $$@)
    196196ifneq ($(custom_pre),)
     
    216216# @param    $(libpath)  Library search paths.
    217217# @param    $(flags)    Flags.
    218 # @param        $(dirdep)   Directory creation dependency.
    219 # @param        $(deps)         Other dependencies.
    220 # @param        $(othersrc) Unhandled sources.
    221 # @param        $(custom_pre)   Custom step invoked before linking.
    222 # @param        $(custom_post)  Custom step invoked after linking.
     218# @param    $(dirdep)   Directory creation dependency.
     219# @param    $(deps)             Other dependencies.
     220# @param    $(othersrc) Unhandled sources.
     221# @param    $(custom_pre)   Custom step invoked before linking.
     222# @param    $(custom_post)  Custom step invoked after linking.
    223223#
    224224# @param    $(outbase)  Output basename (full). Use this for list files and such.
    225225define TOOL_GCC3_LINK_DLL
    226226#$ (warning dbg: TOOL_GCC3_LINK_PROGRAM: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))
    227 $(dll): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)
     227$(dll): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)
    228228        $(call MSG_L1,Creating Program $$@)
    229229ifneq ($(custom_pre),)
     
    250250# @param    $(libpath)  Library search paths.
    251251# @param    $(flags)    Flags.
    252 # @param        $(dirdep)   Directory creation dependency.
    253 # @param        $(deps)         Other dependencies.
    254 # @param        $(othersrc) Unhandled sources.
    255 # @param        $(custom_pre)   Custom step invoked before linking.
    256 # @param        $(custom_post)  Custom step invoked after linking.
     252# @param    $(dirdep)   Directory creation dependency.
     253# @param    $(deps)             Other dependencies.
     254# @param    $(othersrc) Unhandled sources.
     255# @param    $(custom_pre)   Custom step invoked before linking.
     256# @param    $(custom_post)  Custom step invoked after linking.
    257257#
    258258# @param    $(outbase)  Output basename (full). Use this for list files and such.
    259259define TOOL_GCC3_LINK_SYSMOD
    260260#$ (warning dbg: TOOL_GCC3_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
    261 $(sys): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)
     261$(sys): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)
    262262        $(call MSG_L1,Creating Program $$@)
    263263ifneq ($(custom_pre),)
  • trunk/kBuild/tools/GCC3OMF.kmk

    r206 r235  
    7474# @param    $(target)   Normalized main target name.
    7575# @param    $(source)   Source filename (relative).
    76 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
     76# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
    7777# @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
    7878# @param    $(flags)    Flags.
    7979# @param    $(defs)     Definitions. No -D or something.
    8080# @param    $(incs)     Includes. No -I or something.
    81 # @param        $(dirdep)   Directory creation dependency.
    82 # @param        $(deps)         Other dependencies.
    83 #
    84 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    85 # @param        $(objsuff)  Object suffix.
     81# @param    $(dirdep)   Directory creation dependency.
     82# @param    $(deps)             Other dependencies.
     83#
     84# @param    $(outbase)  Output basename (full). Use this for list files and such.
     85# @param    $(objsuff)  Object suffix.
    8686define TOOL_GCC3OMF_COMPILE_C
    8787#$ (warning dbg: TOOL_GCC3OMF_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps))
    88 $(obj): $(dirdep) $(source) $(deps)
     88$(obj): $(source) $(deps) | $(dirdep)
    8989        $(call MSG_L2,Compiling $$@ using GCC3)
    9090        $(TOOL_GCC3OMF_CC) -c\
     
    100100# @param    $(target)   Normalized main target name.
    101101# @param    $(source)   Source filename (relative).
    102 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
     102# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
    103103# @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
    104104# @param    $(flags)    Flags.
    105105# @param    $(defs)     Definitions. No -D or something.
    106106# @param    $(incs)     Includes. No -I or something.
    107 # @param        $(dirdep)   Directory creation dependency.
    108 # @param        $(deps)         Other dependencies.
    109 #
    110 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    111 # @param        $(objsuff)  Object suffix.
     107# @param    $(dirdep)   Directory creation dependency.
     108# @param    $(deps)             Other dependencies.
     109#
     110# @param    $(outbase)  Output basename (full). Use this for list files and such.
     111# @param    $(objsuff)  Object suffix.
    112112define TOOL_GCC3OMF_COMPILE_CXX
    113113#$ (warning dbg: TOOL_GCC3OMF_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps))
    114 $(obj): $(dirdep) $(source) $(deps)
     114$(obj): $(source) $(deps) | $(dirdep)
    115115        $(call MSG_L2,Compiling $$@ using GCC3)
    116116        $(TOOL_GCC3OMF_CXX) -c\
     
    128128# @param    $(objs)     Object files to put in the library.
    129129# @param    $(flags)    Flags.
    130 # @param        $(dirdep)   Directory creation dependency.
    131 # @param        $(deps)         Other dependencies.
    132 # @param        $(othersrc) Unhandled sources.
     130# @param    $(dirdep)   Directory creation dependency.
     131# @param    $(deps)             Other dependencies.
     132# @param    $(othersrc) Unhandled sources.
    133133#
    134134# @param    $(outbase)  Output basename (full). Use this for list files and such.
    135135define TOOL_GCC3OMF_LINK_LIBRARY
    136136#$ (warning dbg: TOOL_GCC3OMF_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
    137 $(lib): $(dirdep) $(objs) $(deps) $(filter %.a %.lib,$(othersrc))
     137$(lib): $(objs) $(deps) $(filter %.a %.lib,$(othersrc)) | $(dirdep)
    138138        $(call MSG_L1,Creating Library $$@)
    139139        $(RM) -f $$@
     
    150150# @param    $(libpath)  Library search paths.
    151151# @param    $(flags)    Flags.
    152 # @param        $(dirdep)   Directory creation dependency.
    153 # @param        $(deps)         Other dependencies.
    154 # @param        $(othersrc) Unhandled sources.
    155 # @param        $(custom_pre)   Custom step invoked before linking.
    156 # @param        $(custom_post)  Custom step invoked after linking.
     152# @param    $(dirdep)   Directory creation dependency.
     153# @param    $(deps)             Other dependencies.
     154# @param    $(othersrc) Unhandled sources.
     155# @param    $(custom_pre)   Custom step invoked before linking.
     156# @param    $(custom_post)  Custom step invoked after linking.
    157157#
    158158# @param    $(outbase)  Output basename (full). Use this for list files and such.
    159159define TOOL_GCC3OMF_LINK_PROGRAM
    160160#$ (warning dbg: TOOL_GCC3OMF_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))
    161 $(exe): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc))
     161$(exe): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) | $(dirdep)
    162162        $(call MSG_L1,Creating Program $$@)
    163163ifneq ($(custom_pre),)
     
    182182# @param    $(libpath)  Library search paths.
    183183# @param    $(flags)    Flags.
    184 # @param        $(dirdep)   Directory creation dependency.
    185 # @param        $(deps)         Other dependencies.
    186 # @param        $(othersrc) Unhandled sources.
    187 # @param        $(custom_pre)   Custom step invoked before linking.
    188 # @param        $(custom_post)  Custom step invoked after linking.
     184# @param    $(dirdep)   Directory creation dependency.
     185# @param    $(deps)             Other dependencies.
     186# @param    $(othersrc) Unhandled sources.
     187# @param    $(custom_pre)   Custom step invoked before linking.
     188# @param    $(custom_post)  Custom step invoked after linking.
    189189#
    190190# @param    $(outbase)  Output basename (full). Use this for list files and such.
    191191define TOOL_GCC3OMF_LINK_DLL
    192192#$ (warning dbg: TOOL_GCC3OMF_LINK_PROGRAM: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))
    193 $(dll): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc))
     193$(dll): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) | $(dirdep)
    194194        $(call MSG_L1,Creating Program $$@)
    195195ifneq ($(custom_pre),)
     
    213213# @param    $(libpath)  Library search paths.
    214214# @param    $(flags)    Flags.
    215 # @param        $(dirdep)   Directory creation dependency.
    216 # @param        $(deps)         Other dependencies.
    217 # @param        $(othersrc) Unhandled sources.
    218 # @param        $(custom_pre)   Custom step invoked before linking.
    219 # @param        $(custom_post)  Custom step invoked after linking.
     215# @param    $(dirdep)   Directory creation dependency.
     216# @param    $(deps)             Other dependencies.
     217# @param    $(othersrc) Unhandled sources.
     218# @param    $(custom_pre)   Custom step invoked before linking.
     219# @param    $(custom_post)  Custom step invoked after linking.
    220220#
    221221# @param    $(outbase)  Output basename (full). Use this for list files and such.
    222222define TOOL_GCC3OMF_LINK_SYSMOD
    223223#$ (warning dbg: TOOL_GCC3OMF_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
    224 $(sys): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc))
     224$(sys): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) | $(dirdep)
    225225        $(call MSG_L1,Creating Program $$@)
    226226ifneq ($(custom_pre),)
  • trunk/kBuild/tools/MINGW32.kmk

    r184 r235  
    9999# @param    $(target)   Normalized main target name.
    100100# @param    $(source)   Source filename (relative).
    101 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
     101# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
    102102# @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
    103103# @param    $(flags)    Flags.
    104104# @param    $(defs)     Definitions. No -D or something.
    105105# @param    $(incs)     Includes. No -I or something.
    106 # @param        $(dirdep)   Directory creation dependency.
    107 # @param        $(deps)         Other dependencies.
    108 #
    109 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    110 # @param        $(objsuff)  Object suffix.
     106# @param    $(dirdep)   Directory creation dependency.
     107# @param    $(deps)             Other dependencies.
     108#
     109# @param    $(outbase)  Output basename (full). Use this for list files and such.
     110# @param    $(objsuff)  Object suffix.
    111111define TOOL_MINGW32_COMPILE_C
    112112#$ (warning dbg: TOOL_MINGW32_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps))
    113 $(obj): $(dirdep) $(source) $(deps)
     113$(obj): $(source) $(deps) | $(dirdep)
    114114        $(call MSG_L2,Compiling $$@ using MINGW32)
    115115        $(TOOL_MINGW32_CC) -c\
     
    125125# @param    $(target)   Normalized main target name.
    126126# @param    $(source)   Source filename (relative).
    127 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
    128 # @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
     127# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
     128# @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
    129129# @param    $(flags)    Flags.
    130130# @param    $(defs)     Definitions. No -D or something.
    131131# @param    $(incs)     Includes. No -I or something.
    132 # @param        $(dirdep)   Directory creation dependency.
    133 # @param        $(deps)         Other dependencies.
    134 #
    135 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    136 # @param        $(objsuff)  Object suffix.
     132# @param    $(dirdep)   Directory creation dependency.
     133# @param    $(deps)     Other dependencies.
     134#
     135# @param    $(outbase)  Output basename (full). Use this for list files and such.
     136# @param    $(objsuff)  Object suffix.
    137137define TOOL_MINGW32_COMPILE_CXX
    138138#$ (warning dbg: TOOL_MINGW32_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps))
    139 $(obj): $(dirdep) $(source) $(deps)
     139$(obj): $(source) $(deps) | $(dirdep)
    140140        $(call MSG_L2,Compiling $$@ using MINGW32)
    141141        $(TOOL_MINGW32_CXX) -c\
     
    153153# @param    $(objs)     Object files to put in the library.
    154154# @param    $(flags)    Flags.
    155 # @param        $(dirdep)   Directory creation dependency.
    156 # @param        $(deps)         Other dependencies.
     155# @param    $(dirdep)   Directory creation dependency.
     156# @param    $(deps)             Other dependencies.
    157157#
    158158# @param    $(outbase)  Output basename (full). Use this for list files and such.
    159159define TOOL_MINGW32_LINK_LIBRARY
    160160#$ (warning dbg: TOOL_MINGW32_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) outbase=$(outbase))
    161 $(lib): $(dirdep) $(objs) $(deps)
     161$(lib): $(objs) $(deps) | $(dirdep)
    162162        $(call MSG_L1,Creating Library $$@)
    163163        $(RM) -f $$@
     
    174174# @param    $(libpath)  Library search paths.
    175175# @param    $(flags)    Flags.
    176 # @param        $(dirdep)   Directory creation dependency.
    177 # @param        $(deps)         Other dependencies.
    178 # @param        $(othersrc) Unhandled sources.
    179 # @param        $(custom_pre)   Custom step invoked before linking.
    180 # @param        $(custom_post)  Custom step invoked after linking.
     176# @param    $(dirdep)   Directory creation dependency.
     177# @param    $(deps)             Other dependencies.
     178# @param    $(othersrc) Unhandled sources.
     179# @param    $(custom_pre)   Custom step invoked before linking.
     180# @param    $(custom_post)  Custom step invoked after linking.
    181181#
    182182# @param    $(outbase)  Output basename (full). Use this for list files and such.
    183183define TOOL_MINGW32_LINK_PROGRAM
    184184#$ (warning dbg: TOOL_MINGW32_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))
    185 $(exe): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)
     185$(exe): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)
    186186        $(call MSG_L1,Creating Program $$@)
    187187ifneq ($(custom_pre),)
     
    205205# @param    $(libpath)  Library search paths.
    206206# @param    $(flags)    Flags.
    207 # @param        $(dirdep)   Directory creation dependency.
    208 # @param        $(deps)         Other dependencies.
    209 # @param        $(othersrc) Unhandled sources.
    210 # @param        $(custom_pre)   Custom step invoked before linking.
    211 # @param        $(custom_post)  Custom step invoked after linking.
     207# @param    $(dirdep)   Directory creation dependency.
     208# @param    $(deps)             Other dependencies.
     209# @param    $(othersrc) Unhandled sources.
     210# @param    $(custom_pre)   Custom step invoked before linking.
     211# @param    $(custom_post)  Custom step invoked after linking.
    212212#
    213213# @param    $(outbase)  Output basename (full). Use this for list files and such.
    214214define TOOL_MINGW32_LINK_DLL
    215215#$ (warning dbg: TOOL_MINGW32_LINK_DLL: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
    216 $(dll): $(dirdep) $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)
     216$(dll): $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)
    217217        $(call MSG_L1,Creating Program $$@)
    218218ifneq ($(custom_pre),)
  • trunk/kBuild/tools/NASM.kmk

    r184 r235  
    4545# @param    $(target)   Normalized main target name.
    4646# @param    $(source)   Source filename (relative).
    47 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
    48 # @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
     47# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
     48# @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
    4949# @param    $(flags)    Flags.
    5050# @param    $(defs)     Definitions. No -D or something.
    5151# @param    $(incs)     Includes. No -I or something.
    52 # @param        $(dirdep)   Directory creation dependency.
    53 # @param        $(deps)         Other dependencies.
     52# @param    $(dirdep)   Directory creation dependency.
     53# @param    $(deps)     Other dependencies.
    5454#
    5555# @param    $(outbase)  Output basename (full). Use this for list files and such.
    56 # @param        $(objsuff)  Object suffix.
     56# @param    $(objsuff)  Object suffix.
    5757define TOOL_NASM_COMPILE_AS
    5858#$ (warning dbg: TOOL_NASM_COMPILE_AS: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps))
    59 $(obj): $(dirdep) $(source) $(deps)
     59$(obj): $(source) $(deps) | $(dirdep)
    6060        $(call MSG_L2,Compiling $$@ using NASM)
    6161        $(TOOL_NASM_AS) \
  • trunk/kBuild/tools/VCC70.kmk

    r234 r235  
    6464# @param    $(target)   Normalized main target name.
    6565# @param    $(source)   Source filename (relative).
    66 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
    67 # @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
     66# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
     67# @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
    6868# @param    $(flags)    Flags.
    6969# @param    $(defs)     Definitions. No -D or something.
    7070# @param    $(incs)     Includes. No -I or something.
    71 # @param        $(dirdep)   Directory creation dependency.
    72 # @param        $(deps)         Other dependencies.
    73 #
    74 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    75 # @param        $(objsuff)  Object suffix.
     71# @param    $(dirdep)   Directory creation dependency.
     72# @param    $(deps)     Other dependencies.
     73#
     74# @param    $(outbase)  Output basename (full). Use this for list files and such.
     75# @param    $(objsuff)  Object suffix.
    7676define TOOL_VCC70_COMPILE_C
    7777#$ (warning dbg: TOOL_VCC70_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff))
    78 $(obj): $(dirdep) $(source) $(deps)
     78$(obj): $(source) $(deps) | $(dirdep)
    7979        $(call MSG_L2,Compiling $$@ using VCC70)
    8080        $(TOOL_VCC70_CC) -c\
     
    9696# @param    $(target)   Normalized main target name.
    9797# @param    $(source)   Source filename (relative).
    98 # @param        $(obj)      Object file name. This shall be (re)created by the compilation.
    99 # @param    $(dep)          Dependcy file. This shall be (re)created by the compilation.
     98# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
     99# @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
    100100# @param    $(flags)    Flags.
    101101# @param    $(defs)     Definitions. No -D or something.
    102102# @param    $(incs)     Includes. No -I or something.
    103 # @param        $(dirdep)   Directory creation dependency.
    104 # @param        $(deps)         Other dependencies.
    105 #
    106 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    107 # @param        $(objsuff)  Object suffix.
     103# @param    $(dirdep)   Directory creation dependency.
     104# @param    $(deps)     Other dependencies.
     105#
     106# @param    $(outbase)  Output basename (full). Use this for list files and such.
     107# @param    $(objsuff)  Object suffix.
    108108define TOOL_VCC70_COMPILE_CXX
    109109#$ (warning dbg: TOOL_VCC70_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff))
    110 $(obj): $(dirdep) $(source) $(deps)
     110$(obj): $(source) $(deps) | $(dirdep)
    111111        $(call MSG_L2,Compiling $$@ using VCC70)
    112112        $(TOOL_VCC70_CXX) -c\
     
    131131# @param    $(objs)     Object files to put in the library.
    132132# @param    $(flags)    Flags.
    133 # @param        $(dirdep)   Directory creation dependency.
    134 # @param        $(deps)         Other dependencies.
    135 # @param        $(othersrc) Unhandled sources.
     133# @param    $(dirdep)   Directory creation dependency.
     134# @param    $(deps)             Other dependencies.
     135# @param    $(othersrc) Unhandled sources.
    136136#
    137137# @param    $(outbase)  Output basename (full). Use this for list files and such.
    138138define TOOL_VCC70_LINK_LIBRARY
    139139#$ (warning dbg: TOOL_VCC70_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) outbase=$(outbase))
    140 $(lib): $(dirdep) $(objs) $(deps) $(othersrc)
     140$(lib): $(objs) $(deps) $(othersrc) | $(dirdep)
    141141        $(call MSG_L1,Creating Library $$@)
    142142        $(RM) -f $$@
     
    149149
    150150## Link program
    151 # @param    $(target)   Normalized main target name.
    152 # @param    $(exe)              Program name.
    153 # @param    $(objs)     Object files to link together.
    154 # @param    $(libs)     Libraries to search.
    155 # @param    $(libpath)  Library search paths.
    156 # @param    $(flags)    Flags.
    157 # @param        $(dirdep)   Directory creation dependency.
    158 # @param        $(deps)         Other dependencies.
    159 # @param        $(othersrc) Unhandled sources.
    160 # @param        $(custom_pre)   Custom step invoked before linking.
    161 # @param        $(custom_post)  Custom step invoked after linking.
     151# @param    $(target)       Normalized main target name.
     152# @param    $(exe)          Program name.
     153# @param    $(objs)         Object files to link together.
     154# @param    $(libs)         Libraries to search.
     155# @param    $(libpath)      Library search paths.
     156# @param    $(flags)        Flags.
     157# @param    $(dirdep)       Directory creation dependency.
     158# @param    $(deps)         Other dependencies.
     159# @param    $(othersrc)    Unhandled sources.
     160# @param    $(custom_pre)   Custom step invoked before linking.
     161# @param    $(custom_post)  Custom step invoked after linking.
    162162#
    163163# @param    $(outbase)  Output basename (full). Use this for list files and such.
    164164define TOOL_VCC70_LINK_PROGRAM
    165165#$ (warning dbg: TOOL_VCC70_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
    166 $(exe): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def,$(othersrc))
     166$(exe): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def,$(othersrc)) | $(dirdep)
    167167        $(call MSG_L1,Creating Program $$@)
    168168ifneq ($(custom_pre),)
     
    187187
    188188## Link system module (windows aka driver, linux aka kernel module)
    189 # @param    $(target)   Normalized main target name.
    190 # @param    $(sys)              System module name.
    191 # @param    $(objs)     Object files to link together.
    192 # @param    $(libs)     Libraries to search.
    193 # @param    $(libpath)  Library search paths.
    194 # @param    $(flags)    Flags.
    195 # @param        $(dirdep)   Directory creation dependency.
    196 # @param        $(deps)         Other dependencies.
    197 # @param        $(othersrc) Unhandled sources.
    198 # @param        $(custom_pre)   Custom step invoked before linking.
    199 # @param        $(custom_post)  Custom step invoked after linking.
     189# @param    $(target)       Normalized main target name.
     190# @param    $(sys)          System module name.
     191# @param    $(objs)         Object files to link together.
     192# @param    $(libs)         Libraries to search.
     193# @param    $(libpath)      Library search paths.
     194# @param    $(flags)        Flags.
     195# @param    $(dirdep)       Directory creation dependency.
     196# @param    $(deps)         Other dependencies.
     197# @param    $(othersrc)    Unhandled sources.
     198# @param    $(custom_pre)   Custom step invoked before linking.
     199# @param    $(custom_post)  Custom step invoked after linking.
    200200#
    201201# @param    $(outbase)  Output basename (full). Use this for list files and such.
    202202define TOOL_VCC70_LINK_SYSMOD
    203203#$ (warning dbg: TOOL_VCC70_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
    204 $(sys): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def %.exp %.res,$(othersrc))
     204$(sys): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def %.exp %.res,$(othersrc)) | $(dirdep)
    205205        $(call MSG_L1,Creating Program $$@)
    206206ifneq ($(custom_pre),)
     
    231231# @param    $(libpath)  Library search paths.
    232232# @param    $(flags)    Flags.
    233 # @param        $(dirdep)   Directory creation dependency.
    234 # @param        $(deps)         Other dependencies.
    235 # @param        $(othersrc) Unhandled sources.
    236 # @param        $(custom_pre)   Custom step invoked before linking.
    237 # @param        $(custom_post)  Custom step invoked after linking.
     233# @param    $(dirdep)   Directory creation dependency.
     234# @param    $(deps)             Other dependencies.
     235# @param    $(othersrc) Unhandled sources.
     236# @param    $(custom_pre)   Custom step invoked before linking.
     237# @param    $(custom_post)  Custom step invoked after linking.
    238238#
    239239# @param    $(outbase)  Output basename (full). Use this for list files and such.
    240240define TOOL_VCC70_LINK_DLL
    241241#$ (warning dbg: TOOL_VCC70_LINK_DLL: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
    242 $(dll): $(dirdep) $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def %.exp %.res,$(othersrc))
     242$(dll): $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def %.exp %.res,$(othersrc)) | $(dirdep)
    243243        $(call MSG_L1,Creating Program $$@)
    244244ifneq ($(custom_pre),)
Note: See TracChangeset for help on using the changeset viewer.