summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/Makefile
blob: d228f69a85661009b97a1e975022e0e0e7244c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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,$@) 
OpenPOWER on IntegriCloud