3 TESTS := $(wildcard *.ll)
5 LLCTESTS := $(shell /bin/ls *.ll | grep -v testswitch | grep -v opttest | grep -v xx | grep -v calltest | grep -v alloca | grep -v memory )
8 test all : testasmdis testopt testcodegen
9 @echo "All tests successfully completed!"
11 testasmdis : $(TESTS:%.ll=%.ll.asmdis)
12 @echo "All assembler/disassembler test succeeded!"
14 testopt : $(TESTS:%.ll=%.ll.opt)
16 testselect : $(LLCTESTS:%.ll=%.mc)
18 testsched : $(LLCTESTS:%.ll=%.mc)
20 testcodegen : $(LLCTESTS:%.ll=%.mc)
22 testsparc : $(LLCTESTS:%.ll=%.s)
25 @echo "Running assembler/disassembler test on $<"
26 @./TestAsmDisasm.sh $<
29 @echo "Running optimizier test on $<"
30 @./TestOptimizer.sh $<
33 ## Rules for compiling %.ll, %.bc, %.s files and
34 ## for building native SPARC executables.
36 include Makefile.target