all.makefile

来自「Thinking in C++ 2nd edition source code 」· MAKEFILE 代码 · 共 51 行

MAKEFILE
51
字号
# From Thinking in C++, 2nd Edition
# At http://www.BruceEckel.com
# (c) Bruce Eckel 1999
# Copyright notice in Copyright.txt
# Automatically-generated MAKEFILE 
# For examples in directory C05
# using the all compiler
# Note: does not make files that will 
# not compile with this compiler
# Invoke with: make -f all.makefile

.SUFFIXES : .obj .cpp .c
.cpp.obj :
	$(CPP) $(CPPFLAGS) -c $<
.c.obj :
	$(CPP) $(CPPFLAGS) -c $<

all: \
	Private.exe \
	Friend.exe \
	Nestfrnd.exe \
	Usehandl.exe \

test: all
	Private.exe 
	Friend.exe 
	Nestfrnd.exe 
	Usehandl.exe 

Private.exe: Private.obj 
	$(CPP) $(OFLAG)Private.exe Private.obj 

Friend.exe: Friend.obj 
	$(CPP) $(OFLAG)Friend.exe Friend.obj 

Nestfrnd.exe: Nestfrnd.obj 
	$(CPP) $(OFLAG)Nestfrnd.exe Nestfrnd.obj 

Usehandl.exe: Usehandl.obj Handle.obj 
	$(CPP) $(OFLAG)Usehandl.exe Usehandl.obj Handle.obj 


Public.obj: Public.cpp 
Private.obj: Private.cpp 
Friend.obj: Friend.cpp 
Nestfrnd.obj: Nestfrnd.cpp 
Class.obj: Class.cpp 
Handle.obj: Handle.cpp ..\require.h Handle.h 
Usehandl.obj: Usehandl.cpp Handle.h 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?