Parameterize makefile's compiler
This commit is contained in:
		| @@ -1,10 +1,12 @@ | ||||
| CXX=g++-8 | ||||
|  | ||||
| default: tiv | ||||
|  | ||||
| tiv.o: tiv.cpp CImg.h | ||||
| 	g++ -std=c++17  -Wall -fpermissive -fexceptions -O2 -c tiv.cpp -o tiv.o | ||||
| 	$(CXX) -std=c++17  -Wall -fpermissive -fexceptions -O2 -c tiv.cpp -o tiv.o | ||||
|  | ||||
| tiv : tiv.o | ||||
| 	g++ tiv.o -o tiv -lstdc++fs -pthread -s | ||||
| 	$(CXX) tiv.o -o tiv -lstdc++fs -pthread -s | ||||
|  | ||||
| install: tiv | ||||
| 	cp tiv /usr/local/bin/tiv | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 h@di
					h@di