Changeset 465 for trunk/kBuild/tools
- Timestamp:
- Jul 15, 2006, 12:14:53 AM (19 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC.kmk
r380 r465 47 47 TOOL_GCC_CXXDEFS := 48 48 49 TOOL_GCC_AS := as$(HOSTSUFF_EXE)49 TOOL_GCC_AS := gcc$(HOSTSUFF_EXE) 50 50 TOOL_GCC_ASOBJSUFF := .o 51 51 … … 116 116 117 117 118 ## Compile Assembly source. 119 # @param $(target) Normalized main target name. 120 # @param $(source) Source filename (relative). 121 # @param $(obj) Object file name. This shall be (re)created by the compilation. 122 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 123 # @param $(flags) Flags. 124 # @param $(defs) Definitions. No -D or something. 125 # @param $(incs) Includes. No -I or something. 126 # @param $(dirdep) Directory creation dependency. 127 # @param $(deps) Other dependencies. 128 # @param $(outbase) Output basename (full). Use this for list files and such. 129 # @param $(objsuff) Object suffix. 130 # 131 TOOL_GCC_COMPILE_AS_OUTPUT = $(outbase).lst 132 TOOL_GCC_COMPILE_AS_DEPEND = 133 TOOL_GCC_COMPILE_AS_DEPORD = 134 define TOOL_GCC_COMPILE_AS_CMDS 135 $(TOOL_GCC_AS) -c\ 136 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 137 -Wp,-MD,$(dep) -Wp,-MT,$(out) \ 138 -o $(out)\ 139 $(call ABSPATH,$(source)) 140 endef 141 142 118 143 ## Link library 119 144 # @param $(target) Normalized main target name. … … 127 152 TOOL_GCC_LINK_LIBRARY_OUTPUT = 128 153 TOOL_GCC_LINK_LIBRARY_DEPEND = 129 TOOL_GCC_LINK_LIBRARY_DEPORD = 154 TOOL_GCC_LINK_LIBRARY_DEPORD = 130 155 define TOOL_GCC_LINK_LIBRARY_CMDS 131 156 $(TOOL_GCC_AR) $(flags) $(out) $(objs) … … 149 174 TOOL_GCC_LINK_PROGRAM_OUTPUT = 150 175 TOOL_GCC_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 151 TOOL_GCC_LINK_PROGRAM_DEPORD = 176 TOOL_GCC_LINK_PROGRAM_DEPORD = 152 177 define TOOL_GCC_LINK_PROGRAM_CMDS 153 178 $(TOOL_GCC_LD) $(flags) -o $(out) $(objs) \ … … 171 196 TOOL_GCC_LINK_DLL_OUTPUT = 172 197 TOOL_GCC_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 173 TOOL_GCC_LINK_DLL_DEPORD = 198 TOOL_GCC_LINK_DLL_DEPORD = 174 199 define TOOL_GCC_LINK_DLL_CMDS 175 200 $(TOOL_GCC_LD) $(TOOL_GCC_LDFLAGS.dll) $(flags) -o $(out) $(objs) \ -
trunk/kBuild/tools/GCC32.kmk
r462 r465 46 46 TOOL_GCC32_CXXDEFS := 47 47 48 TOOL_GCC32_AS := as$(HOSTSUFF_EXE) 49 TOOL_GCC32_ASFLAGS := -m32 48 TOOL_GCC32_AS := gcc32$(HOSTSUFF_EXE) 50 49 TOOL_GCC32_ASOBJSUFF := .o 51 50 … … 56 55 TOOL_GCC32_LD := g++32$(HOSTSUFF_EXE) 57 56 TOOL_GCC32_LD_SYSMOD := ld$(HOSTSUFF_EXE) 58 TOOL_GCC32_LDFLAGS := 57 TOOL_GCC32_LDFLAGS := 59 58 TOOL_GCC32_LDFLAGS.debug := -g 60 59 TOOL_GCC32_LDFLAGS.release := -s … … 124 123 define TOOL_GCC32_COMPILE_CXX_CMDS 125 124 $(TOOL_GCC32_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_GCC32_COMPILE_AS_OUTPUT = $(outbase).lst 146 TOOL_GCC32_COMPILE_AS_DEPEND = 147 TOOL_GCC32_COMPILE_AS_DEPORD = 148 define TOOL_GCC32_COMPILE_AS_CMDS 149 $(TOOL_GCC32_AS) -c\ 126 150 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 127 151 -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\ … … 170 194 TOOL_GCC32_LINK_PROGRAM_OUTPUT = $(outbase).map 171 195 TOOL_GCC32_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 172 TOOL_GCC32_LINK_PROGRAM_DEPORD = 196 TOOL_GCC32_LINK_PROGRAM_DEPORD = 173 197 define TOOL_GCC32_LINK_PROGRAM_CMDS 174 198 $(TOOL_GCC32_LD) $(flags) -o $(out) $(objs)\ -
trunk/kBuild/tools/GCC3OMF.kmk
r380 r465 46 46 TOOL_GCC3OMF_CXXDEFS := 47 47 48 TOOL_GCC3OMF_AS := emxomfas$(HOSTSUFF_EXE)48 TOOL_GCC3OMF_AS := gcc$(HOSTSUFF_EXE) 49 49 TOOL_GCC3OMF_ASOBJSUFF := .obj 50 50 … … 124 124 125 125 126 ## Compile Assembly source. 127 # @param $(target) Normalized main target name. 128 # @param $(source) Source filename (relative). 129 # @param $(obj) Object file name. This shall be (re)created by the compilation. 130 # @param $(dep) Dependcy file. This shall be (re)created by the compilation. 131 # @param $(flags) Flags. 132 # @param $(defs) Definitions. No -D or something. 133 # @param $(incs) Includes. No -I or something. 134 # @param $(dirdep) Directory creation dependency. 135 # @param $(deps) Other dependencies. 136 # @param $(outbase) Output basename (full). Use this for list files and such. 137 # @param $(objsuff) Object suffix. 138 # 139 TOOL_GCC3OMF_COMPILE_AS_OUTPUT = $(outbase).lst 140 TOOL_GCC3OMF_COMPILE_AS_DEPEND = 141 TOOL_GCC3OMF_COMPILE_AS_DEPORD = 142 define TOOL_GCC3OMF_COMPILE_AS_CMDS 143 $(TOOL_GCC3OMF_AS) -c\ 144 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 145 -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\ 146 -o $(obj)\ 147 $(call ABSPATH,$(source)) 148 endef 149 150 126 151 ## Link library 127 152 # @param $(target) Normalized main target name.
Note:
See TracChangeset
for help on using the changeset viewer.