Misha Brukman | 5b160f1 | 2004-08-11 14:16:34 +0000 | [diff] [blame] | 1 | # Makefile for running ad-hoc custom LLVM tests |
| 2 | # |
| 3 | %.bc: %.ll |
Dan Gohman | fea1dd0 | 2009-08-25 15:38:29 +0000 | [diff] [blame] | 4 | llvm-as $< |
Misha Brukman | 5b160f1 | 2004-08-11 14:16:34 +0000 | [diff] [blame] | 5 | |
| 6 | %.llc.s: %.bc |
Dan Gohman | fea1dd0 | 2009-08-25 15:38:29 +0000 | [diff] [blame] | 7 | llc $< -o $@ |
Misha Brukman | 5b160f1 | 2004-08-11 14:16:34 +0000 | [diff] [blame] | 8 | |
| 9 | %.gcc.s: %.c |
| 10 | gcc -O0 -S $< -o $@ |
| 11 | |
| 12 | %.nat: %.s |
| 13 | gcc -O0 -lm $< -o $@ |
| 14 | |
| 15 | %.cbe.out: %.cbe.nat |
| 16 | ./$< > $@ |
| 17 | |
| 18 | %.out: %.nat |
| 19 | ./$< > $@ |
| 20 | |
| 21 | %.clean: |
| 22 | rm -f $(patsubst %.clean,%.bc,$@) $(patsubst %.clean,%.*.s,$@) \ |
| 23 | $(patsubst %.clean,%.*.nat,$@) $(patsubst %.clean,%.*.out,$@) |