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