Changeset 235 for trunk/kBuild/tools/GCC3OMF.kmk
- Timestamp:
- Feb 10, 2005, 11:38:52 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC3OMF.kmk
r206 r235 74 74 # @param $(target) Normalized main target name. 75 75 # @param $(source) Source filename (relative). 76 # @param 76 # @param $(obj) Object file name. This shall be (re)created by the compilation. 77 77 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 78 78 # @param $(flags) Flags. 79 79 # @param $(defs) Definitions. No -D or something. 80 80 # @param $(incs) Includes. No -I or something. 81 # @param 82 # @param 83 # 84 # @param $(outbase) Output basename (full). Use this for list files and such. 85 # @param 81 # @param $(dirdep) Directory creation dependency. 82 # @param $(deps) Other dependencies. 83 # 84 # @param $(outbase) Output basename (full). Use this for list files and such. 85 # @param $(objsuff) Object suffix. 86 86 define TOOL_GCC3OMF_COMPILE_C 87 87 #$ (warning dbg: TOOL_GCC3OMF_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps)) 88 $(obj): $( dirdep) $(source) $(deps)88 $(obj): $(source) $(deps) | $(dirdep) 89 89 $(call MSG_L2,Compiling $$@ using GCC3) 90 90 $(TOOL_GCC3OMF_CC) -c\ … … 100 100 # @param $(target) Normalized main target name. 101 101 # @param $(source) Source filename (relative). 102 # @param 102 # @param $(obj) Object file name. This shall be (re)created by the compilation. 103 103 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 104 104 # @param $(flags) Flags. 105 105 # @param $(defs) Definitions. No -D or something. 106 106 # @param $(incs) Includes. No -I or something. 107 # @param 108 # @param 109 # 110 # @param $(outbase) Output basename (full). Use this for list files and such. 111 # @param 107 # @param $(dirdep) Directory creation dependency. 108 # @param $(deps) Other dependencies. 109 # 110 # @param $(outbase) Output basename (full). Use this for list files and such. 111 # @param $(objsuff) Object suffix. 112 112 define TOOL_GCC3OMF_COMPILE_CXX 113 113 #$ (warning dbg: TOOL_GCC3OMF_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps)) 114 $(obj): $( dirdep) $(source) $(deps)114 $(obj): $(source) $(deps) | $(dirdep) 115 115 $(call MSG_L2,Compiling $$@ using GCC3) 116 116 $(TOOL_GCC3OMF_CXX) -c\ … … 128 128 # @param $(objs) Object files to put in the library. 129 129 # @param $(flags) Flags. 130 # @param 131 # @param 132 # @param 130 # @param $(dirdep) Directory creation dependency. 131 # @param $(deps) Other dependencies. 132 # @param $(othersrc) Unhandled sources. 133 133 # 134 134 # @param $(outbase) Output basename (full). Use this for list files and such. 135 135 define TOOL_GCC3OMF_LINK_LIBRARY 136 136 #$ (warning dbg: TOOL_GCC3OMF_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 137 $(lib): $( dirdep) $(objs) $(deps) $(filter %.a %.lib,$(othersrc))137 $(lib): $(objs) $(deps) $(filter %.a %.lib,$(othersrc)) | $(dirdep) 138 138 $(call MSG_L1,Creating Library $$@) 139 139 $(RM) -f $$@ … … 150 150 # @param $(libpath) Library search paths. 151 151 # @param $(flags) Flags. 152 # @param 153 # @param 154 # @param 155 # @param 156 # @param 152 # @param $(dirdep) Directory creation dependency. 153 # @param $(deps) Other dependencies. 154 # @param $(othersrc) Unhandled sources. 155 # @param $(custom_pre) Custom step invoked before linking. 156 # @param $(custom_post) Custom step invoked after linking. 157 157 # 158 158 # @param $(outbase) Output basename (full). Use this for list files and such. 159 159 define TOOL_GCC3OMF_LINK_PROGRAM 160 160 #$ (warning dbg: TOOL_GCC3OMF_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 161 $(exe): $( dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc))161 $(exe): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) | $(dirdep) 162 162 $(call MSG_L1,Creating Program $$@) 163 163 ifneq ($(custom_pre),) … … 182 182 # @param $(libpath) Library search paths. 183 183 # @param $(flags) Flags. 184 # @param 185 # @param 186 # @param 187 # @param 188 # @param 184 # @param $(dirdep) Directory creation dependency. 185 # @param $(deps) Other dependencies. 186 # @param $(othersrc) Unhandled sources. 187 # @param $(custom_pre) Custom step invoked before linking. 188 # @param $(custom_post) Custom step invoked after linking. 189 189 # 190 190 # @param $(outbase) Output basename (full). Use this for list files and such. 191 191 define TOOL_GCC3OMF_LINK_DLL 192 192 #$ (warning dbg: TOOL_GCC3OMF_LINK_PROGRAM: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 193 $(dll): $( dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc))193 $(dll): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) | $(dirdep) 194 194 $(call MSG_L1,Creating Program $$@) 195 195 ifneq ($(custom_pre),) … … 213 213 # @param $(libpath) Library search paths. 214 214 # @param $(flags) Flags. 215 # @param 216 # @param 217 # @param 218 # @param 219 # @param 215 # @param $(dirdep) Directory creation dependency. 216 # @param $(deps) Other dependencies. 217 # @param $(othersrc) Unhandled sources. 218 # @param $(custom_pre) Custom step invoked before linking. 219 # @param $(custom_post) Custom step invoked after linking. 220 220 # 221 221 # @param $(outbase) Output basename (full). Use this for list files and such. 222 222 define TOOL_GCC3OMF_LINK_SYSMOD 223 223 #$ (warning dbg: TOOL_GCC3OMF_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 224 $(sys): $( dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc))224 $(sys): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) | $(dirdep) 225 225 $(call MSG_L1,Creating Program $$@) 226 226 ifneq ($(custom_pre),)
Note:
See TracChangeset
for help on using the changeset viewer.