Assembler file as input for building a driver using WDK tools

How to get an assembler file that you need to compile and link to the driver assembly.

To clarify the bit

SOURCES File:

TARGETTYPE=DRIVER DRIVERTYPE=WDM TARGETPATH=obj TARGETNAME=bla INCLUDES=$(DDK_INC_PATH) TARGETLIBS=$(DDK_LIB_PATH)\ks.lib SOURCES=x.cpp y.cpp z.asm 

The problem occurs with z.asm file . NMAKE complains that he does not know how to build z.obj .

So the question is how to get the asm file compiled using build and related to bla.sys .

+6
assembly windows build driver wdk
source share
1 answer

Have you tried I386_SOURCES?

eg

 SOURCES=x.cpp y.cpp I386_SOURCES=i386\z.asm 

And put the file in the i386 directory.
See also MSDN for the SOURCES macro.

+14
source share

All Articles