Parameterize makefile's compiler
This commit is contained in:
parent
f2d9334723
commit
e7bde92fe7
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue