llvm-6502/test/CBackend/Makefile
Chris Lattner 61e4391b57 Build with $(CC), not gcc explicitly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3869 91177308-0d34-0410-b5e6-96231b3b80d8
2002-09-20 22:32:00 +00:00

24 lines
635 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 -W -Wall $< -o $@ || \
(rm -f $@; $(FAILURE) $@ )
Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
$(LAS) < $< | $(LDIS) -c > $@ || \
(rm -f $@; $(FAILURE) $@ )