summaryrefslogtreecommitdiff
path: root/Makefile
blob: d29593ac3c3ed6a7c45aeaa0f02bf84f7afa9779 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
ICC=icc
GCC=gcc
GCCFLAGS=-O3 -march=k8 -msse3 -ftree-vectorize -funroll-loops -pipe -static -Wunused
ICCFLAGS=-O2 -ip -xP -gcc -static
LINKFLAGS=

OBJS=emfloat.o randnum.o hardware.o cleanbench.o numsort.o stringsort.o bitfield.o fpemulation.o fourier.o assignment.o idea.o huffman.o neural.o linear.o

all: ${OBJS}
	$(GCC) ${OBJS} -o cleanbench -lm

clean:
	- /bin/rm -f *.o cleanbench sysinfo.c

remake: clean all

# Source files

sysinfo.c: Makefile
	./sysinfo.sh $(GCC) $(GCCFLAGS)

hardware.o: hardware.c hardware.h Makefile
	$(GCC) $(GCCFLAGS) -c hardware.c

cleanbench.o: cleanbench.h cleanbench.c hardware.h Makefile sysinfo.c
	$(GCC) $(GCCFLAGS) -c cleanbench.c

emfloat.o: emfloat.h emfloat.c Makefile
	$(GCC) $(GCCFLAGS) -c emfloat.c

randnum.o: randnum.c Makefile
	$(GCC) $(GCCFLAGS) -c randnum.c

numsort.o: numsort.c
	$(GCC) $(GCCFLAGS) -c numsort.c

stringsort.o: stringsort.c
	$(GCC) $(GCCFLAGS) -c stringsort.c

bitfield.o: bitfield.c
	$(GCC) $(GCCFLAGS) -c bitfield.c

fpemulation.o: fpemulation.c
	$(GCC) $(GCCFLAGS) -c fpemulation.c

fourier.o: fourier.c
	$(GCC) $(GCCFLAGS) -c fourier.c

assignment.o: assignment.c
	$(GCC) $(GCCFLAGS) -c assignment.c

idea.o: idea.c
	$(GCC) $(GCCFLAGS) -c idea.c

huffman.o: huffman.c
	$(GCC) $(GCCFLAGS) -c huffman.c

neural.o: neural.c
	$(GCC) $(GCCFLAGS) -c neural.c

linear.o: linear.c
	$(GCC) $(GCCFLAGS) -c linear.c