llvm.org GIT mirror llvm / release_27 test / CodeGen / Generic / Makefile
release_27

Tree @release_27 (Download .tar.gz)

Makefile @release_27raw · history · blame

# 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,$@)