当前位置: 代码迷 >> 驱动开发 >> vc 下 makefile和source文件 如何用
  详细解决方案

vc 下 makefile和source文件 如何用

热度:146   发布时间:2016-04-28 10:56:46.0
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
  相关解决方案