blob: 26ebc316a215b1cc02c3003263cf61100b22d113 [file] [log] [blame]
Misha Brukman5b160f12004-08-11 14:16:34 +00001# Makefile for running ad-hoc custom LLVM tests
2#
3%.bc: %.ll
Dan Gohmanfea1dd02009-08-25 15:38:29 +00004 llvm-as $<
Misha Brukman5b160f12004-08-11 14:16:34 +00005
6%.llc.s: %.bc
Dan Gohmanfea1dd02009-08-25 15:38:29 +00007 llc $< -o $@
Misha Brukman5b160f12004-08-11 14:16:34 +00008
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,$@)