aboutsummaryrefslogtreecommitdiff
path: root/src/test/bench/99-bottles/Makefile
diff options
context:
space:
mode:
authorPeter Hull <[email protected]>2010-09-20 22:08:28 +0100
committerGraydon Hoare <[email protected]>2010-09-30 13:50:25 -0700
commitf6e3e6903b20df01a6abe36d741c39d6e9696ebb (patch)
tree0a6754a03a66878aa0b4567e5b1420c5a006d785 /src/test/bench/99-bottles/Makefile
parentimplemented break for while-loop case (diff)
downloadrust-f6e3e6903b20df01a6abe36d741c39d6e9696ebb.tar.xz
rust-f6e3e6903b20df01a6abe36d741c39d6e9696ebb.zip
Initial check-in of 99 Bottles Of Beer
using different methods (simple, iterator, tail-call, pattern match)
Diffstat (limited to 'src/test/bench/99-bottles/Makefile')
-rw-r--r--src/test/bench/99-bottles/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/bench/99-bottles/Makefile b/src/test/bench/99-bottles/Makefile
new file mode 100644
index 00000000..8d1d27f9
--- /dev/null
+++ b/src/test/bench/99-bottles/Makefile
@@ -0,0 +1,20 @@
+RC:=../../../rustboot
+RFLAGS:=-L ../../..
+TARGETS:= 99bob-simple 99bob-iter 99bob-tail 99bob-pattern
+TARGET_X86:=$(addsuffix .x86,$(TARGETS))
+TARGET_LLVM:=$(addsuffix .llvm,$(TARGETS))
+
+all : x86s llvms
+
+clean:
+ rm $(TARGET_X86) $(TARGET_LLVM)
+
+x86s : $(TARGET_X86)
+
+llvms: $(TARGET_LLVM)
+
+%.x86 : %.rs
+ $(RC) $(RFLAGS) $^ -o $@
+
+%.llvm : %.rs
+ $(RC) $(RFLAGS) -llvm $^ -o $@ \ No newline at end of file