about summary refs log tree commit diff
path: root/users/aspen/achilles/ach/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'users/aspen/achilles/ach/Makefile')
-rw-r--r--users/aspen/achilles/ach/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/users/aspen/achilles/ach/Makefile b/users/aspen/achilles/ach/Makefile
new file mode 100644
index 0000000000..3a8cd2865e
--- /dev/null
+++ b/users/aspen/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