summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2ed39931af70f3abfb89afce1cc0db20d4f32711 (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
63
CC=gcc
CFLAGS=-O3 -march=k8 -msse3 -ftree-vectorize -funroll-loops -pipe -static
WARN=-Wunused -Wextra -Wall -std=gnu99 -pedantic
#CC=icc
#CFLAGS=-O3 -ipo -xP -gcc -static
LIBS=-lm -lproccpuinfo

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)
	$(CC) $(OBJS) -o cleanbench $(LIBS)

clean:
	/bin/rm -f cleanbench sysinfo.c $(OBJS)

remake: clean all

# Source files

sysinfo.c:
	./sysinfo.sh $(CC) $(CFLAGS) $(WARN)

hardware.o: hardware.c
	$(CC) $(CFLAGS) $(WARN) -c $<

cleanbench.o: cleanbench.c sysinfo.c
	$(CC) $(CFLAGS) $(WARN) -c $<

emfloat.o: emfloat.c
	$(CC) $(CFLAGS) $(WARN) -c $<

randnum.o: randnum.c
	$(CC) $(CFLAGS) $(WARN) -c $<

numsort.o: numsort.c
	$(CC) $(CFLAGS) $(WARN) -c $<

stringsort.o: stringsort.c
	$(CC) $(CFLAGS) $(WARN) -c $<

bitfield.o: bitfield.c
	$(CC) $(CFLAGS) $(WARN) -c $<

fpemulation.o: fpemulation.c
	$(CC) $(CFLAGS) $(WARN) -c $<

fourier.o: fourier.c
	$(CC) $(CFLAGS) $(WARN) -c $<

assignment.o: assignment.c
	$(CC) $(CFLAGS) $(WARN) -c $<

idea.o: idea.c
	$(CC) $(CFLAGS) $(WARN) -c $<

huffman.o: huffman.c
	$(CC) $(CFLAGS) $(WARN) -c $<

neural.o: neural.c
	$(CC) $(CFLAGS) $(WARN) -c $<

linear.o: linear.c
	$(CC) $(CFLAGS) $(WARN) -c $<