-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (22 loc) · 793 Bytes
/
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
CC = g++
NVCC = nvcc
all : sssp
sssp : obj/main.o obj/readgraph.o obj/printgraph.o obj/sssp.o obj/init_dist.o obj/sssp_kernel.o
$(NVCC) obj/main.o obj/readgraph.o obj/printgraph.o obj/sssp.o obj/init_dist.o obj/sssp_kernel.o -o sssp
obj/main.o : main.cu obj
$(NVCC) -c main.cu -o obj/main.o
obj/readgraph.o : src/readgraph.cpp obj
$(CC) -c src/readgraph.cpp -o obj/readgraph.o
obj/printgraph.o : src/printgraph.cpp obj
$(CC) -c src/printgraph.cpp -o obj/printgraph.o
obj/sssp.o : src/sssp.cu obj
$(NVCC) -c src/sssp.cu -o obj/sssp.o
obj/init_dist.o : src/init_dist.cu obj
$(NVCC) -c src/init_dist.cu -o obj/init_dist.o
obj/sssp_kernel.o : src/sssp_kernel.cu obj
$(NVCC) -c src/sssp_kernel.cu -o obj/sssp_kernel.o
obj :
mkdir obj
clean :
rm obj/*.o ./sssp
rmdir obj