-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
66 lines (48 loc) · 2.07 KB
/
Makefile
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
64
65
66
objects = bm-aes-encrypt-benchmark.o aes-encrypt-openssl.o aes-cpu.o bm-aes-encrypt-cuda-v0.o bm-aes-encrypt-cuda-v1.o bm-aes-encrypt-cuda-v2.o bm-aes-encrypt-cuda-v3.1.o bm-aes-encrypt-cuda-v3.2.o bm-utils-cuda.o
all: $(objects)
nvcc $(objects) -o aes-encrypt-benchmark -lcrypto -lssl -rdc=true
cuda_v0_objects = aes-encrypt-cuda-v0.o utils-cuda.o
cuda_v0: $(cuda_v0_objects)
nvcc $(cuda_v0_objects) -o aes-encrypt-cuda-v0
cuda_v1_objects = aes-encrypt-cuda-v1.o utils-cuda.o
cuda_v1: $(cuda_v1_objects)
nvcc $(cuda_v1_objects) -o aes-encrypt-cuda-v1
cuda_v2_objects = aes-encrypt-cuda-v2.o utils-cuda.o
cuda_v2: $(cuda_v2_objects)
nvcc $(cuda_v2_objects) -o aes-encrypt-cuda-v2
cuda_v3_1_objects = aes-encrypt-cuda-v3.1.o utils-cuda.o
cuda_v3_1: $(cuda_v3_1_objects)
nvcc $(cuda_v3_1_objects) -o aes-encrypt-cuda-v3-1
cuda_v3_2_objects = aes-encrypt-cuda-v3.2.o utils-cuda.o
cuda_v3_2: $(cuda_v3_2_objects)
nvcc $(cuda_v3_2_objects) -o aes-encrypt-cuda-v3-2
cuda_v4_objects = aes-encrypt-cuda-v4.o utils-cuda.o
cuda_v4: $(cuda_v4_objects)
nvcc $(cuda_v4_objects) -o aes-encrypt-cuda-v4
cuda_v5_objects = aes-encrypt-cuda-v5.o utils-cuda.o
cuda_v5: $(cuda_v5_objects)
nvcc $(cuda_v5_objects) -o aes-encrypt-cuda-v5
cuda_v5_1_objects = aes-encrypt-cuda-v5.1.o utils-cuda.o
cuda_v5_1: $(cuda_v5_1_objects)
nvcc $(cuda_v5_1_objects) -o aes-encrypt-cuda-v5-1
openssl_objects = aes-encrypt-openssl.o utils.o
openssl: $(openssl_objects)
nvcc $(openssl_objects) -o aes-encrypt-openssl -lcrypto -lssl
aes-encrypt-cuda-%.o: aes-encrypt-cuda-%.cu
nvcc -dc $< -o $@
bm-aes-encrypt-cuda-%.o: bm-aes-encrypt-cuda-%.cu
nvcc -dc $< -o $@
aes-encrypt-openssl.o: aes-encrypt-openssl.cpp
nvcc -dc $< -o $@
aes-cpu.o: aes-cpu.cpp
nvcc -dc $< -o $@
bm-aes-encrypt-benchmark.o: bm-aes-encrypt-benchmark.cpp
nvcc -dc $< -o $@
bm-utils-cuda.o: bm-utils-cuda.cu
nvcc -dc $< -o $@
utils-cuda.o: utils-cuda.cu
nvcc -dc $< -o $@
utils.o: utils.cpp
nvcc -dc $< -o $@
clean:
rm -f *.o aes-encrypt-benchmark aes-encrypt-openssl aes-encrypt-cuda-v0 aes-encrypt-cuda-v1 aes-encrypt-cuda-v2 aes-encrypt-cuda-v3