首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 驱动开发 >

vc 下 makefile和source文件 如何用

2012-04-28 
vc 下 makefile和source文件 怎么用环境 wdk+intel Composer XE 2011 SP1 + vs2005makefile文件## DO NOT

vc 下 makefile和source文件 怎么用
环境 wdk+intel Composer XE 2011 SP1 + vs2005 

makefile文件
#
# DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source
# file to this component. This file merely indirects to the real make file
# that is shared by all the driver components of the Windows NT DDK
#

!INCLUDE $(NTMAKEENV)\makefile.def

MSC_WARNING_LEVEL=/W1


source文件
TARGETNAME=Lib
TARGETPATH=lib$(BUILD_ALT_DIR)
TARGETTYPE=LIBRARY
DRIVERTYPE=WDM

INCLUDES=$(DDK_INC_PATH); \
..\inc;

SOURCES=Registry.cpp \
pci.cpp \
Adapter.cpp \
Stream.cpp \
Stream.cpp \
Debug.cpp \
WinHalEmu.cpp \
btguids.cpp


USER_C_FLAGS=/TP $(OPTIMIZER_FLAGS)
C_DEFINES=-DMSC -DPNP_POWER



现在 自己写了一个汇编文件.asm.在btcap\lib文件夹下。 想在编译过程成中生成obj文件, 并且obj文件生成到btcap\lib\objchk_win7_amd64\amd64文件夹下, 
请问makefile文件和 source文件, 怎么写。

[解决办法]
看起来像是WDK的东西, 直接用WDK的命令行,然后运行 build
[解决办法]

C/C++ code
sources文件C_DEFINES=/DWIN2K=1TARGETNAME=MyDriverTARGETPATH=objTARGETTYPE=DRIVERSOURCES=Driver.cmakefile文件## DO NOT EDIT THIS FILE!!!  Edit .\sources. if you want to add a new source# file to this component.  This file merely indirects to the real make file# that is shared by all the driver components of the Windows NT DDK#!INCLUDE $(NTMAKEENV)\makefile.def 

热点排行