Changeset 235 for trunk/kBuild/tools/VCC70.kmk
- Timestamp:
- Feb 10, 2005, 11:38:52 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/VCC70.kmk
r234 r235 64 64 # @param $(target) Normalized main target name. 65 65 # @param $(source) Source filename (relative). 66 # @param 67 # @param $(dep) 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. 68 68 # @param $(flags) Flags. 69 69 # @param $(defs) Definitions. No -D or something. 70 70 # @param $(incs) Includes. No -I or something. 71 # @param 72 # @param $(deps)Other dependencies.73 # 74 # @param $(outbase) Output basename (full). Use this for list files and such. 75 # @param 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. 76 76 define TOOL_VCC70_COMPILE_C 77 77 #$ (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) 79 79 $(call MSG_L2,Compiling $$@ using VCC70) 80 80 $(TOOL_VCC70_CC) -c\ … … 96 96 # @param $(target) Normalized main target name. 97 97 # @param $(source) Source filename (relative). 98 # @param 99 # @param $(dep) 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. 100 100 # @param $(flags) Flags. 101 101 # @param $(defs) Definitions. No -D or something. 102 102 # @param $(incs) Includes. No -I or something. 103 # @param 104 # @param $(deps)Other dependencies.105 # 106 # @param $(outbase) Output basename (full). Use this for list files and such. 107 # @param 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. 108 108 define TOOL_VCC70_COMPILE_CXX 109 109 #$ (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) 111 111 $(call MSG_L2,Compiling $$@ using VCC70) 112 112 $(TOOL_VCC70_CXX) -c\ … … 131 131 # @param $(objs) Object files to put in the library. 132 132 # @param $(flags) Flags. 133 # @param 134 # @param 135 # @param 133 # @param $(dirdep) Directory creation dependency. 134 # @param $(deps) Other dependencies. 135 # @param $(othersrc) Unhandled sources. 136 136 # 137 137 # @param $(outbase) Output basename (full). Use this for list files and such. 138 138 define TOOL_VCC70_LINK_LIBRARY 139 139 #$ (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) 141 141 $(call MSG_L1,Creating Library $$@) 142 142 $(RM) -f $$@ … … 149 149 150 150 ## Link program 151 # @param $(target) Normalized main target name.152 # @param $(exe) 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 161 # @param 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. 162 162 # 163 163 # @param $(outbase) Output basename (full). Use this for list files and such. 164 164 define TOOL_VCC70_LINK_PROGRAM 165 165 #$ (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) 167 167 $(call MSG_L1,Creating Program $$@) 168 168 ifneq ($(custom_pre),) … … 187 187 188 188 ## Link system module (windows aka driver, linux aka kernel module) 189 # @param $(target) Normalized main target name.190 # @param $(sys) 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 199 # @param 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. 200 200 # 201 201 # @param $(outbase) Output basename (full). Use this for list files and such. 202 202 define TOOL_VCC70_LINK_SYSMOD 203 203 #$ (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) 205 205 $(call MSG_L1,Creating Program $$@) 206 206 ifneq ($(custom_pre),) … … 231 231 # @param $(libpath) Library search paths. 232 232 # @param $(flags) Flags. 233 # @param 234 # @param 235 # @param 236 # @param 237 # @param 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. 238 238 # 239 239 # @param $(outbase) Output basename (full). Use this for list files and such. 240 240 define TOOL_VCC70_LINK_DLL 241 241 #$ (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) 243 243 $(call MSG_L1,Creating Program $$@) 244 244 ifneq ($(custom_pre),)
Note:
See TracChangeset
for help on using the changeset viewer.