aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ec57bed
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved. This file is offered as-is,
+# without any warranty.
+
+
+.PHONY: all
+all: bin/malloc bin/new
+
+
+bin/%: src/%.cc
+ @mkdir -p bin
+ $(CXX) -O0 -o $@ $^
+
+.PHONY: clean
+clean:
+ -rm -r bin
+