From 482dc393d7c4a87edf669428f401f4f101c51e1e Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Wed, 10 May 2023 12:09:08 +0200 Subject: Added some basic variables which can be set by the env --- Makefile | 4 +++- example/Makefile | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3