-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 779 Bytes
/
Makefile
File metadata and controls
46 lines (37 loc) · 779 Bytes
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
SAC ?= sac2c
FLAGS = -maxwlur 9 -maxwlmp 1
.PHONY: all seq check mt clean
all: seq check mt
seq: \
bin/fft \
bin/flash \
bin/fmg \
bin/mandelbrot \
bin/matmul \
bin/nbody \
bin/quickhull \
bin/stencil
check: \
bin/flash_p \
bin/fmg_p \
bin/mandelbrot_p \
bin/matmul_p \
bin/quickhull_p \
bin/stencil_p
mt: \
bin/fft_mt \
bin/flash_mt \
bin/fmg_mt \
bin/mandelbrot_mt \
bin/matmul_mt \
bin/nbody_mt \
bin/quickhull_mt \
bin/stencil_mt
bin/%: src/%.sac
$(SAC) $(FLAGS) $< -o $@
bin/%_p: src/%.sac
$(SAC) $(FLAGS) -check p $< -o $@
bin/%_mt: src/%.sac
$(SAC) $(FLAGS) -t mt_pth $< -o $@
clean:
$(RM) bin/*