mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
cf8a5f899b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339 91177308-0d34-0410-b5e6-96231b3b80d8
33 lines
660 B
Makefile
33 lines
660 B
Makefile
TESTS := $(wildcard *.ll)
|
|
|
|
SELECTTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch")
|
|
|
|
test all : testasmdis testopt
|
|
@echo "All tests successfully completed!"
|
|
|
|
testasmdis : $(TESTS:%.ll=%.ll.asmdis)
|
|
@echo "All assembler/disassembler test succeeded!"
|
|
|
|
testopt : $(TESTS:%.ll=%.ll.opt)
|
|
|
|
testselect : $(SELECTTESTS:%.ll=%.mc)
|
|
|
|
clean :
|
|
rm -f *.[123] *.bc *.mc core
|
|
|
|
%.asmdis: %
|
|
@echo "Running assembler/disassembler test on $<"
|
|
@./TestAsmDisasm.sh $<
|
|
|
|
%.opt: %
|
|
@echo "Running optimizier test on $<"
|
|
@./TestOptimizer.sh $<
|
|
|
|
%.bc: %.ll
|
|
rm -f $@
|
|
as $<
|
|
|
|
%.mc: %.bc
|
|
@echo "Generating machine instructions for $<"
|
|
@llc -dselect y $< > $@
|