summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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