作用是什么?编译预处理?定义宏?
谢谢
# Nmake macros for building Windows 32-Bit apps!include <win32.mak>all: gina.dll# Define the compiler flags conditional on NODEBUG
!IFDEF NODEBUG
ginaflags= $(cflags) -DUNICODE -D_UNICODE
!ELSE
ginaflags= $(cflags) -DUNICODE -D_UNICODE -DDBG
!ENDIF
# Update the resource if necessary
gina.res: res.rc
rc -r -fo gina.res res.rc
# Inference rule for updating the object files
.c.obj:
$(cc) $(cdebug) $(cvarsdll) $(ginaflags) -I. $*.c
# Update the DLL
gina.DLL: \
gina.obj \
debug.obj \
welcome.obj \
shutdown.obj \
options.obj \
logon.obj \
util.obj \
gina.res
$(link) $(dlllflags) \
-ignore:4078 \
-subsystem:native,4.0 \
-def:gina.def \
-out:$*.dll \
$** \
$(guilibsdll) comctl32.lib
谢谢
# Nmake macros for building Windows 32-Bit apps!include <win32.mak>all: gina.dll# Define the compiler flags conditional on NODEBUG
!IFDEF NODEBUG
ginaflags= $(cflags) -DUNICODE -D_UNICODE
!ELSE
ginaflags= $(cflags) -DUNICODE -D_UNICODE -DDBG
!ENDIF
# Update the resource if necessary
gina.res: res.rc
rc -r -fo gina.res res.rc
# Inference rule for updating the object files
.c.obj:
$(cc) $(cdebug) $(cvarsdll) $(ginaflags) -I. $*.c
# Update the DLL
gina.DLL: \
gina.obj \
debug.obj \
welcome.obj \
shutdown.obj \
options.obj \
logon.obj \
util.obj \
gina.res
$(link) $(dlllflags) \
-ignore:4078 \
-subsystem:native,4.0 \
-def:gina.def \
-out:$*.dll \
$** \
$(guilibsdll) comctl32.lib
表示项目里文件间的编译和连接的依赖关系
在用命令行编译时,编译程序根据文件的最后更改时间和文件依赖关系决定
哪些要编译,哪些要连接
在文件夹里面makefile文件是不可识别的,我是该用txt形式加?
还是应该怎样?
只是用vc才可以打开编辑
如果我想编一个这样的makefile应该在那里创建编辑啊?
VC可以添加makefile