diff options
| author | Claudius Holeksa <mail@keldu.de> | 2023-05-10 12:09:08 +0200 |
|---|---|---|
| committer | Claudius Holeksa <mail@keldu.de> | 2023-05-10 12:09:08 +0200 |
| commit | 482dc393d7c4a87edf669428f401f4f101c51e1e (patch) | |
| tree | cc586e5dbc7481813ade340c59144eefb0dd93b3 | |
| parent | 28a44d9b98a4365dd5e7cf9ca9778e1966b2ed45 (diff) | |
| download | mini-test-482dc393d7c4a87edf669428f401f4f101c51e1e.tar.gz | |
Added some basic variables which can be set by the env
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | example/Makefile | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -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 |
