- Timestamp:
- Jun 23, 2005 6:36:41 PM (19 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC.kmk
r235 r300 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): $( PATH_CURRENT)/$(source) $(deps) | $(dirdep)83 $(obj): $(deps) $(source) | $(dirdep) 84 84 $(call MSG_L2,Compiling $$@ using GCC) 85 85 $(TOOL_GCC_CC) -c\ … … 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): $( source) $(deps) | $(dirdep)109 $(obj): $(deps) $(source) | $(dirdep) 110 110 $(call MSG_L2,Compiling $$@ using GCC) 111 111 $(TOOL_GCC_CXX) -c\ … … 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): $( objs) $(deps) | $(dirdep)131 $(lib): $(deps) $(objs) | $(dirdep) 132 132 $(call MSG_L1,Creating Library $$@) 133 133 $(RM) -f $$@ … … 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): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)155 $(exe): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 156 156 $(call MSG_L1,Creating Program $$@) 157 157 ifneq ($(custom_pre),) … … 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): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)185 $(exe): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 186 186 $(call MSG_L1,Creating Program $$@) 187 187 ifneq ($(custom_pre),) -
trunk/kBuild/tools/GCC3.kmk
r293 r300 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): $( source) $(deps) | $(dirdep)98 $(obj): $(deps) $(source) | $(dirdep) 99 99 $(call MSG_L2,Compiling $$@ using GCC3) 100 100 $(TOOL_GCC3_CC) -c\ … … 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): $( source) $(deps) | $(dirdep)124 $(obj): $(deps) $(source) | $(dirdep) 125 125 $(call MSG_L2,Compiling $$@ using GCC3) 126 126 $(TOOL_GCC3_CXX) -c\ … … 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): $( objs) $(deps) $(filter %.a %.lib,$(othersrc)) | $(dirdep)160 $(lib): $(deps) $(objs) $(filter %.a %.lib,$(othersrc)) | $(dirdep) 161 161 $(call MSG_L1,Creating Library $$@) 162 162 $(RM) -f $$@ … … 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): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)194 $(exe): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 195 195 $(call MSG_L1,Creating Program $$@) 196 196 ifneq ($(custom_pre),) … … 226 226 define TOOL_GCC3_LINK_DLL 227 227 #$ (warning dbg: TOOL_GCC3_LINK_PROGRAM: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 228 $(dll): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)228 $(dll): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 229 229 $(call MSG_L1,Creating Program $$@) 230 230 ifneq ($(custom_pre),) … … 261 261 define TOOL_GCC3_LINK_SYSMOD 262 262 #$ (warning dbg: TOOL_GCC3_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 263 $(sys): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)263 $(sys): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 264 264 $(call MSG_L1,Creating Program $$@) 265 265 ifneq ($(custom_pre),) -
trunk/kBuild/tools/GCC3OMF.kmk
r295 r300 89 89 define TOOL_GCC3OMF_COMPILE_C 90 90 #$ (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)) 91 $(obj): $( source) $(deps) | $(dirdep)91 $(obj): $(deps) $(source) | $(dirdep) 92 92 $(call MSG_L2,Compiling $$@ using GCC3) 93 93 $(TOOL_GCC3OMF_CC) -c\ … … 115 115 define TOOL_GCC3OMF_COMPILE_CXX 116 116 #$ (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)) 117 $(obj): $( source) $(deps) | $(dirdep)117 $(obj): $(deps) $(source) | $(dirdep) 118 118 $(call MSG_L2,Compiling $$@ using GCC3) 119 119 $(TOOL_GCC3OMF_CXX) -c\ … … 138 138 define TOOL_GCC3OMF_LINK_LIBRARY 139 139 #$ (warning dbg: TOOL_GCC3OMF_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 140 $(lib): $( objs) $(deps) $(filter %.a %.lib %.def %.imp,$(othersrc)) | $(dirdep)140 $(lib): $(deps) $(objs) $(filter %.a %.lib %.def %.imp,$(othersrc)) | $(dirdep) 141 141 $(call MSG_L1,Creating Library $$@) 142 142 $(RM) -f $$@ … … 163 163 define TOOL_GCC3OMF_LINK_PROGRAM 164 164 #$ (warning dbg: TOOL_GCC3OMF_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 165 $(exe): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) | $(dirdep)165 $(exe): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(filter %.def, $(othersrc)) | $(dirdep) 166 166 $(call MSG_L1,Creating Program $$@) 167 167 ifneq ($(custom_pre),) … … 197 197 define TOOL_GCC3OMF_LINK_DLL 198 198 #$ (warning dbg: TOOL_GCC3OMF_LINK_PROGRAM: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 199 $(dll): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) | $(dirdep)199 $(dll): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(filter %.def, $(othersrc)) | $(dirdep) 200 200 $(call MSG_L1,Creating Program $$@) 201 201 ifneq ($(custom_pre),) … … 230 230 define TOOL_GCC3OMF_LINK_SYSMOD 231 231 #$ (warning dbg: TOOL_GCC3OMF_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 232 $(sys): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) | $(dirdep)232 $(sys): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(filter %.def, $(othersrc)) | $(dirdep) 233 233 $(call MSG_L1,Creating Program $$@) 234 234 ifneq ($(custom_pre),) -
trunk/kBuild/tools/MINGW32.kmk
r235 r300 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): $( source) $(deps) | $(dirdep)113 $(obj): $(deps) $(source) | $(dirdep) 114 114 $(call MSG_L2,Compiling $$@ using MINGW32) 115 115 $(TOOL_MINGW32_CC) -c\ … … 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): $( source) $(deps) | $(dirdep)139 $(obj): $(deps) $(source) | $(dirdep) 140 140 $(call MSG_L2,Compiling $$@ using MINGW32) 141 141 $(TOOL_MINGW32_CXX) -c\ … … 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): $( objs) $(deps) | $(dirdep)161 $(lib): $(deps) $(objs) | $(dirdep) 162 162 $(call MSG_L1,Creating Library $$@) 163 163 $(RM) -f $$@ … … 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): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)185 $(exe): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 186 186 $(call MSG_L1,Creating Program $$@) 187 187 ifneq ($(custom_pre),) … … 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): $( call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) | $(dirdep)216 $(dll): $(deps) $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 217 217 $(call MSG_L1,Creating Program $$@) 218 218 ifneq ($(custom_pre),) -
trunk/kBuild/tools/NASM.kmk
r235 r300 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): $( source) $(deps) | $(dirdep)59 $(obj): $(deps) $(source) | $(dirdep) 60 60 $(call MSG_L2,Compiling $$@ using NASM) 61 61 $(TOOL_NASM_AS) \ -
trunk/kBuild/tools/VCC70.kmk
r262 r300 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): $( source) $(deps) | $(dirdep)78 $(obj): $(deps) $(source) | $(dirdep) 79 79 $(call MSG_L2,Compiling $$@ using VCC70) 80 80 $(TOOL_VCC70_CC) -c\ … … 107 107 define TOOL_VCC70_COMPILE_CXX 108 108 #$ (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)) 109 $(obj): $( source) $(deps) | $(dirdep)109 $(obj): $(deps) $(source) | $(dirdep) 110 110 $(call MSG_L2,Compiling $$@ using VCC70) 111 111 $(TOOL_VCC70_CXX) -c\ … … 135 135 define TOOL_VCC70_LINK_LIBRARY 136 136 #$ (warning dbg: TOOL_VCC70_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) outbase=$(outbase)) 137 $(lib): $( objs) $(deps) $(othersrc) | $(dirdep)137 $(lib): $(deps) $(objs) $(othersrc) | $(dirdep) 138 138 $(call MSG_L1,Creating Library $$@) 139 139 $(RM) -f $$@ … … 161 161 define TOOL_VCC70_LINK_PROGRAM 162 162 #$ (warning dbg: TOOL_VCC70_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 163 $(exe): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(othersrc) | $(dirdep)163 $(exe): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) | $(dirdep) 164 164 $(call MSG_L1,Creating Program $$@) 165 165 ifneq ($(custom_pre),) … … 199 199 define TOOL_VCC70_LINK_SYSMOD 200 200 #$ (warning dbg: TOOL_VCC70_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 201 $(sys): $( objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(othersrc) | $(dirdep)201 $(sys): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) | $(dirdep) 202 202 $(call MSG_L1,Creating Program $$@) 203 203 ifneq ($(custom_pre),) … … 237 237 define TOOL_VCC70_LINK_DLL 238 238 #$ (warning dbg: TOOL_VCC70_LINK_DLL: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 239 $(dll): $( call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(othersrc) | $(dirdep)239 $(dll): $(deps) $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) | $(dirdep) 240 240 $(call MSG_L1,Creating Program $$@) 241 241 ifneq ($(custom_pre),)
Note:
See TracChangeset
for help on using the changeset viewer.