Support directories (instead of crashing)

This commit is contained in:
stefan.haustein@gmail.com
2018-07-29 23:55:46 +02:00
parent 7eee8d8bbb
commit 1ce1732e68
2 changed files with 13 additions and 3 deletions

View File

@@ -1,10 +1,10 @@
default: tiv
tiv.o: tiv.cpp CImg.h
g++ -std=c++11 -Wall -fexceptions -O2 -c tiv.cpp -o tiv.o
g++ -std=c++17 -Wall -fpermissive -fexceptions -O2 -c tiv.cpp -o tiv.o
tiv : tiv.o
g++ tiv.o -o tiv -pthread -s
g++ tiv.o -o tiv -lstdc++fs -pthread -s
install: tiv
cp tiv /usr/local/bin/tiv