summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--example/Makefile1
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b34b95a..ed21d3c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,14 @@
.PHONY: all clean
+CXX ?= c++
+CXXFLAGS ?= -std=c++17
PREFIX ?= /usr/local
all: build/libkeltest.a
build/libkeltest.a:
mkdir -p ./build
- c++ -std=c++17 -DKELTEST_COMPILE_TEST_BINARY src/keltest/test.cpp -c -o build/test.o
+ ${CXX} ${CXXFLAGS} -DKELTEST_COMPILE_TEST_BINARY src/keltest/test.cpp -c -o build/test.o
ar rcs build/libkeltest.a build/test.o
clean:
diff --git a/example/Makefile b/example/Makefile
index 408b2f3..80bf7c6 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -1,5 +1,6 @@
.PHONY: all clean
+CXX ?= c++
PREFIX ?= /usr/local
all: build/example