summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorClaudius Holeksa <mail@keldu.de>2023-05-09 17:45:17 +0200
committerClaudius Holeksa <mail@keldu.de>2023-05-09 17:45:17 +0200
commitecfee1ff28824eaef7cf9ff7bc422e5e99202121 (patch)
tree7a74b57df26d482c06f69cd21da31551a01eb908 /Makefile
parentaccd05e6c5f41c536a97a7313ea1e635b0863205 (diff)
downloadmini-test-ecfee1ff28824eaef7cf9ff7bc422e5e99202121.tar.gz
Added Makefile and ammended README and nix files for that change
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2e56cbb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+.PHONY: all clean
+
+all: build/libkeltest.a
+
+build/libkeltest.a:
+ mkdir -p ./build
+ c++ -std=c++17 -DKELTEST_COMPILE_TEST_BINARY src/keltest/test.cpp -o build/test.o
+ ar build/libkeltest.a build/test.o
+
+clean:
+ rm -rf ./build
+
+install: build/libkeltest.a
+ mkdir -p ${prefix}/lib
+ mkdir -p ${prefix}/include/keltest
+ cp build/libkeltest.a ${prefix}/lib/libkeltest.a
+ cp src/keltest/test.h ${prefix}/include/keltest/test.h