Changeset 235 for trunk/kBuild/tools/GCC.kmk
- Timestamp:
- Feb 10, 2005, 11:38:52 PM (20 years ago)
- File:
-
- 1 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),)
Note:
See TracChangeset
for help on using the changeset viewer.