# #DONOT EDIT THIS Edit ./sources.if you want to add a new source #file to this component.Thisfile merely indirects to the real make file # that is shared by all the driver components of the Windows NT DDK #
!INCLUDE $(NTMAKEENV)/makefile.def
一般不要更改这个文件,如果要加入源文件应该编辑sources文件。
简单的source文件如下:
TARGETNAME=hello TARGETPATH=obj TARGETTYPE=DRIVER
SOURCES=hello.c
有了这3个文件就可以编译出驱动程序hello.sys了。
首先进入编译环境,开始->Development Kits->DDK XXXX->build enviorenments->windows XP->Windows XP Checked Build Environment.