about summary refs log tree commit diff
path: root/ach/Makefile
blob: 869a0d0f8a3ee3bf9df025ae7200e91a7ade6d28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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