1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 06:22:51 +01:00
llvm-mirror/test/Regression/CBackend/Makefile
Nick Hildenbrandt a14ade019e CBE doesn't alloc correctly
llvm-svn: 4474
2002-10-31 18:23:09 +00:00

24 lines
628 B
Makefile

# test/Regression/CBackend/Makefile
#
# This directory contains regression tests for the C backend for LLVM.
# These testcases are assembled with the LLVM assembler, then disassembled into
# C code. The C code should be compilable with the standard C compiler.
#
LEVEL = ../../..
include $(LEVEL)/test/Makefile.tests
.PRECIOUS: Output/%.c
TESTS := $(wildcard *.ll)
all:: $(addprefix Output/, $(TESTS:%.ll=%.to))
Output/%.to: Output/%.c
$(CC) -c $< -o $@ #|| \
(rm -f $@; $(FAILURE) $@ )
Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
$(LAS) < $< | $(LDIS) -c > $@ #|| \
(rm -f $@; $(FAILURE) $@ )