Include Makefile.singlesrc in order to compile .c tests.
[oota-llvm.git] / test / LLC / Makefile
1 #                    test/Regression/LLC/Makefile
2 #
3 # This directory contains regression tests for the LLVM sparc backend.  
4 #
5 LEVEL = ../../..
6 include $(LEVEL)/test/Programs/SingleSource/Makefile.singlesrc
7
8 TESTS := $(wildcard *.ll) $(wildcard *.c)
9
10 all:: $(addprefix Output/, $(TESTS:%.ll=%.ts))
11
12 Output/%.ts: Output/%.bc $(LLC) Output/.dir
13         @echo "======== Compiling $< =========="
14         $(LLC) -f $< -o $@ || \
15                  ( rm -f $@; $(FAILURE) $@ )