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