2001-11-05 00:18:30 +00:00
|
|
|
HERE = ..
|
2001-08-28 23:26:44 +00:00
|
|
|
|
2001-06-06 20:29:01 +00:00
|
|
|
TESTS := $(wildcard *.ll)
|
|
|
|
|
2001-10-22 22:33:08 +00:00
|
|
|
LLCTESTS := $(shell /bin/ls *.ll | grep -v testswitch | grep -v opttest | grep -v xx | grep -v calltest | grep -v alloca | grep -v memory )
|
2001-08-28 23:26:44 +00:00
|
|
|
|
2001-07-31 21:45:56 +00:00
|
|
|
|
2001-08-28 23:26:44 +00:00
|
|
|
test all : testasmdis testopt testcodegen
|
2001-06-06 20:29:01 +00:00
|
|
|
@echo "All tests successfully completed!"
|
|
|
|
|
2001-08-28 23:26:44 +00:00
|
|
|
testasmdis : $(TESTS:%.ll=%.ll.asmdis)
|
2001-06-06 20:29:01 +00:00
|
|
|
@echo "All assembler/disassembler test succeeded!"
|
|
|
|
|
2001-08-28 23:26:44 +00:00
|
|
|
testopt : $(TESTS:%.ll=%.ll.opt)
|
|
|
|
|
|
|
|
testselect : $(LLCTESTS:%.ll=%.mc)
|
|
|
|
|
|
|
|
testsched : $(LLCTESTS:%.ll=%.mc)
|
2001-06-06 20:29:01 +00:00
|
|
|
|
2001-08-28 23:26:44 +00:00
|
|
|
testcodegen : $(LLCTESTS:%.ll=%.mc)
|
2001-07-31 21:45:56 +00:00
|
|
|
|
2001-10-10 20:10:48 +00:00
|
|
|
testsparc : $(LLCTESTS:%.ll=%.s)
|
|
|
|
|
2001-06-06 20:29:01 +00:00
|
|
|
%.asmdis: %
|
|
|
|
@echo "Running assembler/disassembler test on $<"
|
|
|
|
@./TestAsmDisasm.sh $<
|
|
|
|
|
|
|
|
%.opt: %
|
|
|
|
@echo "Running optimizier test on $<"
|
|
|
|
@./TestOptimizer.sh $<
|
2001-07-31 21:45:56 +00:00
|
|
|
|
2001-09-28 14:13:09 +00:00
|
|
|
|
2001-11-05 00:18:30 +00:00
|
|
|
## Rules for compiling %.ll, %.bc, %.s files and
|
|
|
|
## for building native SPARC executables.
|
|
|
|
##
|
|
|
|
include Makefile.target
|