Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (48 loc) · 1.46 KB
/
Copy pathMakefile
File metadata and controls
60 lines (48 loc) · 1.46 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
50
51
52
53
54
55
56
57
58
59
60
PREFIX ?= /usr/local
PLATFORM ?= T31
# T20/T21/T23/T30: OPENIMP_SW_JPEG=1 (make t21 OPENIMP_SW_JPEG=1) builds the
# software JPEG fallback next to the Helix hardware encoder; default 0.
ifdef OPENIMP_SW_JPEG
export OPENIMP_SW_JPEG
endif
.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/eprc check
$(MAKE) -C tests/rc_t20 check
$(MAKE) -C tests/rc_t10 check
$(MAKE) -C tests/t20 check
$(MAKE) -C tests/t23 check
$(MAKE) -C tests/t30 check
$(MAKE) -C tests/t31 check
$(MAKE) -C tests/t40 check
$(MAKE) -C tests/t41 check
$(MAKE) -C tests/device 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"