aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index fee742d..a37ac26 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ OPTLL:=$(addsuffix .opt.ll,$(BIN))
OBJ:=$(addsuffix .o,$(BIN))
ASM:=$(addsuffix .s,$(BIN))
BC:=$(addsuffix .bc,$(BIN))
+DEPS:=rts.ll
all: $(BIN)
@@ -18,11 +19,8 @@ $(ASM): %.s: %.bc
$(BC): %.bc: %.opt.ll
llvm-as-11 $^ -o $@
-$(OPTLL): %.opt.ll: %.ll
- opt-11 -S -always-inline $^ -o $@
- opt-11 -S -instcombine $@ -o $@
- opt-11 -S -O3 $@ -o $@
- opt-11 -S -O3 $@ -o $@
+$(OPTLL): %.opt.ll: $(DEPS) %.ll
+ cat $^ | opt-11 -S -O3 -o $@
clean:
$(RM) $(BIN) $(OBJ) $(ASM) $(BC)