source: trunk/Extra.kmk @ 551

Last change on this file since 551 was 549, checked in by Gregg Young, 5 years ago

Changes to build system to get sym, xqs and the English help file built with kbuild

  • Property svn:eol-style set to native
File size: 1.3 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
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
19#ifeq ($(ld_debug),split)
20                $(QUIET)$(if $(PATH_SDK_OS2TK4),PATH="$(PATH_SDK_OS2TK4)/bin;$(PATH);") \
21                $(PATH_ROOT)/tools/runmapsym.cmd $(PATH_ROOT)/tools/wmapsym.cmd \
22                $(outbase).map $(outbase).sym \
23                1>nul
24#endif
25endef
26
27define TOOL_BUILD_XQS_CMDS
28#ifeq ($(ld_debug),split)   
29                $(QUIET)mapxqs.exe  $(outbase).map -o $(outbase).xqs \
30                1>nul
31#endif
32endef
33
34TOOL_GXX3OMF_LINK_DLL_OUTPUT += $(outbase).sym
35TOOL_GXX3OMF_LINK_DLL_OUTPUT += $(outbase).xqs
36TOOL_GXX3OMF_LINK_DLL_CMDS += $(TOOL_BUILD_SYM_CMDS)
37TOOL_GXX3OMF_LINK_DLL_CMDS += $(TOOL_BUILD_XQS_CMDS)
38
39TOOL_GCC3OMF_LINK_PROGRAM_OUTPUT += $(outbase).sym
40TOOL_GCC3OMF_LINK_PROGRAM_OUTPUT += $(outbase).xqs
41TOOL_GCC3OMF_LINK_PROGRAM_CMDS += $(TOOL_BUILD_SYM_CMDS)
42TOOL_GCC3OMF_LINK_PROGRAM_CMDS += $(TOOL_BUILD_XQS_CMDS)
Note: See TracBrowser for help on using the repository browser.