Parameterize makefile's compiler

This commit is contained in:
h@di 2018-08-03 16:47:53 +04:30
parent f2d9334723
commit e7bde92fe7

View file

@ -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