Changeset 235 for trunk/kBuild
- Timestamp:
- Feb 10, 2005, 11:38:52 PM (20 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC.kmk
r184 r235 69 69 # @param $(target) Normalized main target name. 70 70 # @param $(source) Source filename (relative). 71 # @param 71 # @param $(obj) Object file name. This shall be (re)created by the compilation. 72 72 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 73 73 # @param $(flags) Flags. 74 74 # @param $(defs) Definitions. No -D or something. 75 75 # @param $(incs) Includes. No -I or something. 76 # @param 77 # @param 76 # @param $(dirdep) Directory creation dependency. 77 # @param $(deps) Other dependencies. 78 78 # 79 79 # @param $(outbase) Output basename (full). Use this for list files and such. 80 # @param 80 # @param $(objsuff) Object suffix. 81 81 define TOOL_GCC_COMPILE_C 82 82 #$ (warning dbg: TOOL_GCC_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps)) 83 $(obj): $( dirdep) $(PATH_CURRENT)/$(source) $(deps)83 $(obj): $(PATH_CURRENT)/$(source) $(deps) | $(dirdep) 84 84 $(call MSG_L2,Compiling $$@ using GCC) 85 85 $(TOOL_GCC_CC) -c\ … … 95 95 # @param $(target) Normalized main target name. 96 96 # @param $(source) Source filename (relative). 97 # @param 97 # @param $(obj) Object file name. This shall be (re)created by the compilation. 98 98 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 99 99 # @param $(flags) Flags. 100 100 # @param $(defs) Definitions. No -D or something. 101 101 # @param $(incs) Includes. No -I or something. 102 # @param 103 # @param 102 # @param $(dirdep) Directory creation dependency. 103 # @param $(deps) Other dependencies. 104 104 # 105 105 # @param $(outbase) Output basename (full). Use this for list files and such. 106 # @param 106 # @param $(objsuff) Object suffix. 107 107 define TOOL_GCC_COMPILE_CXX 108 108 #$ (warning dbg: TOOL_GCC_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps)) 109 $(obj): $( dirdep) $(source) $(deps)109 $(obj): $(source) $(deps) | $(dirdep) 110 110 $(call MSG_L2,Compiling $$@ using GCC) 111 111 $(TOOL_GCC_CXX) -c\ … … 123 123 # @param $(objs) Object files to put in the library. 124 124 # @param $(flags) Flags. 125 # @param 126 # @param 125 # @param $(dirdep) Directory creation dependency. 126 # @param $(deps) Other dependencies. 127 127 # 128 128 # @param $(outbase) Output basename (full). Use this for list files and such. 129 129 define TOOL_GCC_LINK_LIBRARY 130 130 #$ (warning dbg: TOOL_GCC_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) outbase=$(outbase)) 131 $(lib): $( dirdep) $(objs) $(deps)131 $(lib): $(objs) $(deps) | $(dirdep) 132 132 $(call MSG_L1,Creating Library $$@) 133 133 $(RM) -f $$@ … … 144 144 # @param $(libpath) Library search paths. 145 145 # @param $(flags) Flags. 146 # @param 147 # @param 148 # @param 149 # @param 150 # @param 146 # @param $(dirdep) Directory creation dependency. 147 # @param $(deps) Other dependencies. 148 # @param $(othersrc) Unhandled sources. 149 # @param $(custom_pre) Custom step invoked before linking. 150 # @param $(custom_post) Custom step invoked after linking. 151 151 # 152 152 # @param $(outbase) Output basename (full). Use this for list files and such. 153 153 define TOOL_GCC_LINK_PROGRAM 154 154 #$ (warning dbg: TOOL_GCC_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 155 $(exe): $( dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps)155 $(exe): $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep) 156 156 $(call MSG_L1,Creating Program $$@) 157 157 ifneq ($(custom_pre),) … … 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_GCC_LINK_DLL 184 184 #$ (warning dbg: TOOL_GCC_LINK_DLL: 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),) -
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),) -
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),) -
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),) -
trunk/kBuild/tools/NASM.kmk
r184 r235 45 45 # @param $(target) Normalized main target name. 46 46 # @param $(source) Source filename (relative). 47 # @param 48 # @param $(dep) 47 # @param $(obj) Object file name. This shall be (re)created by the compilation. 48 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 49 49 # @param $(flags) Flags. 50 50 # @param $(defs) Definitions. No -D or something. 51 51 # @param $(incs) Includes. No -I or something. 52 # @param 53 # @param $(deps)Other dependencies.52 # @param $(dirdep) Directory creation dependency. 53 # @param $(deps) Other dependencies. 54 54 # 55 55 # @param $(outbase) Output basename (full). Use this for list files and such. 56 # @param 56 # @param $(objsuff) Object suffix. 57 57 define TOOL_NASM_COMPILE_AS 58 58 #$ (warning dbg: TOOL_NASM_COMPILE_AS: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps)) 59 $(obj): $( dirdep) $(source) $(deps)59 $(obj): $(source) $(deps) | $(dirdep) 60 60 $(call MSG_L2,Compiling $$@ using NASM) 61 61 $(TOOL_NASM_AS) \ -
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.