Changeset 1612 for trunk/kBuild/tools/MINGW32.kmk
- Timestamp:
- May 12, 2008, 5:42:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/MINGW32.kmk
r1547 r1612 26 26 # 27 27 # As a special exception you are granted permission to include this file, via 28 # the kmk include directive, as you wish without this in itself causing the 29 # resulting makefile, program or whatever to be covered by the GPL license. 28 # the kmk include directive, as you wish without this in itself causing the 29 # resulting makefile, program or whatever to be covered by the GPL license. 30 30 # This exception does not however invalidate any other reasons why the makefile, 31 31 # program, whatever should not be covered the GPL. … … 85 85 TOOL_MINGW32_LD ?= $(TOOL_MINGW32_PREFIX)gcc$(TOOL_MINGW32_HOSTSUFF_EXE) 86 86 endif 87 TOOL_MINGW32_LD_MAP ?= -Wl,-Map -Wl,$(1) -Wl,--cref88 TOOL_MINGW32_LD_SYSMOD_MAP ?= -Map $(1) --cref89 87 TOOL_MINGW32_DLLWRAP ?= $(TOOL_MINGW32_PREFIX)dllwrap$(TOOL_MINGW32_HOSTSUFF_EXE) 90 88 TOOL_MINGW32_DLLTOOL ?= $(TOOL_MINGW32_PREFIX)dlltool$(TOOL_MINGW32_HOSTSUFF_EXE) … … 236 234 $(QUIET)$(TOOL_MINGW32_LD) $(flags) -o $(out) $(objs)\ 237 235 $(foreach p,$(libpath), -L$(p))\ 238 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))\ 239 $(call TOOL_MINGW32_LD_MAP,$(outbase).map) 236 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 240 237 endef 241 238 … … 256 253 TOOL_MINGW32_LINK_DLL_OUTPUT = 257 254 TOOL_MINGW32_LINK_DLL_OUTPUT_MAYBE = $(outbase).a $(outbase).exp $(PATH_LIB)/$(notdir $(outbase)).exp $(PATH_LIB)/$(notdir $(outbase)).a 258 ## @todo Find a better solution for installing the extra files (.a, .exp, .pdb, .map,etc).255 ## @todo Find a better solution for installing the extra files (.a, .exp, .pdb, etc). 259 256 TOOL_MINGW32_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 260 257 $(filter %.def %.res,$(othersrc)) … … 269 266 $(objs)\ 270 267 $(foreach p,$(libpath), -L$(p))\ 271 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))\ 272 $(call TOOL_MINGW32_LD_MAP,$(outbase).map) 268 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 273 269 $(QUIET)$(CP) $(outbase).exp $(outbase).a $(PATH_LIB)/ 274 270 endef 275 ## @todo sep erate install stuff!271 ## @todo separate install stuff!
Note:
See TracChangeset
for help on using the changeset viewer.