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/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.