summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius Holeksa <mail@keldu.de>2023-05-10 12:09:08 +0200
committerClaudius Holeksa <mail@keldu.de>2023-05-10 12:09:08 +0200
commit482dc393d7c4a87edf669428f401f4f101c51e1e (patch)
treecc586e5dbc7481813ade340c59144eefb0dd93b3
parent28a44d9b98a4365dd5e7cf9ca9778e1966b2ed45 (diff)
downloadmini-test-482dc393d7c4a87edf669428f401f4f101c51e1e.tar.gz
Added some basic variables which can be set by the env
-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