mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
1440c2a96e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6867 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
798 B
Makefile
28 lines
798 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)
|
|
FTESTS := $(wildcard *.llx) # Freeform tests
|
|
|
|
all:: $(addprefix Output/, $(TESTS:%.ll=%.to)) $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
|
|
|
|
Output/%.to: Output/%.c
|
|
$(CC) -c -Werror $< -o $@ || \
|
|
(rm -f $@; $(FAILURE) $@ )
|
|
|
|
Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
|
|
$(LAS) < $< | $(LDIS) -c > $@ || \
|
|
(rm -f $@; $(FAILURE) $@ )
|
|
|
|
Output/%.llx.out: %.llx Output/.dir $(LAS) $(LDIS)
|
|
-$(TESTRUNR) $<
|
|
|