win ce Makefile File !INCLUDE $(_MAKEENVROOT)\makefile.def

Each subdirectory in a source code tree that includes a sources file also includes a makefile file. The following code example shows a directory structure and the placement of the makefile file.

\MyProj
  Dirs
  \Proj1
    Dirs
    Sources
    Makefile

In an application development environment, such as Microsoft Visual Studio 2005, a makefile file contains all commands, macro definitions, and options that specify how to build a project.

By contrast, in Platform Builder, the sources files contain this type of information; the makefile file contains only a reference to the common makefile file, Makefile.def.

You should not edit the makefile file or alter Makefile.def. When creating your own projects in the OS tree, create a makefile file that simply includes makefile.def or copy an existing makefile file from another project. The following is a sample makefile file.

!include $(_MAKEENVROOT)\makefile.def

After Build.exe locates the dirs and sources files, it sets an internal environment variable. Nmake.exe uses this variable to append the Sources.cmn file to sources files in applicable subdirectories. For information about Sources.cmn, seeSources File.

Using the linking rules contained in Makefile.def, Nmake.exe compiles the source code specified in the sources files or it links object modules.

Nmake.exe uses Makefile.def to transform the current set of environment variables into calls to a compiler, linker, or other tool.

Nmake.exe uses other environment variables to determine the options that it passes to Shcl.exe.

For Windows Embedded CE: For example, if _TGTCPUFAMILY is set to SHx, Nmake.exe selects the Shcl.exe compiler.

 

http://technet.microsoft.com/zh-cn/library/aa908661

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值