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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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),)
Note: See TracChangeset for help on using the changeset viewer.