idaxsy
驱动大牛
驱动大牛
  • 注册日期2004-12-09
  • 最后登录2006-03-17
  • 粉丝0
  • 关注0
  • 积分386分
  • 威望54点
  • 贡献值0点
  • 好评度8点
  • 原创分0分
  • 专家分0分
阅读:868回复:1

蔡鸟问一个sources宏的问题?

楼主#
更多 发布于:2005-03-28 16:44
NTTARGETFILE0
到底是什么意思?
我看ddk help,还是不理解。
[b]万水千山总是情,回个帖子行不行?[/b]
arthurtu
驱动巨牛
驱动巨牛
  • 注册日期2001-11-08
  • 最后登录2020-12-19
  • 粉丝0
  • 关注0
  • 积分26分
  • 威望161点
  • 贡献值0点
  • 好评度35点
  • 原创分0分
  • 专家分0分
  • 社区居民
沙发#
发布于:2005-03-30 11:42
NTTARGETFILE0
You can define the NTTARGETFILE0 and/or NTTARGETFILES macros to cause makefile.def to include makefile.inc immediately after it specifies the top level targets (all, clean, and loc) and their dependencies.

The makefile.def file expands NTTARGETFILE0 as the first dependent for the all target, and NTTARGETFILES as the last dependent for the all target. Use this macro to specify additional targets and dependencies that do not fit the general case covered by makefile.def.

NTTARGETFILE0=



The fact that NTTARGETFILE0 exists, even if it is defined and empty, causes the Build utility to open makefile.inc in the same subdirectory as the sources file.

If you set NTTARGETFILE0 to equal a file name, the Build utility will not only include makefile.inc, but will also build the executable program that the macro defines. Thus, if you set:

NTTARGETFILE0=myfile.a



the Build utility builds myfile.a as part of pass zero.

If you do not set NTTARGETFILE0, the Build utility locates the specified subdirectory on pass zero, includes the makefile.inc in that subdirectory, and follows any default rules that this file contains


 [url] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ddtools/hh/ddtools/Build_Ref__DDK_fdff7531-6133-4723-a663-92ec64278e52.xml.asp[/url]
游客

返回顶部