Put common rules for compiling programs into Makefile.target.
[oota-llvm.git] / test / Makefile
1 HERE  = ..
2
3 TESTS := $(wildcard *.ll)
4
5 LLCTESTS := $(shell /bin/ls *.ll | grep -v testswitch | grep -v opttest | grep -v xx | grep -v calltest | grep -v alloca | grep -v memory )
6
7
8 test all : testasmdis testopt testcodegen
9         @echo "All tests successfully completed!"
10
11 testasmdis  : $(TESTS:%.ll=%.ll.asmdis)
12         @echo "All assembler/disassembler test succeeded!"
13
14 testopt     : $(TESTS:%.ll=%.ll.opt)
15
16 testselect  : $(LLCTESTS:%.ll=%.mc)
17
18 testsched   : $(LLCTESTS:%.ll=%.mc)
19
20 testcodegen : $(LLCTESTS:%.ll=%.mc)
21
22 testsparc   : $(LLCTESTS:%.ll=%.s)
23
24 %.asmdis: %
25         @echo "Running assembler/disassembler test on $<"
26         @./TestAsmDisasm.sh $<
27
28 %.opt: %
29         @echo "Running optimizier test on $<"
30         @./TestOptimizer.sh $<
31
32
33 ## Rules for compiling %.ll, %.bc, %.s files and
34 ## for building native SPARC executables.
35 ## 
36 include Makefile.target