makefile
来自「WindowsProgrammingFoundation C++学习很好的书籍 」· 代码 · 共 24 行
TXT
24 行
# nmake
# a namke file
# In the console mode, type nmake
# Rename your program name replace name template
EXE = Chess.exe
OBJS = Chess.obj
RES = Chess.res
LINK_FLAG = /subsystem:windows
CL_FLAG = -c
$(EXE): $(OBJS) $(RES)
link $(LINK_FLAG) /out:$(EXE) $(OBJS) $(RES) user32.lib kernel32.lib gdi32.lib
.cpp.obj:
cl $(CL_FLAG) $<
.rc.res:
rc $<
# Delete all temporary files
clear:
del *.obj
del *.res
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?