Changeset 184 for trunk/kBuild/tools/GCC.kmk
- Timestamp:
- Dec 4, 2004, 3:26:54 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC.kmk
r181 r184 75 75 # @param $(incs) Includes. No -I or something. 76 76 # @param $(dirdep) Directory creation dependency. 77 # @param $(deps) Other dependencies. 77 78 # 78 79 # @param $(outbase) Output basename (full). Use this for list files and such. 79 80 # @param $(objsuff) Object suffix. 80 81 define TOOL_GCC_COMPILE_C 81 #$ (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) )82 $(obj): $(dirdep) $(PATH_CURRENT)/$(source) 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 84 $(call MSG_L2,Compiling $$@ using GCC) 84 85 $(TOOL_GCC_CC) -c\ … … 87 88 -o $$@\ 88 89 $(call ABSPATH,$(source)) 89 90 90 91 endef 91 92 … … 100 101 # @param $(incs) Includes. No -I or something. 101 102 # @param $(dirdep) Directory creation dependency. 103 # @param $(deps) Other dependencies. 102 104 # 103 105 # @param $(outbase) Output basename (full). Use this for list files and such. 104 106 # @param $(objsuff) Object suffix. 105 107 define TOOL_GCC_COMPILE_CXX 106 #$ (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) )107 $(obj): $(dirdep) $(source) 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) 108 110 $(call MSG_L2,Compiling $$@ using GCC) 109 111 $(TOOL_GCC_CXX) -c\ … … 112 114 -o $$@\ 113 115 $(call ABSPATH,$(source)) 114 116 115 117 endef 116 118 … … 131 133 $(RM) -f $$@ 132 134 $(TOOL_GCC_AR) $(flags) $$@ $(objs) 133 135 134 136 endef 135 137 … … 155 157 ifneq ($(custom_pre),) 156 158 $(eval $(custom_pre)) 157 endif 159 endif 158 160 $(TOOL_GCC_LD) $(flags) -o $$@ $(objs) \ 159 161 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 160 162 ifneq ($(custom_post),) 161 163 $(eval $(custom_post)) 162 endif 163 164 endif 165 164 166 endef 165 167 … … 185 187 ifneq ($(custom_pre),) 186 188 $(eval $(custom_pre)) 187 endif 189 endif 188 190 $(TOOL_GCC_LD) $(TOOL_GCC_LDFLAGS.dll) $(flags) -o $$@ $(objs) \ 189 191 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 190 192 ifneq ($(custom_post),) 191 193 $(eval $(custom_post)) 192 endif 193 194 endif 195 194 196 endef 195 197
Note:
See TracChangeset
for help on using the changeset viewer.