-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
47 lines (33 loc) · 798 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
T = 10
P = 1
S = q
G_ARGS = -fopenmp -fPIC -c -g -Wall
all:
@echo "try 'make test'"
bhelper: helper.cpp
@g++ $(G_ARGS) helper.cpp
bpquick: pquick.cpp
@g++ $(G_ARGS) pquick.cpp
bquick: quicksort.cpp
@g++ $(G_ARGS) quicksort.cpp
bmerge: mergesort.cpp
@g++ $(G_ARGS) mergesort.cpp
bradix: radixsort.cpp
@g++ $(G_ARGS) radixsort.cpp
bother: othersort.cpp
@g++ $(G_ARGS) othersort.cpp
bsort: sort.cpp
@g++ $(G_ARGS) sort.cpp
ball: bquick bmerge bradix bother bsort bpquick bhelper
blib: ball
@g++ -shared -o libpsort.so quicksort.o mergesort.o radixsort.o othersort.o sort.o pquick.o helper.o
btest: blib test.cpp
@g++ -fopenmp test.cpp -o test -L. -lpsort
test: btest
LD_LIBRARY_PATH=. ./test $(T) $(P) $(S)
clean:
rm -f *.o
rm -f *.so
rm -f test
rm -f *.out
clear