-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 707 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 707 Bytes
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
CC = gcc
CFLAGS = -lpthread -Wno-overflow -pthread
TARGET1 = flops32
FILE1 = BenchmarkFLOPS32.c
TARGET2 = flops64
FILE2 = BenchmarkFLOPS64.c
TARGET3 = iops32
FILE3 = BenchmarkIOPS32.c
TARGET4 = iops64
FILE4 = BenchmarkIOPS64.c
all: $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4)
$(TARGET1): $(FILE1)
$(CC) $(CFLAGS) -o $(TARGET1) $(FILE1)
$(TARGET2): $(FILE2)
$(CC) $(CFLAGS) -o $(TARGET2) $(FILE2)
$(TARGET3): $(FILE3)
$(CC) $(CFLAGS) -o $(TARGET3) $(FILE3)
$(TARGET4): $(FILE1)
$(CC) $(CFLAGS) -o $(TARGET4) $(FILE4)
install: all
mv -t /usr/bin/ iops32 iops64 flops32 flops64
uninstall: all
rm /usr/bin/{iops32,iops64,flops32,flops64}
clean:
rm $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4)