1、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 components of Windows NT
#
!INCLUDE $(NTMAKEENV)\makefile.def
2、source中的定义
#目标文件名称
TARGETNAME=mouclass
#临时文件目录
TARGETPATH=obj
#编译类型驱动类
TARGETTYPE=DRIVER
#WDM类型需要添加DRIVERTYPE=WMD
#包含目录
INCLUDES=($BASEDIR)\inc
#编译文件
SOURCES=moulog.mc \
mouclass.rc \
mouclass.c
本文介绍了一个 Windows NT 操作系统组件的 Makefile 示例。该 Makefile 包含了通用的编译指令,用于定义目标文件名、编译类型等,并指定了编译源文件及包含目录。

3188

被折叠的 条评论
为什么被折叠?



