-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (37 loc) · 1.09 KB
/
Copy pathMakefile
File metadata and controls
49 lines (37 loc) · 1.09 KB
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
49
PREFIX ?= /usr/local
PLATFORM ?= T31
.PHONY: all t20 t21 t23 t30 t31 t40 t41 check clean install
all:
./build-for-device.sh $(PLATFORM)
t20:
./build-t20.sh
t21:
./build-t21.sh
t23:
./build-t23.sh
t30:
./build-t30.sh
t31:
./build-t31.sh
t40:
./build-t40.sh
t41:
./build-t41.sh
check:
$(MAKE) -C tests/t30 check
$(MAKE) -C tests/t31 check
$(MAKE) -C tests/t40 check
$(MAKE) -C tests/t41 check
clean:
$(RM) -r build/t20 build/t21 build/t23 build/t30 build/t31 build/t40 build/t41
install: all
install -d "$(DESTDIR)$(PREFIX)/include/imp"
install -d "$(DESTDIR)$(PREFIX)/include/openimp"
install -d "$(DESTDIR)$(PREFIX)/bin"
install -d "$(DESTDIR)$(PREFIX)/lib"
install -m 644 include/imp/*.h "$(DESTDIR)$(PREFIX)/include/imp/"
install -m 644 include/openimp/*.h "$(DESTDIR)$(PREFIX)/include/openimp/"
install -m 755 "build/$(shell printf '%s' '$(PLATFORM)' | tr '[:upper:]' '[:lower:]')/libimp.so" \
"$(DESTDIR)$(PREFIX)/lib/libimp.so"
install -m 755 "build/$(shell printf '%s' '$(PLATFORM)' | tr '[:upper:]' '[:lower:]')/openimp-tuningd" \
"$(DESTDIR)$(PREFIX)/bin/openimp-tuningd"