source: branches/gcc-kmk/Extra.kmk@ 21912

Last change on this file since 21912 was 21912, checked in by dmik, 14 years ago

Generate and install .SYM files for DLLs and EXEs.

This only works for the GXX3OMF tool so far.

File size: 948 bytes
Line 
1## @file
2# Extra definitions for kBuild implemented using a UNIT so that some things
3# can be overriden/hacked at the right time.
4#
5
6ifdef UNIT_Extra
7 $(error kBuild: The Extra unit was included twice!)
8endif
9UNIT_Extra = Extra
10
11#
12# Rules to enerate .sym files from .map files. (This works only for the GXX3OMF
13# tool so far. A proper solution would be to extend GXX3OMF but something
14# doesn't work right in kBuild, e.g. _COMPILE_*_OUTPUT and friends are not
15# inherited).
16#
17
18define TOOL_BUILD_SYM_CMDS
19ifeq ($(ld_debug),split)
20 $(QUIET)$(PATH_ROOT)/tools/bin/runmapsym.cmd \
21 $(PATH_ROOT)/tools/bin/wmapsym.cmd $(outbase).map $(outbase).sym \
22 1>nul
23endif
24endef
25
26TOOL_GXX3OMF_LINK_DLL_OUTPUT_DEBUG += $(outbase).sym
27TOOL_GXX3OMF_LINK_DLL_CMDS += $(NL)$(TOOL_BUILD_SYM_CMDS)
28
29TOOL_GXX3OMF_LINK_PROGRAM_OUTPUT_DEBUG += $(outbase).sym
30TOOL_GXX3OMF_LINK_PROGRAM_CMDS += $(NL)$(TOOL_BUILD_SYM_CMDS)
Note: See TracBrowser for help on using the repository browser.