⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcc.makefile

📁 这是介绍C++非常经典的一本书,无论是初学者还是对C++有一定了解的人都值得看的一本书.
💻 MAKEFILE
字号:
# 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 C04
# using the gcc compiler
# Note: does not make files that will 
# not compile with this compiler
# Invoke with: make -f gcc.makefile

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

all: \
	CLibTest \
	CppLibTest \
	Sizeof \
	StackTest \
	Scoperes 

test: all 
	CLibTest  
	CppLibTest  
	Sizeof  
	StackTest StackTest.cpp 
	Scoperes  

bugs: 
	@echo No compiler bugs in this directory!

CLibTest: CLibTest.o CLib.o 
	$(CPP) $(OFLAG)CLibTest CLibTest.o CLib.o 

CppLibTest: CppLibTest.o CppLib.o 
	$(CPP) $(OFLAG)CppLibTest CppLibTest.o CppLib.o 

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

StackTest: StackTest.o Stack.o 
	$(CPP) $(OFLAG)StackTest StackTest.o Stack.o 

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


CLib.o: CLib.cpp CLib.h 
CLibTest.o: CLibTest.cpp CLib.h 
CppLib.o: CppLib.cpp CppLib.h 
CppLibTest.o: CppLibTest.cpp CppLib.h ../require.h 
Sizeof.o: Sizeof.cpp CLib.h CppLib.h 
Stack.o: Stack.cpp Stack.h ../require.h 
StackTest.o: StackTest.cpp Stack.h ../require.h 
Scoperes.o: Scoperes.cpp 

⌨️ 快捷键说明

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