summaryrefslogtreecommitdiff
path: root/ll/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'll/Makefile')
-rw-r--r--ll/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/ll/Makefile b/ll/Makefile
new file mode 100644
index 0000000..f19648f
--- /dev/null
+++ b/ll/Makefile
@@ -0,0 +1,16 @@
+.PHONY: all clean remake
+
+all: test
+
+clean:
+ rm test test.s
+
+remake: clean
+ make all
+
+
+test: test.s
+ clang -Wall -Wextra $< -o $@
+
+test.s: test.ll
+ llc -W $< -o $@