-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 1.01 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
all: clean compile run
cc: clean compile
pas: clean
rm -f priorityQueue *~
nvcc -o priorityQueue priorityQueue.cu
./priorityQueue
1pas: clean
rm -f AStarParallel *~
nvcc -std=c++11 -o AStarParallel AStarParallel.cu
./AStarParallel
2pas: clean
rm -f AStarParallel2 *~
nvcc -std=c++11 -o AStarParallel2 AStarParallel2.cu
./AStarParallel2
cc-cuda: clean-cuda compile-cuda
cuda: clean-cuda compile-cuda run-cuda
compile: NPuzzle.o Helper.o
g++ -g -o NPuzzle NPuzzle.o Helper.o
NPuzzle.o:
g++ -c -std=c++11 -o NPuzzle.o NPuzzle.cpp
Helper.o:
g++ -c -std=c++11 -o Helper.o Helper.cpp
compile-cuda: priorityQueue.o Helper-cuda.o
nvcc -g -o priorityQueue priorityQueue.o Helper-cuda.o
priorityQueue.o:
nvcc -c -std=c++11 -o priorityQueue.o priorityQueue.cu
Helper-cuda.o:
nvcc -c -std=c++11 -o Helper-cuda.o Helper.cu
run:
./NPuzzle
run-cuda:
./priorityQueue
clean:
rm -f NPuzzle.o Helper.o NPuzzle *~
clean-cuda:
rm -f priorityQueue priorityQueue.o Helper-cuda.o *~