-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
69 lines (59 loc) · 2.02 KB
/
Makefile.am
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
61
62
63
64
65
66
67
68
69
ARCHIVE = data/ti-omap3-sgx-bin-1.4.268-armv7hl.tar.bz2
SCRIPT = data/sbin/powervr
REVISIONS = r121 r125
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = data/pkgconfig/glesv2.pc
LIBS = libpvrPVR2D_FLIPWSEGL.so \
libpvrPVR2D_BLITWSEGL.so \
libpvrPVR2D_DRI2WSEGL.so \
libpvrPVR2D_FRONTWSEGL.so \
libpvrPVR2D_X11WSEGL.so \
libpvr2d.so \
libsrv_um.so \
libPVRScopeServices.so \
libglslcompiler.so \
libIMGegl.so \
libEGL.so \
libOpenVG.so \
libOpenVGU.so \
libGLESv2.so \
libGLES_CM.so
DIRS = $(DESTDIR)$(libdir) \
$(DESTDIR)$(sbindir) \
$(DESTDIR)$(sysconfdir) \
$(DESTDIR)$(includedir) \
$(foreach rev, $(REVISIONS), $(DESTDIR)$(pkglibexecdir)/$(rev)) \
$(DESTDIR)$(docdir)
$(SCRIPT): %: %.in config.status
sed 's,@pkglibexecdir@,$(pkglibexecdir),g' $< > $@
$(REVISIONS): files
install -D -m755 "files/sbin/pvrsrvinit_$@" "$@/pvrsrvinit"
for lib in $(LIBS); do \
install -vD -m644 "files/lib/`basename $$lib .so`[email protected]" $@/$$lib ; \
done
files: $(ARCHIVE)
rm -fr files && \
tar xjf $(ARCHIVE) --strip-components=1 && \
mv usr files
$(DIRS):
install -d $@
all: $(REVISIONS) $(SCRIPT)
install: all $(DIRS)
for rev in $(REVISIONS); do \
install -vm644 $$rev/*.so $(DESTDIR)$(pkglibexecdir)/$$rev; \
install -vm755 $$rev/pvrsrvinit $(DESTDIR)$(pkglibexecdir)/$$rev; \
done
$(LN_S) $(firstword $(REVISIONS)) $(DESTDIR)$(pkglibexecdir)/current
install -vm755 $(SCRIPT) $(DESTDIR)$(sbindir)
cp -vr files/include/* $(DESTDIR)$(includedir)
cp -vr files/share/doc/*/* $(DESTDIR)$(docdir)
for lib in $(LIBS); do \
$(LN_S) $(pkglibexecdir)/current/$$lib $(DESTDIR)$(libdir); \
done
$(LN_S) libGLESv2.so $(DESTDIR)$(libdir)/libGLESv2.so.2
$(LN_S) libGLES_CM.so $(DESTDIR)$(libdir)/libGLESv1_CM.so.1
$(LN_S) libEGL.so $(DESTDIR)$(libdir)/libEGL.so.1
install -vm644 data/etc/powervr.ini $(DESTDIR)$(sysconfdir)/powervr.ini
$(MAKE) install-data
clean-local:
rm -vrf files $(SCRIPT) $(REVISIONS)