forked from ankurlimaye/HERMIT-BenchmarkSuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (36 loc) · 1.06 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
curDir = $(shell pwd)
srcDir = $(curDir)/src
binDir = $(curDir)/bin
scriptDir = $(curDir)/scripts
inputsDir = $(curDir)/inputs
export srcDir
export binDir
ifneq ($(ll),)
export ll
endif
kernels = activity apdet hrv imghist iradon kmeans sqrs wabp
suppKernels = aes lzw
.PHONY : all
all : $(kernels)
aes :
$(MAKE) -C $(srcDir)/$@
$(if $(ll),,mkdir -p $(binDir)/$@)
$(if $(ll),,mv $(srcDir)/$@/$@ $(binDir)/$@)
$(if $(ll),,cp $(inputsDir)/$@/* $(binDir)/$@/)
$(if $(ll),,cp $(scriptDir)/[email protected] $(binDir)/$@/)
lzw :
$(MAKE) -C $(srcDir)/$@
$(if $(ll),,mkdir -p $(binDir)/$@)
$(if $(ll),,mv $(srcDir)/$@/$@ $(binDir)/$@)
$(if $(ll),,cp $(inputsDir)/$@/* $(binDir)/$@/)
$(if $(ll),,cp $(scriptDir)/[email protected] $(binDir)/$@/)
$(kernels) : aes lzw
$(MAKE) -C $(srcDir)/$@
$(if $(ll),,mkdir -p $(binDir)/$@)
$(if $(ll),,-mv $(srcDir)/$@/$@ $(binDir)/$@)
$(if $(ll),,-cp $(inputsDir)/$@/* $(binDir)/$@/)
$(if $(ll),,-cp $(scriptDir)/[email protected] $(binDir)/$@/)
.PHONY : clean
clean :
rm -rf $(binDir)
for i in $(kernels) $(suppKernels); do $(MAKE) -C $(srcDir)/$$i $@; done