|
Last change
on this file since 22145 was 22066, checked in by dmik, 13 years ago |
|
make: Look for mapsym in $(PATH_SDK_OS2TK4) when it's set.
This removes the requirement to have mapsym in PATH.
|
|
File size:
1.0 KB
|
| 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 |
|
|---|
| 6 | ifdef UNIT_Extra
|
|---|
| 7 | $(error kBuild: The Extra unit was included twice!)
|
|---|
| 8 | endif
|
|---|
| 9 | UNIT_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 |
|
|---|
| 18 | define TOOL_BUILD_SYM_CMDS
|
|---|
| 19 | ifeq ($(ld_debug),split)
|
|---|
| 20 | $(QUIET)$(if $(PATH_SDK_OS2TK4),PATH="$(PATH_SDK_OS2TK4)/bin;$(PATH);") \
|
|---|
| 21 | $(PATH_ROOT)/tools/bin/runmapsym.cmd \
|
|---|
| 22 | $(PATH_ROOT)/tools/bin/wmapsym.cmd $(outbase).map $(outbase).sym \
|
|---|
| 23 | 1>nul
|
|---|
| 24 | endif
|
|---|
| 25 | endef
|
|---|
| 26 |
|
|---|
| 27 | TOOL_GXX3OMF_LINK_DLL_OUTPUT_DEBUG += $(outbase).sym
|
|---|
| 28 | TOOL_GXX3OMF_LINK_DLL_CMDS += $(NL)$(TOOL_BUILD_SYM_CMDS)
|
|---|
| 29 |
|
|---|
| 30 | TOOL_GXX3OMF_LINK_PROGRAM_OUTPUT_DEBUG += $(outbase).sym
|
|---|
| 31 | TOOL_GXX3OMF_LINK_PROGRAM_CMDS += $(NL)$(TOOL_BUILD_SYM_CMDS)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.