about summary refs log tree commit diff
path: root/users/grfn/achilles/ach/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'users/grfn/achilles/ach/Makefile')
-rw-r--r--users/grfn/achilles/ach/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/users/grfn/achilles/ach/Makefile b/users/grfn/achilles/ach/Makefile
new file mode 100644
index 000000000000..3a8cd2865e87
--- /dev/null
+++ b/users/grfn/achilles/ach/Makefile
@@ -0,0 +1,15 @@
+default: simple
+
+%.ll: %.ach
+	cargo run -- compile $< -o $@ -f llvm
+
+%.o: %.ll
+	llc $< -o $@ -filetype=obj
+
+%: %.o
+	clang $< -o $@
+
+.PHONY: clean
+
+clean:
+	@rm -f *.ll *.o simple functions