mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-06 09:54:49 +00:00
24 lines
384 B
Makefile
24 lines
384 B
Makefile
|
# Makefile for running ad-hoc custom LLVM tests
|
||
|
#
|
||
|
%.bc: %.ll
|
||
|
llvm-as -f $<
|
||
|
|
||
|
%.llc.s: %.bc
|
||
|
llc -f $< -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,$@)
|