Changeset 184 for trunk/kBuild/tools/MINGW32.kmk
- Timestamp:
- Dec 4, 2004, 3:26:54 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/MINGW32.kmk
r181 r184 28 28 29 29 # find latest installed version 30 ifndef PATH_TOOL_MINGW32 30 ifndef PATH_TOOL_MINGW32 31 31 PATH_TOOL_MINGW32 := $(sort $(wildcard $(PATH_DEV)/$(BUILD_PLATFORM_ARCH).$(BUILD_PLATFORM)/mingw32/v*.*)) 32 32 ifeq ($(PATH_TOOL_MINGW32),) … … 55 55 endif 56 56 endif 57 57 58 58 TOOL_MINGW32_CC := $(_TOOL_MINGW32_PREFIX)gcc$(_TOOL_MINGW32_SUFF_EXE) 59 59 TOOL_MINGW32_COBJSUFF := .o … … 105 105 # @param $(incs) Includes. No -I or something. 106 106 # @param $(dirdep) Directory creation dependency. 107 # @param $(deps) Other dependencies. 107 108 # 108 109 # @param $(outbase) Output basename (full). Use this for list files and such. 109 110 # @param $(objsuff) Object suffix. 110 111 define TOOL_MINGW32_COMPILE_C 111 #$ (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) )112 $(obj): $(dirdep) $(source) 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): $(dirdep) $(source) $(deps) 113 114 $(call MSG_L2,Compiling $$@ using MINGW32) 114 115 $(TOOL_MINGW32_CC) -c\ … … 117 118 -o $$@\ 118 119 $(call ABSPATH,$(source)) 119 120 120 121 endef 121 122 … … 130 131 # @param $(incs) Includes. No -I or something. 131 132 # @param $(dirdep) Directory creation dependency. 133 # @param $(deps) Other dependencies. 132 134 # 133 135 # @param $(outbase) Output basename (full). Use this for list files and such. 134 136 # @param $(objsuff) Object suffix. 135 137 define TOOL_MINGW32_COMPILE_CXX 136 #$ (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) )137 $(obj): $(dirdep) $(source) 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): $(dirdep) $(source) $(deps) 138 140 $(call MSG_L2,Compiling $$@ using MINGW32) 139 141 $(TOOL_MINGW32_CXX) -c\ … … 142 144 -o $$@\ 143 145 $(call ABSPATH,$(source)) 144 146 145 147 endef 146 148 … … 161 163 $(RM) -f $$@ 162 164 $(TOOL_MINGW32_AR) $(flags) $$@ $(objs) 163 165 164 166 endef 165 167 … … 185 187 ifneq ($(custom_pre),) 186 188 $(eval $(custom_pre)) 187 endif 189 endif 188 190 $(TOOL_MINGW32_LD) $(flags) -o $$@ $(objs) \ 189 191 $(foreach p,$(libpath), -L$(p)) \ … … 191 193 ifneq ($(custom_post),) 192 194 $(eval $(custom_post)) 193 endif 194 195 endif 196 195 197 endef 196 198 … … 216 218 ifneq ($(custom_pre),) 217 219 $(eval $(custom_pre)) 218 endif 220 endif 219 221 $(TOOL_MINGW32_DLLWRAP) $(flags) \ 220 222 --dllname=$(dll) \ … … 231 233 ifneq ($(custom_post),) 232 234 $(eval $(custom_post)) 233 endif 235 endif 234 236 _OUT_FILES += $(outbase).map $(outbase).a $(outbase).exp 235 237
Note:
See TracChangeset
for help on using the changeset viewer.