From e7bde92fe7fd4509d3c3ae99a21b588b5e364f06 Mon Sep 17 00:00:00 2001 From: "h@di" Date: Fri, 3 Aug 2018 16:47:53 +0430 Subject: [PATCH] Parameterize makefile's compiler --- src/main/cpp/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/cpp/Makefile b/src/main/cpp/Makefile index e3b7754..eb89e2d 100644 --- a/src/main/cpp/Makefile +++ b/src/main/cpp/Makefile @@ -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