2004-08-11 22:16:34 +08:00
|
|
|
# Makefile for running ad-hoc custom LLVM tests
|
|
|
|
#
|
|
|
|
%.bc: %.ll
|
2009-08-25 23:38:29 +08:00
|
|
|
llvm-as $<
|
2004-08-11 22:16:34 +08:00
|
|
|
|
|
|
|
%.llc.s: %.bc
|
2009-08-25 23:38:29 +08:00
|
|
|
llc $< -o $@
|
2004-08-11 22:16:34 +08:00
|
|
|
|
|
|
|
%.gcc.s: %.c
|
|
|
|
gcc -O0 -S $< -o $@
|
|
|
|
|
|
|
|
%.nat: %.s
|
|
|
|
gcc -O0 -lm $< -o $@
|
|
|
|
|
|
|
|
%.cbe.out: %.cbe.nat
|
|
|
|
./$< > $@
|
|
|
|
|
|
|
|
%.out: %.nat
|
|
|
|
./$< > $@
|
|
|
|
|
|
|
|
%.clean:
|
|
|
|
rm -f $(patsubst %.clean,%.bc,$@) $(patsubst %.clean,%.*.s,$@) \
|
|
|
|
$(patsubst %.clean,%.*.nat,$@) $(patsubst %.clean,%.*.out,$@)
|