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