Changeset 235 for trunk/kBuild/tools/GCC3.kmk
- Timestamp:
- Feb 10, 2005, 11:38:52 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC3.kmk
r231 r235 84 84 # @param $(target) Normalized main target name. 85 85 # @param $(source) Source filename (relative). 86 # @param 86 # @param $(obj) Object file name. This shall be (re)created by the compilation. 87 87 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 88 88 # @param $(flags) Flags. 89 89 # @param $(defs) Definitions. No -D or something. 90 90 # @param $(incs) Includes. No -I or something. 91 # @param 92 # @param 93 # 94 # @param $(outbase) Output basename (full). Use this for list files and such. 95 # @param 91 # @param $(dirdep) Directory creation dependency. 92 # @param $(deps) Other dependencies. 93 # 94 # @param $(outbase) Output basename (full). Use this for list files and such. 95 # @param $(objsuff) Object suffix. 96 96 define TOOL_GCC3_COMPILE_C 97 97 #$ (warning dbg: TOOL_GCC3_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff)) 98 $(obj): $( dirdep) $(source) $(deps)98 $(obj): $(source) $(deps) | $(dirdep) 99 99 $(call MSG_L2,Compiling $$@ using GCC3) 100 100 $(TOOL_GCC3_CC) -c\ … … 110 110 # @param $(target) Normalized main target name. 111 111 # @param $(source) Source filename (relative). 112 # @param 112 # @param $(obj) Object file name. This shall be (re)created by the compilation. 113 113 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 114 114 # @param $(flags) Flags. 115 115 # @param $(defs) Definitions. No -D or something. 116 116 # @param $(incs) Includes. No -I or something. 117 # @param 118 # @param 119 # 120 # @param $(outbase) Output basename (full). Use this for list files and such. 121 # @param 117 # @param $(dirdep) Directory creation dependency. 118 # @param $(deps) Other dependencies. 119 # 120 # @param $(outbase) Output basename (full). Use this for list files and such. 121 # @param $(objsuff) Object suffix. 122 122 define TOOL_GCC3_COMPILE_CXX 123 123 #$ (warning dbg: TOOL_GCC3_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff)) 124 $(obj): $( dirdep) $(source) $(deps)124 $(obj): $(source) $(deps) | $(dirdep) 125 125 $(call MSG_L2,Compiling $$@ using GCC3) 126 126 $(TOOL_GCC3_CXX) -c\ … … 138 138 # @param $(objs) Object files to put in the library. 139 139 # @param $(flags) Flags. 140 # @param 141 # @param 142 # @param 140 # @param $(dirdep) Directory creation dependency. 141 # @param $(deps) Other dependencies. 142 # @param $(othersrc) Unhandled sources. 143 143 # 144 144 # @param $(outbase) Output basename (full). Use this for list files and such. … … 158 158 define TOOL_GCC3_LINK_LIBRARY 159 159 #$ (warning dbg: TOOL_GCC3_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 160 $(lib): $( dirdep) $(objs) $(deps) $(filter %.a %.lib,$(othersrc))160 $(lib): $(objs) $(deps) $(filter %.a %.lib,$(othersrc)) | $(dirdep) 161 161 $(call MSG_L1,Creating Library $$@) 162 162 $(RM) -f $$@ … … 183 183 # @param $(libpath) Library search paths. 184 184 # @param $(flags) Flags. 185 # @param 186 # @param 187 # @param 188 # @param 189 # @param 185 # @param $(dirdep) Directory creation dependency. 186 # @param $(deps) Other dependencies. 187 # @param $(othersrc) Unhandled sources. 188 # @param $(custom_pre) Custom step invoked before linking. 189 # @param $(custom_post) Custom step invoked after linking. 190 190 # 191 191 # @param $(outbase) Output basename (full). Use this for list files and such. 192 192 define TOOL_GCC3_LINK_PROGRAM 193 193 #$ (warning dbg: TOOL_GCC3_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 194 $(exe): $( dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)194 $(exe): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep) 195 195 $(call MSG_L1,Creating Program $$@) 196 196 ifneq ($(custom_pre),) … … 216 216 # @param $(libpath) Library search paths. 217 217 # @param $(flags) Flags. 218 # @param 219 # @param 220 # @param 221 # @param 222 # @param 218 # @param $(dirdep) Directory creation dependency. 219 # @param $(deps) Other dependencies. 220 # @param $(othersrc) Unhandled sources. 221 # @param $(custom_pre) Custom step invoked before linking. 222 # @param $(custom_post) Custom step invoked after linking. 223 223 # 224 224 # @param $(outbase) Output basename (full). Use this for list files and such. 225 225 define TOOL_GCC3_LINK_DLL 226 226 #$ (warning dbg: TOOL_GCC3_LINK_PROGRAM: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 227 $(dll): $( dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)227 $(dll): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep) 228 228 $(call MSG_L1,Creating Program $$@) 229 229 ifneq ($(custom_pre),) … … 250 250 # @param $(libpath) Library search paths. 251 251 # @param $(flags) Flags. 252 # @param 253 # @param 254 # @param 255 # @param 256 # @param 252 # @param $(dirdep) Directory creation dependency. 253 # @param $(deps) Other dependencies. 254 # @param $(othersrc) Unhandled sources. 255 # @param $(custom_pre) Custom step invoked before linking. 256 # @param $(custom_post) Custom step invoked after linking. 257 257 # 258 258 # @param $(outbase) Output basename (full). Use this for list files and such. 259 259 define TOOL_GCC3_LINK_SYSMOD 260 260 #$ (warning dbg: TOOL_GCC3_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 261 $(sys): $( dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)261 $(sys): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep) 262 262 $(call MSG_L1,Creating Program $$@) 263 263 ifneq ($(custom_pre),)
Note:
See TracChangeset
for help on using the changeset viewer.