📄 makefile
字号:
CPPFLAGS = /c /GX /nologo /I. /I..\chapter14
all: main1.exe main2.exe
Pic.obj: Pic.cpp Pic.h
main2.obj: main2.cpp Pic.h
main2.exe: main2.obj Pic.obj
main1.obj: main1.cpp Pic.h
main1.exe: main1.obj Pic.obj
test: all
main1.exe
main2.exe
# Say "nmake clobber" to get rid of files created by nmake
clobber:
del *.obj
del *.exe
# To convert a .cpp file to a .obj file, run the compiler with these options:
# /nologo Don't print a copyright message when starting
# /GX Enable exception handling
# /c Compile only; don't link
# $< Built-in macro that expands to the file being compiled
.cpp.obj:
cl /nologo /I. /I..\chapter14 /GX /c $<
# To convert a collection of .obj files to a .exe file,
# run the linker (same command as the compiler) with these options:
# /nologo Don't print a copyright message when starting
.obj.exe:
cl /nologo $**
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -