aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/Makefile
blob: e73dcb383bc585cf7e4c0a03e47c307b8b084f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ELF=simple.bin call.bin branch.bin
DEBUG:=$(if $(DEBUG),"-dall",)

all: $(ELF)

%.bin: %.s
	k1-gcc $< -o $@

.SECONDARY:
%.s: %.c
	ccomp $(DEBUG) -O0 -v -S $< -o $@

.PHONY:
clean:
	rm -f *.alloctrace
	rm -f *.cm
	rm -f *.compcert.c
	rm -f *.i
	rm -f *.light.c
	rm -f *.ltl
	rm -f *.mach
	rm -f *.parsed.c
	rm -f *.rtl.?
	rm -f *.s
	rm -rf profile/
	rm -f $(ELF)