如何将DDK makefile变量传递到MS-DOS批处理



在DDK makefile中,有预定义的宏/变量$(O),其值为objchk_win7_x86i386。

在MS-DOS批处理中,它调用'build'到这个makefile中。接下来,我想使用变量$(O)来指定输出目录。

那么有可能将maro $(O)作为变量传递给MS-DOS批处理吗?

谢谢你的提示。

ms-dos批处理看起来像:

set ddk=c:winddk7600.16385.1
cd    /d %my_libs%
build /zwg  // Call DDK makefile. The makefile defines macro $O=xxx.
set out_dir=%O%  // How to use the makefile marco/variable here ..
cp /y %out_dir% c:/
...

我不熟悉DDK制作过程,但是对于大多数其他进程,如果您使用参数设置环境变量,那么它将在构建中被默认。

例如

set O=%out_dir%
除非我误解了你的问题。

最新更新