blob: 5396f6fb6b33a86547c896ca21ac5203bc55a63f (
plain)
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
|
DESTDIR=
PREFIX=$(DESTDIR)/opt/ati-stream-sdk/
LIBDIR=$(PREFIX)lib/
BINDIR=$(PREFIX)bin/
INCDIR=$(PREFIX)include/
INSTALLBIN=install
INSTALLDAT=install -m0644
INSTALLDIR=install -d
MKDIR=mkdir -p
ARCH:=x86
BINFILES=bin/x86$(DSUFX)/clc
LIBFILES=lib/x86$(DSUFX)/libOpenCL.so lib/x86$(DSUFX)/libatiolc$(SUFX).so lib/x86$(DSUFX)/libGLEW.so lib/gpu/builtins-7xx.bc lib/gpu/builtins-evergreen.bc lib/gpu/builtins-gpucommon.bc lib/x86$(DSUFX)/builtins-x86$(DSUFX).bc
INCFILES=include/cal*.h include/CL/* include/GL/* include/OVDecode/*
ifeq ($(ARCH),amd64)
DSUFX=_64
SUFX=64
else
DSUFX=
SUFX=32
endif
install:
test -z "$(BINDIR)" || $(MKDIR) "$(BINDIR)"
test -z "$(LIBDIR)" || $(MKDIR) "$(LIBDIR)"
test -z "$(INCDIR)" || $(MKDIR) "$(INCDIR)"
@list='$(BINFILES)'; for f in $$list; do\
if test -f $$f; then\
f1=`basename $$f`;\
echo "$(INSTALLBIN) $$f $(BINDIR)$$f1";\
$(INSTALLBIN) "$$f" "$(BINDIR)$$f1" || exit 1;\
else :; fi;\
done
@list='$(LIBFILES)'; for f in $$list; do\
if test -f $$f; then\
f1=`echo $$f | sed -e 's|lib/||g' -e 's|x86*/||g'`;\
base=`basename $$f1`;\
dir=`echo $$f1 | sed -e "s|$$base||g"`;\
test -z "$(LIBDIR)$$dir" || $(MKDIR) "$(LIBDIR)$$dir";\
echo "$(INSTALLBIN) $$f $(LIBDIR)$$f1";\
$(INSTALLBIN) "$$f" "$(LIBDIR)$$f1" || exit 1;\
else :; fi;\
done
@list='$(INCFILES)'; for f in $$list; do\
if test -f $$f; then\
f1=`echo $$f | sed -e 's|include||g'`;\
base=`basename $$f1`;\
dir=`echo $$f1 | sed -e "s|$$base||g`;\
test -z "$(INCDIR)$$dir" || $(MKDIR) "$(INCDIR)$$dir";\
echo "$(INSTALLDAT) $$f $(INCDIR)$$f1";\
$(INSTALLDAT) $$f $(INCDIR)$$f1 || exit 1;\
else :; fi;\
done
install-examples:
install-doc:
|