266
|
1 default: macosx
|
|
2
|
|
3 macosx: FORCE
|
|
4 @echo "Make for Mac OS X"
|
|
5 @$(MAKE) -f Makefile.macosx
|
|
6
|
|
7 linux: FORCE
|
|
8 @echo "Make for Linux"
|
|
9 @$(MAKE) -f Makefile.linux
|
|
10
|
|
11 cell: FORCE
|
|
12 @echo "Make for CELL (Cell)"
|
|
13 @$(MAKE) -f Makefile.cell
|
|
14
|
|
15 gpu: FORCE
|
|
16 @echo "Make for OpenCL"
|
|
17 @$(MAKE) -f Makefile.gpu
|
|
18
|
|
19 cuda: FORCE
|
|
20 @echo "Make for Cuda"
|
|
21 @$(MAKE) -f Makefile.cuda
|
|
22
|
|
23 test:
|
|
24 ./word_count -file c.txt
|
|
25
|
|
26 parallel-test: macosx
|
|
27 @$(MAKE) -f Makefile.macosx test
|
|
28
|
|
29 gpu-test: FORCE
|
|
30 @echo "Make for OpenCL"
|
|
31 @$(MAKE) -f Makefile.gpu test
|
|
32
|
|
33
|
|
34 FORCE:
|
|
35
|
|
36 clean:
|
|
37 @$(MAKE) -f Makefile.macosx clean
|
|
38 @$(MAKE) -f Makefile.linux clean
|
|
39 @$(MAKE) -f Makefile.cell clean
|
|
40 @$(MAKE) -f Makefile.cuda clean
|