egcs.makefile

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

MAKEFILE
53
字号
# 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 egcs compiler
# Note: does not make files that will 
# not compile with this compiler
# Invoke with: make -f egcs.makefile

CPP = g++
OFLAG = -o
.SUFFIXES : .o .cpp .c
.cpp.o :
	$(CPP) $(CPPFLAGS) -c $<
.c.o :
	$(CPP) $(CPPFLAGS) -c $<

all: \
	Private \
	Friend \
	Nestfrnd \
	Usehandl \

test: all
	Private 
	Friend 
	Nestfrnd 
	Usehandl 

Private: Private.o 
	$(CPP) $(OFLAG)Private Private.o 

Friend: Friend.o 
	$(CPP) $(OFLAG)Friend Friend.o 

Nestfrnd: Nestfrnd.o 
	$(CPP) $(OFLAG)Nestfrnd Nestfrnd.o 

Usehandl: Usehandl.o Handle.o 
	$(CPP) $(OFLAG)Usehandl Usehandl.o Handle.o 


Public.o: Public.cpp 
Private.o: Private.cpp 
Friend.o: Friend.cpp 
Nestfrnd.o: Nestfrnd.cpp 
Class.o: Class.cpp 
Handle.o: Handle.cpp ../require.h Handle.h 
Usehandl.o: Usehandl.cpp Handle.h 

⌨️ 快捷键说明

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