编译win2k3中tools目录下i386mk.inc文件的作用
编译win2k3中tools目录下i386mk.inc文件的作用
在Windows Driver Kit(WDK)的根安装目录下,这些文件存储在bin子目录中。
在这些文件中,有特定于该目标的优化规则或汇编指令。可能还需要额外的链接标志、资源编译器标志或C预处理器规则。
通常,不应编辑(平台)mk.inc文件,因为在源文件中可以使用宏来覆盖所有(平台)mk.inc设置。如果要更改优化,请使用MSC_optimization。如果要更改链接器标志,请使用linker_flags。
https://learn.microsoft.com/en-us/previous-versions/ff557178(v=vs.85)
(Platform)mk.inc File
- Article
- 05/04/2011
For each platform, there is a special make file:
-
i386mk.inc for an x86 platform
-
ia64mk.inc for an Itanium-based platform
-
amd64mk.inc for an x64-based platform
-
armmk.inc for the ARM platform
Under the root installation directory of the Windows Driver Kit (WDK), these files are stored in the bin subdirectory.
In these files, there are optimization rules or assembler instructions that are specific for that target. There may also be extra link flags, resource compiler flags, or C preprocessor rules that are required.
In general, you should not edit the (Platform)mk.inc files, because there are macros that can be used in your Sources files to override all the (Platform)mk.inc settings. If you want to change the optimization, use MSC_OPTIMIZATION. If you want to change linker flags, use LINKER_FLAGS.