summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-11 19:07:09 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-11 19:07:16 +0200
commit474ce1322f3c13fe414b5e2201d82a4136a947da (patch)
tree841d4771e451d646c7a83384a148a7b791f1ff44 /Makefile
Simple build config with dependency tracking.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7cad9bd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+all: libcppbuild.a cppbuild
+
+libcppbuild.a: libcppbuild.cc
+ g++ -g -std=c++17 libcppbuild.cc -c -o libcppbuild.o
+ ar rcs libcppbuild.a libcppbuild.o
+
+cppbuild: cppbuild.cc libcppbuild.a
+ g++ -g -std=c++17 cppbuild.cc libcppbuild.a -o cppbuild
+
+clean:
+ rm -f cppbuild libcppbuild.o libcppbuild.a