Changeset 461 for trunk/kBuild/tools
- Timestamp:
- Jul 9, 2006, 11:30:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC3.kmk
r380 r461 46 46 TOOL_GCC3_CXXDEFS := 47 47 48 TOOL_GCC3_AS := as$(HOSTSUFF_EXE)48 TOOL_GCC3_AS := gcc$(HOSTSUFF_EXE) 49 49 TOOL_GCC3_ASOBJSUFF := .o 50 50 … … 123 123 define TOOL_GCC3_COMPILE_CXX_CMDS 124 124 $(TOOL_GCC3_CXX) -c\ 125 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 126 -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\ 127 -o $(obj)\ 128 $(call ABSPATH,$(source)) 129 endef 130 131 132 ## Compile Assembly source. 133 # @param $(target) Normalized main target name. 134 # @param $(source) Source filename (relative). 135 # @param $(obj) Object file name. This shall be (re)created by the compilation. 136 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 137 # @param $(flags) Flags. 138 # @param $(defs) Definitions. No -D or something. 139 # @param $(incs) Includes. No -I or something. 140 # @param $(dirdep) Directory creation dependency. 141 # @param $(deps) Other dependencies. 142 # @param $(outbase) Output basename (full). Use this for list files and such. 143 # @param $(objsuff) Object suffix. 144 # 145 TOOL_GCC3_COMPILE_AS_OUTPUT = $(outbase).lst 146 TOOL_GCC3_COMPILE_AS_DEPEND = 147 TOOL_GCC3_COMPILE_AS_DEPORD = 148 define TOOL_GCC3_COMPILE_AS_CMDS 149 $(TOOL_GCC3_AS) -c\ 125 150 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 126 151 -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\ … … 169 194 TOOL_GCC3_LINK_PROGRAM_OUTPUT = $(outbase).map 170 195 TOOL_GCC3_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 171 TOOL_GCC3_LINK_PROGRAM_DEPORD = 196 TOOL_GCC3_LINK_PROGRAM_DEPORD = 172 197 define TOOL_GCC3_LINK_PROGRAM_CMDS 173 198 $(TOOL_GCC3_LD) $(flags) -o $(out) $(objs)\
Note:
See TracChangeset
for help on using the changeset viewer.