summaryrefslogtreecommitdiff
path: root/Makefile
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 /Makefile
parent28a44d9b98a4365dd5e7cf9ca9778e1966b2ed45 (diff)
downloadmini-test-482dc393d7c4a87edf669428f401f4f101c51e1e.tar.gz
Added some basic variables which can be set by the env
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 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: