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