mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 21:29:28 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79992 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
378 B
Makefile
24 lines
378 B
Makefile
# Makefile for running ad-hoc custom LLVM tests
|
|
#
|
|
%.bc: %.ll
|
|
llvm-as $<
|
|
|
|
%.llc.s: %.bc
|
|
llc $< -o $@
|
|
|
|
%.gcc.s: %.c
|
|
gcc -O0 -S $< -o $@
|
|
|
|
%.nat: %.s
|
|
gcc -O0 -lm $< -o $@
|
|
|
|
%.cbe.out: %.cbe.nat
|
|
./$< > $@
|
|
|
|
%.out: %.nat
|
|
./$< > $@
|
|
|
|
%.clean:
|
|
rm -f $(patsubst %.clean,%.bc,$@) $(patsubst %.clean,%.*.s,$@) \
|
|
$(patsubst %.clean,%.*.nat,$@) $(patsubst %.clean,%.*.out,$@)
|