mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	More generic and maintainable makefile. Fixes #348
- implicit recipes - wildcard glob of C++ files in directory
This commit is contained in:
		| @@ -1,21 +1,14 @@ | ||||
| SOURCES =	ApproxTests.cpp \ | ||||
| 			ClassTests.cpp \ | ||||
| 			ConditionTests.cpp \ | ||||
|       		ExceptionTests.cpp \ | ||||
|       		GeneratorTests.cpp \ | ||||
|       		MessageTests.cpp \ | ||||
|       		MiscTests.cpp \ | ||||
|       		TestMain.cpp \ | ||||
|       		TrickyTests.cpp \ | ||||
|       		BDDTests.cpp \ | ||||
|       		VariadicMacrosTests.cpp \ | ||||
|  | ||||
| OBJECTS    = $(patsubst %.cpp, %.o, $(SOURCES)) | ||||
| EXEC=CatchSelfTest | ||||
| SOURCES = $(wildcard *.cpp) | ||||
| OBJECTS = $(SOURCES:.cpp=.o) | ||||
|  | ||||
| CXX = g++ | ||||
| CXXFLAGS  = -I../../include | ||||
| CXXFLAGS  = -I../../include -I../../include/internal | ||||
|  | ||||
| CatchSelfTest: $(OBJECTS) | ||||
| $(EXEC): $(OBJECTS) | ||||
| 	$(CXX) -o $@ $^ | ||||
|  | ||||
| clean: | ||||
| 	rm -f $(OBJECTS) | ||||
| 	$(RM) $(OBJECTS) | ||||
| 	$(RM) $(EXEC) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jamie Bullock
					Jamie Bullock