mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
d366e4094a
* Add a bunch of testcases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3393 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
599 B
Makefile
23 lines
599 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
|
|
gcc -c -W -Wall $< -o $@ || \
|
|
(rm -f $@; $(FAILURE) $@ )
|
|
|
|
Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
|
|
$(LAS) < $< | $(LDIS) -c > $@
|