llvm-6502/test/Transforms/DSAnalysis/Makefile
Chris Lattner b401e64971 Run local, bu, & td analyses
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4670 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-10 06:41:19 +00:00

31 lines
897 B
Makefile

# test/Regression/Transforms/DSAnalysis/Makefile
#
# This directory contains test cases for the llvm data structure analysis
# library. These are meant to test all of the nooks and cranies of the
# algorithm, although we really have no way to verify that the answers produced
# are correct.
#
LEVEL = ../../../..
include $(LEVEL)/test/Makefile.tests
## Get absolute pathname for analyze
LANALYZE_ABS := $(shell cd `dirname $(LANALYZE)`; pwd)/analyze
TESTS := $(wildcard *.ll)
FTESTS := $(wildcard *.llx) # Freeform tests
all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
Output/%.out: %.ll $(LANALYZE) Output/.dir
(cd Output/; $(LANALYZE_ABS) -tddatastructure ../$< || \
( rm -f ../$@; ../$(FAILURE) ../$@ ))
all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
clean::
rm -f *.ps *.dot
Output/%.llx.out: %.llx Output/.dir $(LAS)
-$(TESTRUNR) $<