summaryrefslogtreecommitdiff
path: root/test/c/Makefile
blob: b125688c7faf5d3ea04601a6afe79e2132d020c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC=gcc
CFLAGS=-O2 -Wall
CCOMP=../../ccomp
CCOMPFLAGS=-dump-c

PROGS=fib integr qsort fft sha1 aes almabench lists

all_s: $(PROGS:%=%.s)

all: $(PROGS)

%: %.s
	$(CC) $(CFLAGS) -o $* $*.s

%.s: %.c ../../ccomp
	$(CCOMP) $(CCOMPFLAGS) $*.c

clean:
	rm -f $(PROGS)
	rm -f *.light.c *.s *.o *~