Changeset 235 for trunk/kBuild/tools/MINGW32.kmk
- Timestamp:
- Feb 10, 2005, 11:38:52 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/MINGW32.kmk
r184 r235 99 99 # @param $(target) Normalized main target name. 100 100 # @param $(source) Source filename (relative). 101 # @param 101 # @param $(obj) Object file name. This shall be (re)created by the compilation. 102 102 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 103 103 # @param $(flags) Flags. 104 104 # @param $(defs) Definitions. No -D or something. 105 105 # @param $(incs) Includes. No -I or something. 106 # @param 107 # @param 108 # 109 # @param $(outbase) Output basename (full). Use this for list files and such. 110 # @param 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. 111 111 define TOOL_MINGW32_COMPILE_C 112 112 #$ (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) 114 114 $(call MSG_L2,Compiling $$@ using MINGW32) 115 115 $(TOOL_MINGW32_CC) -c\ … … 125 125 # @param $(target) Normalized main target name. 126 126 # @param $(source) Source filename (relative). 127 # @param 128 # @param $(dep) 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. 129 129 # @param $(flags) Flags. 130 130 # @param $(defs) Definitions. No -D or something. 131 131 # @param $(incs) Includes. No -I or something. 132 # @param 133 # @param $(deps)Other dependencies.134 # 135 # @param $(outbase) Output basename (full). Use this for list files and such. 136 # @param 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. 137 137 define TOOL_MINGW32_COMPILE_CXX 138 138 #$ (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) 140 140 $(call MSG_L2,Compiling $$@ using MINGW32) 141 141 $(TOOL_MINGW32_CXX) -c\ … … 153 153 # @param $(objs) Object files to put in the library. 154 154 # @param $(flags) Flags. 155 # @param 156 # @param 155 # @param $(dirdep) Directory creation dependency. 156 # @param $(deps) Other dependencies. 157 157 # 158 158 # @param $(outbase) Output basename (full). Use this for list files and such. 159 159 define TOOL_MINGW32_LINK_LIBRARY 160 160 #$ (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) 162 162 $(call MSG_L1,Creating Library $$@) 163 163 $(RM) -f $$@ … … 174 174 # @param $(libpath) Library search paths. 175 175 # @param $(flags) Flags. 176 # @param 177 # @param 178 # @param 179 # @param 180 # @param 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. 181 181 # 182 182 # @param $(outbase) Output basename (full). Use this for list files and such. 183 183 define TOOL_MINGW32_LINK_PROGRAM 184 184 #$ (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) 186 186 $(call MSG_L1,Creating Program $$@) 187 187 ifneq ($(custom_pre),) … … 205 205 # @param $(libpath) Library search paths. 206 206 # @param $(flags) Flags. 207 # @param 208 # @param 209 # @param 210 # @param 211 # @param 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. 212 212 # 213 213 # @param $(outbase) Output basename (full). Use this for list files and such. 214 214 define TOOL_MINGW32_LINK_DLL 215 215 #$ (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) 217 217 $(call MSG_L1,Creating Program $$@) 218 218 ifneq ($(custom_pre),)
Note:
See TracChangeset
for help on using the changeset viewer.