Compare commits
541 Commits
instanced_
...
mesa-8.0.5
Author | SHA1 | Date | |
---|---|---|---|
|
16aaa75d9f | ||
|
d8571a1acf | ||
|
47a509c046 | ||
|
59b1e4a29e | ||
|
9afcb18146 | ||
|
1c4b61e0c2 | ||
|
b130d42279 | ||
|
f0b188a6c6 | ||
|
7a13920597 | ||
|
bd9f729091 | ||
|
6fc0ebb44a | ||
|
81627c7d45 | ||
|
2b9a0c743a | ||
|
bb2fa7ef06 | ||
|
b75d5c671f | ||
|
7e7f7a32c2 | ||
|
93aa04bc82 | ||
|
64330801bb | ||
|
0504ee8f35 | ||
|
d98eb4b2f0 | ||
|
620a1f973b | ||
|
b28f4a0abd | ||
|
1417f42904 | ||
|
570b551a76 | ||
|
563d73a57d | ||
|
b8ab1f2e41 | ||
|
4e53cb22c6 | ||
|
3053b30ddd | ||
|
464263d613 | ||
|
097065f713 | ||
|
e907c13498 | ||
|
1c66286bd6 | ||
|
54cc16d3d9 | ||
|
ddcf624ac9 | ||
|
b3088ccee0 | ||
|
8f89e44365 | ||
|
bc88231530 | ||
|
46d39db6f1 | ||
|
a8f95de936 | ||
|
0c597717d9 | ||
|
06e174191d | ||
|
d7cc01fbf8 | ||
|
52fbb8537a | ||
|
a85dd5712f | ||
|
46a36334c0 | ||
|
28994d8b97 | ||
|
ea1ec0e4b8 | ||
|
ebaf1edfa3 | ||
|
8d6a8cd89e | ||
|
d6724833ed | ||
|
7d33cf9476 | ||
|
f9aefaeb27 | ||
|
c33b752899 | ||
|
a0ea21ff04 | ||
|
454841bedd | ||
|
59997d619d | ||
|
25da204f69 | ||
|
77e711cfca | ||
|
d788066575 | ||
|
1b1975e3af | ||
|
61badd46ba | ||
|
59d247c829 | ||
|
57295009e8 | ||
|
36fe8a5b7f | ||
|
c12dcfd73c | ||
|
889cc4d922 | ||
|
24db6d63da | ||
|
bb36936d12 | ||
|
b4fbb0b180 | ||
|
891b66b328 | ||
|
55d23cfc56 | ||
|
9ca7b5b65e | ||
|
c3ad361f47 | ||
|
2758505228 | ||
|
ec34868f65 | ||
|
539a02b9a7 | ||
|
8d0fd58546 | ||
|
1b27cc3962 | ||
|
c1f4867c89 | ||
|
7c2225b026 | ||
|
827c99e1a0 | ||
|
0d38468098 | ||
|
fc3d2c4623 | ||
|
fe5541f64c | ||
|
1ce1a4526f | ||
|
e0e1ca353b | ||
|
04f7c32f78 | ||
|
da8d65fde4 | ||
|
57a273d89b | ||
|
099bc3aaea | ||
|
3539914e49 | ||
|
de8bb6a59b | ||
|
646ac02462 | ||
|
dad7547b98 | ||
|
2bf8f39cc8 | ||
|
5c65bcd259 | ||
|
c60a83adc2 | ||
|
db555c5d59 | ||
|
f1423b1c20 | ||
|
21d77c51c1 | ||
|
fc7d43ee9a | ||
|
ed8fcc0c82 | ||
|
ed1da7e503 | ||
|
74f21adbb7 | ||
|
09c746f2dc | ||
|
ab33bc8c7b | ||
|
1edeb2cec1 | ||
|
afaf5b59e4 | ||
|
1fc9b5a213 | ||
|
9b38691927 | ||
|
6f1218385a | ||
|
5c2f9828e0 | ||
|
a03d5e6a88 | ||
|
5fde348eb8 | ||
|
a8fed44e9e | ||
|
0f7dffae69 | ||
|
7a34e98b61 | ||
|
39a0b79c6f | ||
|
5c8f5e9af0 | ||
|
a72fdfed7b | ||
|
ba45b6deea | ||
|
04c35a5dff | ||
|
3bcddd5e89 | ||
|
313d48a110 | ||
|
076805c9c2 | ||
|
d715d3f4a8 | ||
|
af47c324aa | ||
|
1af70e475f | ||
|
1f4f86e951 | ||
|
6dd1270008 | ||
|
29c67f9203 | ||
|
29c4e92b2c | ||
|
26f7f8076d | ||
|
dc8134fe98 | ||
|
a211a140a6 | ||
|
7fd94900e0 | ||
|
e902faa18a | ||
|
cb70af5c94 | ||
|
3d657b14b4 | ||
|
84e74ca275 | ||
|
44f550ef90 | ||
|
1659d87afe | ||
|
60dffb92de | ||
|
b5b65af5fa | ||
|
e0e8f1efad | ||
|
91874c3252 | ||
|
2d105870c9 | ||
|
912acd045c | ||
|
1f90817e3c | ||
|
1974502223 | ||
|
0bf439e5da | ||
|
d28e968edb | ||
|
9f67d73830 | ||
|
84f537e72b | ||
|
3eaa27789d | ||
|
6e8c30304e | ||
|
3e5f17b5f9 | ||
|
6b9363a316 | ||
|
4d9ff6af59 | ||
|
110111bc5b | ||
|
2aaaa18853 | ||
|
7e824b728b | ||
|
fc65fc5035 | ||
|
c9088b5251 | ||
|
8537544be9 | ||
|
b4693383bf | ||
|
5eb2e5bdc7 | ||
|
ca8be6fe2b | ||
|
aa17a8b81e | ||
|
b304eca8df | ||
|
97bff96352 | ||
|
9405567c28 | ||
|
e69758260b | ||
|
869c34527a | ||
|
7e7f099108 | ||
|
cc2413c889 | ||
|
1ebdf22224 | ||
|
a3f6e8f431 | ||
|
5696077656 | ||
|
815d6e3f2f | ||
|
c9aa4607c5 | ||
|
a164f23d09 | ||
|
31aaf56f28 | ||
|
9bbd435900 | ||
|
fe64ad0cba | ||
|
ae02489a6d | ||
|
00a182d66e | ||
|
88cbc43d1f | ||
|
d342246e2b | ||
|
51e1111bd6 | ||
|
b85c5d9344 | ||
|
eb2eb97baf | ||
|
7032a56c85 | ||
|
3aaf3c85e4 | ||
|
0a24f0868f | ||
|
a325146f11 | ||
|
64c69a5b86 | ||
|
8a7cb5d21c | ||
|
865ad64e06 | ||
|
0b2ffc647d | ||
|
0d1049ff26 | ||
|
78b66adc1a | ||
|
d7b1a7bfb1 | ||
|
4d5b40a5a2 | ||
|
1e987b6e7a | ||
|
3158636f4c | ||
|
a341475398 | ||
|
d953370670 | ||
|
8e8c974fff | ||
|
a0f010db1c | ||
|
9de17f5f4d | ||
|
abd1431707 | ||
|
c2fdcc1e12 | ||
|
f1b6c69137 | ||
|
e72cbdf395 | ||
|
bf7407f631 | ||
|
9724c8d13c | ||
|
7e624edba4 | ||
|
03354a3c4a | ||
|
0a25c4c384 | ||
|
fa68a8bae3 | ||
|
064c324d8d | ||
|
8700db8c87 | ||
|
53f88f8606 | ||
|
0558ac1fd7 | ||
|
649a8952df | ||
|
f36e638c76 | ||
|
f818673acb | ||
|
8010ff17ae | ||
|
93e94cbb48 | ||
|
4e172532d1 | ||
|
e995b41a16 | ||
|
fca35d2e5e | ||
|
4dd228a0a9 | ||
|
108d544cae | ||
|
546abd2503 | ||
|
bcc5caf642 | ||
|
69d8a25d42 | ||
|
6095a17534 | ||
|
bb30e76328 | ||
|
49ed43b6de | ||
|
9f150ffe8e | ||
|
edeb3976d4 | ||
|
a30790a9a3 | ||
|
3d436f6c37 | ||
|
8d40c2f5e2 | ||
|
d146c50358 | ||
|
1709144338 | ||
|
54f7391664 | ||
|
89e796aef5 | ||
|
0bf0ba44de | ||
|
5f7204c3bb | ||
|
dc20396a14 | ||
|
770f785a6f | ||
|
4b52be53a4 | ||
|
e26aa8c660 | ||
|
2f5182cfcf | ||
|
7fe667a18d | ||
|
3d036f3f0a | ||
|
b056fc0741 | ||
|
adcb180671 | ||
|
d982036c3a | ||
|
63c8f7142c | ||
|
485d1c491a | ||
|
7b1fbc6889 | ||
|
7f8ac0e70f | ||
|
5cfc7d1167 | ||
|
fae3a31bbb | ||
|
b9f8cb9e0b | ||
|
aabbf5adac | ||
|
83728cf4ce | ||
|
8836517250 | ||
|
bc9d4ae6c7 | ||
|
437ed1faaf | ||
|
fa9efdbab8 | ||
|
151d32dd45 | ||
|
1fae49b0f5 | ||
|
9664fb70dc | ||
|
a30809878f | ||
|
9f44387e48 | ||
|
16cc79f975 | ||
|
82043eb72d | ||
|
2845a0be81 | ||
|
d38a295289 | ||
|
fe77fd3983 | ||
|
b695078937 | ||
|
106ea10d1b | ||
|
fca1a33c96 | ||
|
036d999265 | ||
|
e3943cf1cc | ||
|
0aadb240e1 | ||
|
740123fff7 | ||
|
ff1d945032 | ||
|
efca49fd51 | ||
|
d45a5fde45 | ||
|
e55f2d97f6 | ||
|
6e09d3cff2 | ||
|
99f9c9789a | ||
|
a63d79dd40 | ||
|
ff7ccb1cf1 | ||
|
9e98d38e58 | ||
|
a2186a2ea6 | ||
|
be1377c33c | ||
|
9489ce6e06 | ||
|
c1dd6ddfd0 | ||
|
3d3bd0e917 | ||
|
e1f9820b47 | ||
|
65526d54aa | ||
|
6aa9ce2687 | ||
|
14cf3dd826 | ||
|
7aef839760 | ||
|
fb56b0972d | ||
|
f9c9933f9c | ||
|
b2b5d6b8fb | ||
|
e86d90eb20 | ||
|
1531b94471 | ||
|
b5efe0881e | ||
|
73e15679ce | ||
|
974a67b41e | ||
|
83075bd0fe | ||
|
d799a7b585 | ||
|
2b4df494b1 | ||
|
728bda08d8 | ||
|
f775d9aa84 | ||
|
6887ec766b | ||
|
6d82dc18f1 | ||
|
02962ea086 | ||
|
358389fe59 | ||
|
2ed8367d72 | ||
|
f723df005c | ||
|
92d842c073 | ||
|
1b5e151ffa | ||
|
20da01fecd | ||
|
203ef2a12b | ||
|
05ff4d209d | ||
|
c1ccb52c72 | ||
|
35af090907 | ||
|
80cd02f517 | ||
|
0749290d69 | ||
|
f62c8648d3 | ||
|
869728bd99 | ||
|
1100a19da8 | ||
|
f811d501b6 | ||
|
ecd0d46070 | ||
|
cf4a7c41f6 | ||
|
74a5f03066 | ||
|
65b500857e | ||
|
c231482725 | ||
|
50a8b9971e | ||
|
a4cb2fdb64 | ||
|
1c403f4999 | ||
|
ad83ddc868 | ||
|
ac089040d7 | ||
|
0e08205421 | ||
|
cc27a42b6f | ||
|
67937502f5 | ||
|
1a77654e6a | ||
|
b38640082c | ||
|
736f1e53e4 | ||
|
d45d250ad1 | ||
|
4635e26db2 | ||
|
65b9c1dee6 | ||
|
c34947dbb1 | ||
|
9da7b58b39 | ||
|
5ac4c8cf53 | ||
|
7f5d3f7ed2 | ||
|
442dc31fa7 | ||
|
3ad7f44926 | ||
|
9f0088e906 | ||
|
f893fde63b | ||
|
6bb4823f7d | ||
|
ddd2503750 | ||
|
5f60d134e6 | ||
|
caebd7929d | ||
|
0dddf4c575 | ||
|
4aa158d09a | ||
|
38b76cf831 | ||
|
73ff415b59 | ||
|
58e0c4f872 | ||
|
eea63b7621 | ||
|
85a52bf7b5 | ||
|
05b7f13af1 | ||
|
93d5799e8b | ||
|
4f8b00d8ef | ||
|
b5a5a1c615 | ||
|
4d72e190c0 | ||
|
e442906c87 | ||
|
12370e050a | ||
|
5163fed919 | ||
|
acfbf24335 | ||
|
765892865f | ||
|
9daa974d4d | ||
|
05adf4d6e4 | ||
|
eca54b1eb4 | ||
|
8e5cf4cb45 | ||
|
1fd179b984 | ||
|
843194d89f | ||
|
7c95a4ec22 | ||
|
9567178ca2 | ||
|
83602e8342 | ||
|
b31bfae0db | ||
|
49ab5ad142 | ||
|
5916b15247 | ||
|
a36cc604cf | ||
|
73ed8cec4a | ||
|
c6e56a69d8 | ||
|
d980b8350f | ||
|
143999bdd8 | ||
|
ae3bd76e31 | ||
|
86fc256131 | ||
|
5cb5aa4a84 | ||
|
f0ad188c9f | ||
|
8786555199 | ||
|
f29212ecba | ||
|
8e5e735424 | ||
|
f5367c4503 | ||
|
d60bcbe31d | ||
|
64deeddce8 | ||
|
514fcec7da | ||
|
9b5e402837 | ||
|
57df49908e | ||
|
38e4496ac3 | ||
|
39d978a60c | ||
|
e4b42d618c | ||
|
d85b4bae0e | ||
|
3dd8937492 | ||
|
1f0cc3faf2 | ||
|
f00ba21915 | ||
|
c8562a6ed3 | ||
|
48173180b5 | ||
|
349d5a8a38 | ||
|
fee5f10241 | ||
|
83eb5e4372 | ||
|
5f6676b0ee | ||
|
7c6f54811c | ||
|
a42dcf1614 | ||
|
573e1478eb | ||
|
490057ae81 | ||
|
d2d1419ba0 | ||
|
0941b808a6 | ||
|
ac6074de17 | ||
|
289a7e74b3 | ||
|
889f756c28 | ||
|
e10c47adff | ||
|
dcaf26ac91 | ||
|
9a33b5a269 | ||
|
61be81ae5c | ||
|
46c146116f | ||
|
e695c7e5b8 | ||
|
bc973082fc | ||
|
f92503e171 | ||
|
e406659b8b | ||
|
19f88670b5 | ||
|
dcb1a3bc27 | ||
|
b064078581 | ||
|
252a1d8635 | ||
|
8e42dadf70 | ||
|
0b6003af71 | ||
|
d8f66afa5d | ||
|
09b6308a2d | ||
|
30e9bfd84a | ||
|
aa00ccdc02 | ||
|
a62a4f77e8 | ||
|
2fae4d26f3 | ||
|
759da0cb56 | ||
|
4dbc544bb1 | ||
|
c256fd094b | ||
|
f0662ee609 | ||
|
99c0aeb3db | ||
|
7861ccbe23 | ||
|
bffefc3d27 | ||
|
531948947e | ||
|
decf80c621 | ||
|
812a8eade5 | ||
|
230f6e7ddc | ||
|
655b36d1d5 | ||
|
7a11d201e7 | ||
|
dd73100c24 | ||
|
5f25e0a39c | ||
|
f48e6748a7 | ||
|
68a9cd6fa1 | ||
|
907495465a | ||
|
daf5ee5ef1 | ||
|
1a499d761a | ||
|
f97ee64606 | ||
|
4ac2e2f159 | ||
|
f5b787b9e3 | ||
|
84d2bb4dfc | ||
|
e1a02333a0 | ||
|
20457cfcb8 | ||
|
fceca6191a | ||
|
a71013d120 | ||
|
cbdf7de014 | ||
|
daefd7f20b | ||
|
4b6dc4c1b3 | ||
|
0d6f7b181f | ||
|
6988699e44 | ||
|
533651b679 | ||
|
ee6a817f80 | ||
|
1b33ae3a7d | ||
|
41c1a7311e | ||
|
d090099f7d | ||
|
8ac4470041 | ||
|
6382f98b9a | ||
|
274e8b9234 | ||
|
a12606cb54 | ||
|
33f5c3946d | ||
|
a07afa11d2 | ||
|
9e0cec45ae | ||
|
c85402aba9 | ||
|
9c81e4eed1 | ||
|
daa2545508 | ||
|
baaa30ad52 | ||
|
b178514e24 | ||
|
48e72b6605 | ||
|
89fdeab1a2 | ||
|
504eaa1212 | ||
|
399b9799de | ||
|
2c1ee157c7 | ||
|
8b7f6de8b9 | ||
|
eb8063361e | ||
|
b26682e12e | ||
|
deff0244ed | ||
|
830688b36a | ||
|
cd56917a50 | ||
|
867fdbd36d | ||
|
d7a4eb331b | ||
|
ee5b35c568 | ||
|
a748a9f8ee | ||
|
f1ff449120 | ||
|
af33e16eab | ||
|
89a1e7caf4 | ||
|
ad77e2fb78 | ||
|
1e51d4b4f6 | ||
|
0b9e6d2017 | ||
|
57665cb09e | ||
|
372b7f1d35 | ||
|
4b86bd1347 | ||
|
7465c5d976 | ||
|
9489ae8938 | ||
|
b8af8b83cf |
@@ -1,10 +0,0 @@
|
|||||||
((nil
|
|
||||||
(indent-tabs-mode . nil)
|
|
||||||
(tab-width . 8)
|
|
||||||
(c-basic-offset . 3)
|
|
||||||
(c-file-style . "stroustrup")
|
|
||||||
(eval . (progn
|
|
||||||
(c-set-offset 'innamespace '0)
|
|
||||||
(c-set-offset 'inline-open '0)))
|
|
||||||
)
|
|
||||||
)
|
|
10
.emacs-dirvars
Normal file
10
.emacs-dirvars
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
;; -*- emacs-lisp -*-
|
||||||
|
;;
|
||||||
|
;; This file is processed by the dirvars emacs package. Each variable
|
||||||
|
;; setting below is performed when this dirvars file is loaded.
|
||||||
|
;;
|
||||||
|
indent-tabs-mode: nil
|
||||||
|
tab-width: 8
|
||||||
|
c-basic-offset: 3
|
||||||
|
kde-emacs-after-parent-string: ""
|
||||||
|
evaluate: (c-set-offset 'inline-open '0)
|
9
.gitignore
vendored
9
.gitignore
vendored
@@ -2,8 +2,6 @@
|
|||||||
*.dll
|
*.dll
|
||||||
*.exe
|
*.exe
|
||||||
*.ilk
|
*.ilk
|
||||||
*.la
|
|
||||||
*.lo
|
|
||||||
*.o
|
*.o
|
||||||
*.obj
|
*.obj
|
||||||
*.os
|
*.os
|
||||||
@@ -21,11 +19,9 @@
|
|||||||
*~
|
*~
|
||||||
depend
|
depend
|
||||||
depend.bak
|
depend.bak
|
||||||
bin/ltmain.sh
|
|
||||||
lib
|
lib
|
||||||
lib64
|
lib64
|
||||||
configure
|
configure
|
||||||
configure.lineno
|
|
||||||
autom4te.cache
|
autom4te.cache
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
config.log
|
config.log
|
||||||
@@ -34,10 +30,5 @@ cscope*
|
|||||||
.scon*
|
.scon*
|
||||||
config.py
|
config.py
|
||||||
build
|
build
|
||||||
libtool
|
|
||||||
manifest.txt
|
manifest.txt
|
||||||
Makefile.in
|
|
||||||
.dir-locals.el
|
.dir-locals.el
|
||||||
.deps/
|
|
||||||
.libs/
|
|
||||||
/Makefile
|
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
# BOARD_GPU_DRIVERS should be defined. The valid values are
|
# BOARD_GPU_DRIVERS should be defined. The valid values are
|
||||||
#
|
#
|
||||||
# classic drivers: i915 i965
|
# classic drivers: i915 i965
|
||||||
# gallium drivers: swrast i915g nouveau r300g r600g radeonsi vmwgfx
|
# gallium drivers: swrast i915g nouveau r300g r600g vmwgfx
|
||||||
#
|
#
|
||||||
# The main target is libGLES_mesa. For each classic driver enabled, a DRI
|
# The main target is libGLES_mesa. For each classic driver enabled, a DRI
|
||||||
# module will also be built. DRI modules will be loaded by libGLES_mesa.
|
# module will also be built. DRI modules will be loaded by libGLES_mesa.
|
||||||
@@ -37,7 +37,7 @@ DRM_TOP := external/drm
|
|||||||
DRM_GRALLOC_TOP := hardware/drm_gralloc
|
DRM_GRALLOC_TOP := hardware/drm_gralloc
|
||||||
|
|
||||||
classic_drivers := i915 i965
|
classic_drivers := i915 i965
|
||||||
gallium_drivers := swrast i915g nouveau r300g r600g radeonsi vmwgfx
|
gallium_drivers := swrast i915g nouveau r300g r600g vmwgfx
|
||||||
|
|
||||||
MESA_GPU_DRIVERS := $(strip $(BOARD_GPU_DRIVERS))
|
MESA_GPU_DRIVERS := $(strip $(BOARD_GPU_DRIVERS))
|
||||||
|
|
||||||
|
269
Makefile
Normal file
269
Makefile
Normal file
@@ -0,0 +1,269 @@
|
|||||||
|
# Top-level Mesa makefile
|
||||||
|
|
||||||
|
TOP = .
|
||||||
|
|
||||||
|
SUBDIRS = src
|
||||||
|
|
||||||
|
|
||||||
|
# The git command below generates an empty string when we're not
|
||||||
|
# building in a GIT tree (i.e., building from a release tarball).
|
||||||
|
default: $(TOP)/configs/current
|
||||||
|
@$(TOP)/bin/extract_git_sha1
|
||||||
|
@for dir in $(SUBDIRS) ; do \
|
||||||
|
if [ -d $$dir ] ; then \
|
||||||
|
(cd $$dir && $(MAKE)) || exit 1 ; \
|
||||||
|
fi \
|
||||||
|
done
|
||||||
|
|
||||||
|
all: default
|
||||||
|
|
||||||
|
|
||||||
|
doxygen:
|
||||||
|
cd doxygen && $(MAKE)
|
||||||
|
|
||||||
|
check:
|
||||||
|
cd src/glsl/tests/ && ./optimization-test
|
||||||
|
make -C tests check
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-@touch $(TOP)/configs/current
|
||||||
|
-@for dir in $(SUBDIRS) ; do \
|
||||||
|
if [ -d $$dir ] ; then \
|
||||||
|
(cd $$dir && $(MAKE) clean) ; \
|
||||||
|
fi \
|
||||||
|
done
|
||||||
|
-@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current
|
||||||
|
|
||||||
|
|
||||||
|
realclean: clean
|
||||||
|
-rm -rf lib*
|
||||||
|
-rm -f $(TOP)/configs/current
|
||||||
|
-rm -f $(TOP)/configs/autoconf
|
||||||
|
-rm -rf autom4te.cache
|
||||||
|
-find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \
|
||||||
|
-name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
|
||||||
|
|
||||||
|
|
||||||
|
distclean: realclean
|
||||||
|
|
||||||
|
|
||||||
|
install:
|
||||||
|
@for dir in $(SUBDIRS) ; do \
|
||||||
|
if [ -d $$dir ] ; then \
|
||||||
|
(cd $$dir && $(MAKE) install) || exit 1 ; \
|
||||||
|
fi \
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: default doxygen clean realclean distclean install check
|
||||||
|
|
||||||
|
# If there's no current configuration file
|
||||||
|
$(TOP)/configs/current:
|
||||||
|
@echo
|
||||||
|
@echo
|
||||||
|
@echo "Please choose a configuration from the following list:"
|
||||||
|
@ls -1 $(TOP)/configs | grep -v "current\|default\|CVS\|autoconf.*"
|
||||||
|
@echo
|
||||||
|
@echo "Then type 'make <config>' (ex: 'make linux-x86')"
|
||||||
|
@echo
|
||||||
|
@echo "Or, run './configure' then 'make'"
|
||||||
|
@echo "See './configure --help' for details"
|
||||||
|
@echo
|
||||||
|
@echo "(ignore the following error message)"
|
||||||
|
@exit 1
|
||||||
|
|
||||||
|
|
||||||
|
# Rules to set/install a specific build configuration
|
||||||
|
aix \
|
||||||
|
aix-64 \
|
||||||
|
aix-64-static \
|
||||||
|
aix-gcc \
|
||||||
|
aix-static \
|
||||||
|
autoconf \
|
||||||
|
bluegene-osmesa \
|
||||||
|
bluegene-xlc-osmesa \
|
||||||
|
catamount-osmesa-pgi \
|
||||||
|
darwin \
|
||||||
|
darwin-fat-32bit \
|
||||||
|
darwin-fat-all \
|
||||||
|
freebsd \
|
||||||
|
freebsd-dri \
|
||||||
|
freebsd-dri-amd64 \
|
||||||
|
freebsd-dri-x86 \
|
||||||
|
hpux10 \
|
||||||
|
hpux10-gcc \
|
||||||
|
hpux10-static \
|
||||||
|
hpux11-32 \
|
||||||
|
hpux11-32-static \
|
||||||
|
hpux11-32-static-nothreads \
|
||||||
|
hpux11-64 \
|
||||||
|
hpux11-64-static \
|
||||||
|
hpux11-ia64 \
|
||||||
|
hpux11-ia64-static \
|
||||||
|
hpux9 \
|
||||||
|
hpux9-gcc \
|
||||||
|
irix6-64 \
|
||||||
|
irix6-64-static \
|
||||||
|
irix6-n32 \
|
||||||
|
irix6-n32-static \
|
||||||
|
irix6-o32 \
|
||||||
|
irix6-o32-static \
|
||||||
|
linux \
|
||||||
|
linux-i965 \
|
||||||
|
linux-alpha \
|
||||||
|
linux-alpha-static \
|
||||||
|
linux-debug \
|
||||||
|
linux-dri \
|
||||||
|
linux-dri-debug \
|
||||||
|
linux-dri-x86 \
|
||||||
|
linux-dri-x86-64 \
|
||||||
|
linux-dri-ppc \
|
||||||
|
linux-dri-xcb \
|
||||||
|
linux-egl \
|
||||||
|
linux-indirect \
|
||||||
|
linux-fbdev \
|
||||||
|
linux-ia64-icc \
|
||||||
|
linux-ia64-icc-static \
|
||||||
|
linux-icc \
|
||||||
|
linux-icc-static \
|
||||||
|
linux-llvm \
|
||||||
|
linux-llvm-debug \
|
||||||
|
linux-opengl-es \
|
||||||
|
linux-osmesa \
|
||||||
|
linux-osmesa-static \
|
||||||
|
linux-osmesa16 \
|
||||||
|
linux-osmesa16-static \
|
||||||
|
linux-osmesa32 \
|
||||||
|
linux-ppc \
|
||||||
|
linux-ppc-static \
|
||||||
|
linux-profile \
|
||||||
|
linux-sparc \
|
||||||
|
linux-sparc5 \
|
||||||
|
linux-static \
|
||||||
|
linux-ultrasparc \
|
||||||
|
linux-tcc \
|
||||||
|
linux-x86 \
|
||||||
|
linux-x86-debug \
|
||||||
|
linux-x86-32 \
|
||||||
|
linux-x86-64 \
|
||||||
|
linux-x86-64-debug \
|
||||||
|
linux-x86-64-profile \
|
||||||
|
linux-x86-64-static \
|
||||||
|
linux-x86-profile \
|
||||||
|
linux-x86-static \
|
||||||
|
netbsd \
|
||||||
|
openbsd \
|
||||||
|
osf1 \
|
||||||
|
osf1-static \
|
||||||
|
solaris-x86 \
|
||||||
|
solaris-x86-gcc \
|
||||||
|
solaris-x86-gcc-static \
|
||||||
|
sunos4 \
|
||||||
|
sunos4-gcc \
|
||||||
|
sunos4-static \
|
||||||
|
sunos5 \
|
||||||
|
sunos5-gcc \
|
||||||
|
sunos5-64-gcc \
|
||||||
|
sunos5-smp \
|
||||||
|
sunos5-v8 \
|
||||||
|
sunos5-v8-static \
|
||||||
|
sunos5-v9 \
|
||||||
|
sunos5-v9-static \
|
||||||
|
sunos5-v9-cc-g++ \
|
||||||
|
ultrix-gcc:
|
||||||
|
@ if test -f configs/current -o -L configs/current; then \
|
||||||
|
if ! cmp configs/$@ configs/current > /dev/null; then \
|
||||||
|
echo "Please run 'make realclean' before changing configs" ; \
|
||||||
|
exit 1 ; \
|
||||||
|
fi ; \
|
||||||
|
else \
|
||||||
|
cd configs && rm -f current && ln -s $@ current ; \
|
||||||
|
fi
|
||||||
|
$(MAKE) default
|
||||||
|
|
||||||
|
|
||||||
|
# Rules for making release tarballs
|
||||||
|
|
||||||
|
PACKAGE_VERSION=8.0.5
|
||||||
|
PACKAGE_DIR = Mesa-$(PACKAGE_VERSION)
|
||||||
|
PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION)
|
||||||
|
|
||||||
|
EXTRA_FILES = \
|
||||||
|
aclocal.m4 \
|
||||||
|
configure \
|
||||||
|
tests/Makefile.in \
|
||||||
|
tests/glx/Makefile.in \
|
||||||
|
src/glsl/glsl_parser.cpp \
|
||||||
|
src/glsl/glsl_parser.h \
|
||||||
|
src/glsl/glsl_lexer.cpp \
|
||||||
|
src/glsl/glcpp/glcpp-lex.c \
|
||||||
|
src/glsl/glcpp/glcpp-parse.c \
|
||||||
|
src/glsl/glcpp/glcpp-parse.h \
|
||||||
|
src/mesa/main/api_exec_es1.c \
|
||||||
|
src/mesa/main/api_exec_es1_dispatch.h \
|
||||||
|
src/mesa/main/api_exec_es1_remap_helper.h \
|
||||||
|
src/mesa/main/api_exec_es2.c \
|
||||||
|
src/mesa/main/api_exec_es2_dispatch.h \
|
||||||
|
src/mesa/main/api_exec_es2_remap_helper.h \
|
||||||
|
src/mesa/program/lex.yy.c \
|
||||||
|
src/mesa/program/program_parse.tab.c \
|
||||||
|
src/mesa/program/program_parse.tab.h
|
||||||
|
|
||||||
|
IGNORE_FILES = \
|
||||||
|
-x autogen.sh
|
||||||
|
|
||||||
|
|
||||||
|
parsers: configure
|
||||||
|
-@touch $(TOP)/configs/current
|
||||||
|
$(MAKE) -C src/glsl glsl_parser.cpp glsl_parser.h glsl_lexer.cpp
|
||||||
|
$(MAKE) -C src/glsl/glcpp glcpp-lex.c glcpp-parse.c glcpp-parse.h
|
||||||
|
$(MAKE) -C src/mesa program/lex.yy.c program/program_parse.tab.c program/program_parse.tab.h
|
||||||
|
|
||||||
|
# Everything for new a Mesa release:
|
||||||
|
ARCHIVES = $(PACKAGE_NAME).tar.gz \
|
||||||
|
$(PACKAGE_NAME).tar.bz2 \
|
||||||
|
$(PACKAGE_NAME).zip \
|
||||||
|
|
||||||
|
tarballs: md5
|
||||||
|
rm -f ../$(PACKAGE_DIR) $(PACKAGE_NAME).tar
|
||||||
|
|
||||||
|
# Helper for autoconf builds
|
||||||
|
ACLOCAL = aclocal
|
||||||
|
ACLOCAL_FLAGS =
|
||||||
|
AUTOCONF = autoconf
|
||||||
|
AC_FLAGS =
|
||||||
|
aclocal.m4: configure.ac acinclude.m4
|
||||||
|
$(ACLOCAL) $(ACLOCAL_FLAGS)
|
||||||
|
configure: configure.ac aclocal.m4 acinclude.m4
|
||||||
|
$(AUTOCONF) $(AC_FLAGS)
|
||||||
|
|
||||||
|
manifest.txt: .git
|
||||||
|
( \
|
||||||
|
ls -1 $(EXTRA_FILES) ; \
|
||||||
|
git ls-files $(IGNORE_FILES) \
|
||||||
|
) | sed -e '/^\(.*\/\)\?\./d' -e "s@^@$(PACKAGE_DIR)/@" > $@
|
||||||
|
|
||||||
|
../$(PACKAGE_DIR):
|
||||||
|
ln -s $(PWD) $@
|
||||||
|
|
||||||
|
$(PACKAGE_NAME).tar: parsers ../$(PACKAGE_DIR) manifest.txt
|
||||||
|
cd .. ; tar -cf $(PACKAGE_DIR)/$(PACKAGE_NAME).tar -T $(PACKAGE_DIR)/manifest.txt
|
||||||
|
|
||||||
|
$(PACKAGE_NAME).tar.gz: $(PACKAGE_NAME).tar ../$(PACKAGE_DIR)
|
||||||
|
gzip --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.gz
|
||||||
|
|
||||||
|
$(PACKAGE_NAME).tar.bz2: $(PACKAGE_NAME).tar
|
||||||
|
bzip2 --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.bz2
|
||||||
|
|
||||||
|
$(PACKAGE_NAME).zip: parsers ../$(PACKAGE_DIR) manifest.txt
|
||||||
|
rm -f $(PACKAGE_NAME).zip ; \
|
||||||
|
cd .. ; \
|
||||||
|
zip -q -@ $(PACKAGE_NAME).zip < $(PACKAGE_DIR)/manifest.txt ; \
|
||||||
|
mv $(PACKAGE_NAME).zip $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
md5: $(ARCHIVES)
|
||||||
|
@-md5sum $(PACKAGE_NAME).tar.gz
|
||||||
|
@-md5sum $(PACKAGE_NAME).tar.bz2
|
||||||
|
@-md5sum $(PACKAGE_NAME).zip
|
||||||
|
|
||||||
|
.PHONY: tarballs md5
|
124
Makefile.am
124
Makefile.am
@@ -1,124 +0,0 @@
|
|||||||
# Copyright © 2012 Intel Corporation
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
|
||||||
# to deal in the Software without restriction, including without limitation
|
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice (including the next
|
|
||||||
# paragraph) shall be included in all copies or substantial portions of the
|
|
||||||
# Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
||||||
# IN THE SOFTWARE.
|
|
||||||
|
|
||||||
SUBDIRS = src
|
|
||||||
|
|
||||||
doxygen:
|
|
||||||
cd doxygen && $(MAKE)
|
|
||||||
|
|
||||||
check-local:
|
|
||||||
$(MAKE) -C src/mapi/glapi/tests check
|
|
||||||
$(MAKE) -C src/mesa/main/tests check
|
|
||||||
$(MAKE) -C src/glsl/tests check
|
|
||||||
$(MAKE) -C src/glx/tests check
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
-@touch $(top_builddir)/configs/current
|
|
||||||
-@for dir in $(SUBDIRS) ; do \
|
|
||||||
if [ -d $$dir ] ; then \
|
|
||||||
(cd $$dir && $(MAKE) clean) ; \
|
|
||||||
fi \
|
|
||||||
done
|
|
||||||
-@test -s $(top_builddir)/configs/current || rm -f $(top_builddir)/configs/current
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
-rm -rf lib*
|
|
||||||
-rm -f $(top_builddir)/configs/current
|
|
||||||
-find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \
|
|
||||||
-name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
|
|
||||||
|
|
||||||
.PHONY: doxygen
|
|
||||||
|
|
||||||
# Rules for making release tarballs
|
|
||||||
|
|
||||||
PACKAGE_VERSION=8.1-devel
|
|
||||||
PACKAGE_DIR = Mesa-$(PACKAGE_VERSION)
|
|
||||||
PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION)
|
|
||||||
|
|
||||||
EXTRA_FILES = \
|
|
||||||
aclocal.m4 \
|
|
||||||
configure \
|
|
||||||
src/glsl/glsl_parser.cpp \
|
|
||||||
src/glsl/glsl_parser.h \
|
|
||||||
src/glsl/glsl_lexer.cpp \
|
|
||||||
src/glsl/glcpp/glcpp-lex.c \
|
|
||||||
src/glsl/glcpp/glcpp-parse.c \
|
|
||||||
src/glsl/glcpp/glcpp-parse.h \
|
|
||||||
src/mesa/main/api_exec_es1.c \
|
|
||||||
src/mesa/main/api_exec_es1_dispatch.h \
|
|
||||||
src/mesa/main/api_exec_es1_remap_helper.h \
|
|
||||||
src/mesa/main/api_exec_es2.c \
|
|
||||||
src/mesa/main/api_exec_es2_dispatch.h \
|
|
||||||
src/mesa/main/api_exec_es2_remap_helper.h \
|
|
||||||
src/mesa/program/lex.yy.c \
|
|
||||||
src/mesa/program/program_parse.tab.c \
|
|
||||||
src/mesa/program/program_parse.tab.h
|
|
||||||
|
|
||||||
IGNORE_FILES = \
|
|
||||||
-x autogen.sh
|
|
||||||
|
|
||||||
|
|
||||||
parsers: configure
|
|
||||||
-@touch $(top_builddir)/configs/current
|
|
||||||
$(MAKE) -C src/glsl glsl_parser.cpp glsl_parser.h glsl_lexer.cpp
|
|
||||||
$(MAKE) -C src/glsl/glcpp glcpp-lex.c glcpp-parse.c glcpp-parse.h
|
|
||||||
$(MAKE) -C src/mesa program/lex.yy.c program/program_parse.tab.c program/program_parse.tab.h
|
|
||||||
|
|
||||||
# Everything for new a Mesa release:
|
|
||||||
ARCHIVES = $(PACKAGE_NAME).tar.gz \
|
|
||||||
$(PACKAGE_NAME).tar.bz2 \
|
|
||||||
$(PACKAGE_NAME).zip
|
|
||||||
|
|
||||||
tarballs: md5
|
|
||||||
rm -f ../$(PACKAGE_DIR) $(PACKAGE_NAME).tar
|
|
||||||
|
|
||||||
manifest.txt: .git
|
|
||||||
( \
|
|
||||||
ls -1 $(EXTRA_FILES) ; \
|
|
||||||
git ls-files $(IGNORE_FILES) \
|
|
||||||
) | sed -e '/^\(.*\/\)\?\./d' -e "s@^@$(PACKAGE_DIR)/@" > $@
|
|
||||||
|
|
||||||
../$(PACKAGE_DIR):
|
|
||||||
ln -s $(PWD) $@
|
|
||||||
|
|
||||||
$(PACKAGE_NAME).tar: parsers ../$(PACKAGE_DIR) manifest.txt
|
|
||||||
cd .. ; tar -cf $(PACKAGE_DIR)/$(PACKAGE_NAME).tar -T $(PACKAGE_DIR)/manifest.txt
|
|
||||||
|
|
||||||
$(PACKAGE_NAME).tar.gz: $(PACKAGE_NAME).tar ../$(PACKAGE_DIR)
|
|
||||||
gzip --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.gz
|
|
||||||
|
|
||||||
$(PACKAGE_NAME).tar.bz2: $(PACKAGE_NAME).tar
|
|
||||||
bzip2 --stdout --best $(PACKAGE_NAME).tar > $(PACKAGE_NAME).tar.bz2
|
|
||||||
|
|
||||||
$(PACKAGE_NAME).zip: parsers ../$(PACKAGE_DIR) manifest.txt
|
|
||||||
rm -f $(PACKAGE_NAME).zip ; \
|
|
||||||
cd .. ; \
|
|
||||||
zip -q -@ $(PACKAGE_NAME).zip < $(PACKAGE_DIR)/manifest.txt ; \
|
|
||||||
mv $(PACKAGE_NAME).zip $(PACKAGE_DIR)
|
|
||||||
|
|
||||||
md5: $(ARCHIVES)
|
|
||||||
@-md5sum $(PACKAGE_NAME).tar.gz
|
|
||||||
@-md5sum $(PACKAGE_NAME).tar.bz2
|
|
||||||
@-md5sum $(PACKAGE_NAME).zip
|
|
||||||
|
|
||||||
.PHONY: tarballs md5
|
|
6
bin/.gitignore
vendored
6
bin/.gitignore
vendored
@@ -1,8 +1,2 @@
|
|||||||
config.guess
|
|
||||||
config.sub
|
|
||||||
install-sh
|
|
||||||
/depcomp
|
/depcomp
|
||||||
/missing
|
/missing
|
||||||
ylwrap
|
|
||||||
compile
|
|
||||||
ar-lib
|
|
||||||
|
48
bin/confdiff.sh
Executable file
48
bin/confdiff.sh
Executable file
@@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
echo "Usage: $0 <target1> <target2>"
|
||||||
|
echo "Highlight differences between Mesa configs"
|
||||||
|
echo "Example:"
|
||||||
|
echo " $0 linux linux-x86"
|
||||||
|
}
|
||||||
|
|
||||||
|
die()
|
||||||
|
{
|
||||||
|
echo "$@" >&2
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
-h|--help) usage; exit 0;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
[ $# -lt 2 ] && die 2 targets needed. See $0 --help
|
||||||
|
target1=$1
|
||||||
|
target2=$2
|
||||||
|
|
||||||
|
topdir=$(cd "`dirname $0`"/..; pwd)
|
||||||
|
cd "$topdir"
|
||||||
|
|
||||||
|
[ -f "./configs/$target1" ] || die Missing configs/$target1
|
||||||
|
[ -f "./configs/$target2" ] || die Missing configs/$target2
|
||||||
|
|
||||||
|
trap 'rm -f "$t1" "$t2"' 0
|
||||||
|
|
||||||
|
t1=$(mktemp)
|
||||||
|
t2=$(mktemp)
|
||||||
|
|
||||||
|
make -f- -n -p <<EOF | sed '/^# Not a target/,/^$/d' > $t1
|
||||||
|
TOP = .
|
||||||
|
include \$(TOP)/configs/$target1
|
||||||
|
default:
|
||||||
|
EOF
|
||||||
|
|
||||||
|
make -f- -n -p <<EOF | sed '/^# Not a target/,/^$/d' > $t2
|
||||||
|
TOP = .
|
||||||
|
include \$(TOP)/configs/$target2
|
||||||
|
default:
|
||||||
|
EOF
|
||||||
|
|
||||||
|
diff -pu -I'^#' $t1 $t2
|
1555
bin/config.guess
vendored
Executable file
1555
bin/config.guess
vendored
Executable file
File diff suppressed because it is too large
Load Diff
1685
bin/config.sub
vendored
Executable file
1685
bin/config.sub
vendored
Executable file
File diff suppressed because it is too large
Load Diff
20
bin/extract_git_sha1
Executable file
20
bin/extract_git_sha1
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
if [ ! -f src/mesa/main/git_sha1.h ]; then
|
||||||
|
touch src/mesa/main/git_sha1.h
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d .git ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if which git > /dev/null; then
|
||||||
|
# Extract the 7-digit "short" SHA1 for the current HEAD, convert
|
||||||
|
# it to a string, and wrap it in a #define. This is used in
|
||||||
|
# src/mesa/main/version.c to put the GIT SHA1 in the GL_VERSION string.
|
||||||
|
git log -n 1 --oneline |\
|
||||||
|
sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \
|
||||||
|
> src/mesa/main/git_sha1.h.tmp
|
||||||
|
if ! cmp -s src/mesa/main/git_sha1.h.tmp src/mesa/main/git_sha1.h; then
|
||||||
|
mv src/mesa/main/git_sha1.h.tmp src/mesa/main/git_sha1.h
|
||||||
|
fi
|
||||||
|
fi
|
29
bin/get-pick-list.sh
Executable file
29
bin/get-pick-list.sh
Executable file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Script for generating a list of candidates for cherry-picking to a stable branch
|
||||||
|
|
||||||
|
# Grep for commits with "cherry picked from commit" in the commit message.
|
||||||
|
git log --reverse --grep="cherry picked from commit" origin/master..HEAD |\
|
||||||
|
grep "cherry picked from commit" |\
|
||||||
|
sed -e 's/^[[:space:]]*(cherry picked from commit[[:space:]]*//' -e 's/)//' > already_picked
|
||||||
|
|
||||||
|
# Grep for commits that were marked as a candidate for the stable tree.
|
||||||
|
git log --reverse --pretty=%H -i --grep='^[[:space:]]*NOTE: This is a candidate' HEAD..origin/master |\
|
||||||
|
while read sha
|
||||||
|
do
|
||||||
|
# Check to see whether the patch is on the ignore list.
|
||||||
|
if [ -f .git/cherry-ignore ] ; then
|
||||||
|
if grep -q ^$sha .git/cherry-ignore ; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check to see if it has already been picked over.
|
||||||
|
if grep -q ^$sha already_picked ; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
git log -n1 --pretty=oneline $sha | cat
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -f already_picked
|
1
bin/install-sh
Symbolic link
1
bin/install-sh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
minstall
|
17
bin/version.mk
Executable file
17
bin/version.mk
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/make -sf
|
||||||
|
# Print the various Mesa version fields. This is mostly used to add the
|
||||||
|
# version to configure.
|
||||||
|
|
||||||
|
# This reflects that this script is usually called from the toplevel
|
||||||
|
TOP = .
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
version:
|
||||||
|
@echo $(MESA_VERSION)
|
||||||
|
major:
|
||||||
|
@echo $(MESA_MAJOR)
|
||||||
|
minor:
|
||||||
|
@echo $(MESA_MINOR)
|
||||||
|
tiny:
|
||||||
|
@echo $(MESA_TINY)
|
@@ -31,15 +31,9 @@ _machine_map = {
|
|||||||
'i486': 'x86',
|
'i486': 'x86',
|
||||||
'i586': 'x86',
|
'i586': 'x86',
|
||||||
'i686': 'x86',
|
'i686': 'x86',
|
||||||
'BePC': 'x86',
|
|
||||||
'Intel': 'x86',
|
|
||||||
'ppc' : 'ppc',
|
'ppc' : 'ppc',
|
||||||
'BeBox': 'ppc',
|
|
||||||
'BeMac': 'ppc',
|
|
||||||
'AMD64': 'x86_64',
|
'AMD64': 'x86_64',
|
||||||
'x86_64': 'x86_64',
|
'x86_64': 'x86_64',
|
||||||
'sparc': 'sparc',
|
|
||||||
'sun4u': 'sparc',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -89,7 +83,7 @@ def AddOptions(opts):
|
|||||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
||||||
allowed_values=('generic', 'ppc', 'x86', 'x86_64')))
|
allowed_values=('generic', 'ppc', 'x86', 'x86_64')))
|
||||||
opts.Add(EnumOption('platform', 'target platform', host_platform,
|
opts.Add(EnumOption('platform', 'target platform', host_platform,
|
||||||
allowed_values=('cygwin', 'darwin', 'freebsd', 'haiku', 'linux', 'sunos', 'windows')))
|
allowed_values=('linux', 'windows', 'darwin', 'cygwin', 'sunos', 'freebsd8')))
|
||||||
opts.Add(BoolOption('embedded', 'embedded build', 'no'))
|
opts.Add(BoolOption('embedded', 'embedded build', 'no'))
|
||||||
opts.Add('toolchain', 'compiler toolchain', default_toolchain)
|
opts.Add('toolchain', 'compiler toolchain', default_toolchain)
|
||||||
opts.Add(BoolOption('gles', 'EXPERIMENTAL: enable OpenGL ES support', 'no'))
|
opts.Add(BoolOption('gles', 'EXPERIMENTAL: enable OpenGL ES support', 'no'))
|
||||||
|
27
configs/aix
Normal file
27
configs/aix
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Configuration for AIX, dynamic libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = aix
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = xlC
|
||||||
|
|
||||||
|
CFLAGS = -O -DAIXV3 -DPTHREADS
|
||||||
|
CXXFLAGS = -O -DAIXV3 -DPTHREADS
|
||||||
|
|
||||||
|
# Misc tools and flags
|
||||||
|
MKLIB_OPTIONS =
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -lX11 -lXext -lpthread -lm
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/lib -l$(GL_LIB) -lm -lC
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/lib -l$(GL_LIB) -lXm -lXt -lX11
|
||||||
|
OSMESA_LIB_DEPS = -L$(TOP)/lib -l$(GL_LIB)
|
||||||
|
|
24
configs/aix-64
Normal file
24
configs/aix-64
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Configuration for AIX 64-bit, dynamic libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = aix-64
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = xlc
|
||||||
|
CXX = xlC
|
||||||
|
|
||||||
|
CFLAGS = -q64 -qmaxmem=16384 -O -DAIXV3 -DPTHREADS
|
||||||
|
CXXFLAGS = -q64 -qmaxmem=16384 -O -DAIXV3 -DPTHREADS
|
||||||
|
LIB_DIR = lib64
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -lX11 -lXext -lm -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lC
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXm -lXt -lX11
|
||||||
|
|
21
configs/aix-64-static
Normal file
21
configs/aix-64-static
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Configuration for AIX, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = aix-64-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = xlC
|
||||||
|
|
||||||
|
CFLAGS = -q64 -O -DAIXV3 -DPTHREADS
|
||||||
|
CXXFLAGS = -q64 -O -DAIXV3 -DPTHREADS
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
LIB_DIR = lib64
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
21
configs/aix-gcc
Normal file
21
configs/aix-gcc
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Configuration for AIX with gcc
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = aix-gcc
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
CFLAGS = -O2 -DAIXV3
|
||||||
|
CXXFLAGS = -O2 -DAIXV3
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -arch aix-gcc
|
||||||
|
GL_LIB_DEPS = -lX11 -lXext -lm
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
|
|
20
configs/aix-static
Normal file
20
configs/aix-static
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Configuration for AIX, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = aix-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = xlC
|
||||||
|
|
||||||
|
CFLAGS = -O -DAIXV3 -DPTHREADS
|
||||||
|
CXXFLAGS = -O -DAIXV3 -DPTHREADS
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
@@ -11,12 +11,13 @@ CC = @CC@
|
|||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
OPT_FLAGS = @OPT_FLAGS@
|
OPT_FLAGS = @OPT_FLAGS@
|
||||||
ARCH_FLAGS = @ARCH_FLAGS@
|
ARCH_FLAGS = @ARCH_FLAGS@
|
||||||
|
ASM_FLAGS = @ASM_FLAGS@
|
||||||
PIC_FLAGS = @PIC_FLAGS@
|
PIC_FLAGS = @PIC_FLAGS@
|
||||||
DEFINES = @DEFINES@
|
DEFINES = @DEFINES@
|
||||||
API_DEFINES = @API_DEFINES@
|
API_DEFINES = @API_DEFINES@
|
||||||
SHARED_GLAPI = @SHARED_GLAPI@
|
SHARED_GLAPI = @SHARED_GLAPI@
|
||||||
CFLAGS_NOVISIBILITY = @CPPFLAGS@ @CFLAGS@ \
|
CFLAGS_NOVISIBILITY = @CPPFLAGS@ @CFLAGS@ \
|
||||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
||||||
CXXFLAGS_NOVISIBILITY = @CPPFLAGS@ @CXXFLAGS@ \
|
CXXFLAGS_NOVISIBILITY = @CPPFLAGS@ @CXXFLAGS@ \
|
||||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
CFLAGS = $(CFLAGS_NOVISIBILITY) @VISIBILITY_CFLAGS@
|
CFLAGS = $(CFLAGS_NOVISIBILITY) @VISIBILITY_CFLAGS@
|
||||||
@@ -31,22 +32,19 @@ INTEL_LIBS = @INTEL_LIBS@
|
|||||||
INTEL_CFLAGS = @INTEL_CFLAGS@
|
INTEL_CFLAGS = @INTEL_CFLAGS@
|
||||||
X11_LIBS = @X11_LIBS@
|
X11_LIBS = @X11_LIBS@
|
||||||
X11_CFLAGS = @X11_CFLAGS@
|
X11_CFLAGS = @X11_CFLAGS@
|
||||||
LLVM_BINDIR = @LLVM_BINDIR@
|
|
||||||
LLVM_CFLAGS = @LLVM_CFLAGS@
|
LLVM_CFLAGS = @LLVM_CFLAGS@
|
||||||
LLVM_CPPFLAGS = @LLVM_CPPFLAGS@
|
|
||||||
LLVM_CXXFLAGS = @LLVM_CXXFLAGS@
|
|
||||||
LLVM_LDFLAGS = @LLVM_LDFLAGS@
|
LLVM_LDFLAGS = @LLVM_LDFLAGS@
|
||||||
LLVM_LIBDIR = @LLVM_LIBDIR@
|
|
||||||
LLVM_LIBS = @LLVM_LIBS@
|
LLVM_LIBS = @LLVM_LIBS@
|
||||||
LLVM_INCLUDEDIR = @LLVM_INCLUDEDIR@
|
|
||||||
GLW_CFLAGS = @GLW_CFLAGS@
|
GLW_CFLAGS = @GLW_CFLAGS@
|
||||||
GLX_TLS = @GLX_TLS@
|
GLX_TLS = @GLX_TLS@
|
||||||
|
DRI_CFLAGS = @DRI_CFLAGS@
|
||||||
|
DRI_CXXFLAGS = @DRI_CXXFLAGS@
|
||||||
|
|
||||||
# dlopen
|
# dlopen
|
||||||
DLOPEN_LIBS = @DLOPEN_LIBS@
|
DLOPEN_LIBS = @DLOPEN_LIBS@
|
||||||
|
|
||||||
# Source selection
|
# Source selection
|
||||||
MESA_ASM_FILES = @MESA_ASM_FILES@
|
MESA_ASM_SOURCES = @MESA_ASM_SOURCES@
|
||||||
GLAPI_ASM_SOURCES = @GLAPI_ASM_SOURCES@
|
GLAPI_ASM_SOURCES = @GLAPI_ASM_SOURCES@
|
||||||
|
|
||||||
# Misc tools and flags
|
# Misc tools and flags
|
||||||
@@ -60,20 +58,13 @@ AWK = @AWK@
|
|||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
NM = @NM@
|
NM = @NM@
|
||||||
|
|
||||||
# Perl
|
|
||||||
PERL = @PERL@
|
|
||||||
|
|
||||||
# Indent (used for generating dispatch tables)
|
|
||||||
INDENT = @INDENT@
|
|
||||||
INDENT_FLAGS = @INDENT_FLAGS@
|
|
||||||
|
|
||||||
# Python and flags (generally only needed by the developers)
|
# Python and flags (generally only needed by the developers)
|
||||||
PYTHON2 = @PYTHON2@
|
PYTHON2 = @PYTHON2@
|
||||||
PYTHON_FLAGS = -t -O -O
|
PYTHON_FLAGS = -t -O -O
|
||||||
|
|
||||||
# Flex and Bison for GLSL compiler
|
# Flex and Bison for GLSL compiler
|
||||||
FLEX = @LEX@
|
FLEX = @FLEX@
|
||||||
BISON = @YACC@
|
BISON = @BISON@
|
||||||
|
|
||||||
# Library names (base name)
|
# Library names (base name)
|
||||||
GL_LIB = @GL_LIB@
|
GL_LIB = @GL_LIB@
|
||||||
@@ -84,6 +75,8 @@ GLESv1_CM_LIB = GLESv1_CM
|
|||||||
GLESv2_LIB = GLESv2
|
GLESv2_LIB = GLESv2
|
||||||
VG_LIB = OpenVG
|
VG_LIB = OpenVG
|
||||||
GLAPI_LIB = glapi
|
GLAPI_LIB = glapi
|
||||||
|
WAYLAND_EGL_LIB = wayland-egl
|
||||||
|
GBM_LIB = gbm
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = @GL_LIB_NAME@
|
GL_LIB_NAME = @GL_LIB_NAME@
|
||||||
@@ -95,6 +88,8 @@ GLESv1_CM_LIB_NAME = @GLESv1_CM_LIB_NAME@
|
|||||||
GLESv2_LIB_NAME = @GLESv2_LIB_NAME@
|
GLESv2_LIB_NAME = @GLESv2_LIB_NAME@
|
||||||
VG_LIB_NAME = @VG_LIB_NAME@
|
VG_LIB_NAME = @VG_LIB_NAME@
|
||||||
GLAPI_LIB_NAME = @GLAPI_LIB_NAME@
|
GLAPI_LIB_NAME = @GLAPI_LIB_NAME@
|
||||||
|
WAYLAND_EGL_LIB_NAME = @WAYLAND_EGL_LIB_NAME@
|
||||||
|
GBM_LIB_NAME = @GBM_LIB_NAME@
|
||||||
|
|
||||||
# Globs used to install the lib and all symlinks
|
# Globs used to install the lib and all symlinks
|
||||||
GL_LIB_GLOB = @GL_LIB_GLOB@
|
GL_LIB_GLOB = @GL_LIB_GLOB@
|
||||||
@@ -106,12 +101,16 @@ GLESv1_CM_LIB_GLOB = @GLESv1_CM_LIB_GLOB@
|
|||||||
GLESv2_LIB_GLOB = @GLESv2_LIB_GLOB@
|
GLESv2_LIB_GLOB = @GLESv2_LIB_GLOB@
|
||||||
VG_LIB_GLOB = @VG_LIB_GLOB@
|
VG_LIB_GLOB = @VG_LIB_GLOB@
|
||||||
GLAPI_LIB_GLOB = @GLAPI_LIB_GLOB@
|
GLAPI_LIB_GLOB = @GLAPI_LIB_GLOB@
|
||||||
|
WAYLAND_EGL_LIB_GLOB = @WAYLAND_EGL_LIB_GLOB@
|
||||||
|
GBM_LIB_GLOB = @GBM_LIB_GLOB@
|
||||||
|
|
||||||
# Directories to build
|
# Directories to build
|
||||||
LIB_DIR = @LIB_DIR@
|
LIB_DIR = @LIB_DIR@
|
||||||
SRC_DIRS = @SRC_DIRS@
|
SRC_DIRS = @SRC_DIRS@
|
||||||
GLU_DIRS = @GLU_DIRS@
|
GLU_DIRS = @GLU_DIRS@
|
||||||
DRIVER_DIRS = @DRIVER_DIRS@
|
DRIVER_DIRS = @DRIVER_DIRS@
|
||||||
|
EGL_DRIVERS_DIRS = @EGL_DRIVERS_DIRS@
|
||||||
|
GBM_BACKEND_DIRS = @GBM_BACKEND_DIRS@
|
||||||
GALLIUM_DIRS = @GALLIUM_DIRS@
|
GALLIUM_DIRS = @GALLIUM_DIRS@
|
||||||
GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@
|
GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@
|
||||||
GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@
|
GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@
|
||||||
@@ -122,6 +121,9 @@ GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drive
|
|||||||
|
|
||||||
# Driver specific build vars
|
# Driver specific build vars
|
||||||
DRI_DIRS = @DRI_DIRS@
|
DRI_DIRS = @DRI_DIRS@
|
||||||
|
DRICORE_GLSL_LIBS = @DRICORE_GLSL_LIBS@
|
||||||
|
DRICORE_LIBS = @DRICORE_LIBS@
|
||||||
|
DRICORE_LIB_DEPS = @DRICORE_LIB_DEPS@
|
||||||
EGL_PLATFORMS = @EGL_PLATFORMS@
|
EGL_PLATFORMS = @EGL_PLATFORMS@
|
||||||
EGL_CLIENT_APIS = @EGL_CLIENT_APIS@
|
EGL_CLIENT_APIS = @EGL_CLIENT_APIS@
|
||||||
|
|
||||||
@@ -145,6 +147,8 @@ GLESv1_CM_LIB_DEPS = $(EXTRA_LIB_PATH) @GLESv1_CM_LIB_DEPS@
|
|||||||
GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH) @GLESv2_LIB_DEPS@
|
GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH) @GLESv2_LIB_DEPS@
|
||||||
VG_LIB_DEPS = $(EXTRA_LIB_PATH) @VG_LIB_DEPS@
|
VG_LIB_DEPS = $(EXTRA_LIB_PATH) @VG_LIB_DEPS@
|
||||||
GLAPI_LIB_DEPS = $(EXTRA_LIB_PATH) @GLAPI_LIB_DEPS@
|
GLAPI_LIB_DEPS = $(EXTRA_LIB_PATH) @GLAPI_LIB_DEPS@
|
||||||
|
WAYLAND_EGL_LIB_DEPS = $(EXTRA_LIB_PATH) @WAYLAND_EGL_LIB_DEPS@
|
||||||
|
GBM_LIB_DEPS = $(EXTRA_LIB_PATH) @GBM_LIB_DEPS@
|
||||||
|
|
||||||
# DRI dependencies
|
# DRI dependencies
|
||||||
MESA_MODULES = @MESA_MODULES@
|
MESA_MODULES = @MESA_MODULES@
|
||||||
@@ -175,9 +179,6 @@ DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@
|
|||||||
# EGL driver install directory
|
# EGL driver install directory
|
||||||
EGL_DRIVER_INSTALL_DIR = @EGL_DRIVER_INSTALL_DIR@
|
EGL_DRIVER_INSTALL_DIR = @EGL_DRIVER_INSTALL_DIR@
|
||||||
|
|
||||||
# XVMC library install directory
|
|
||||||
XVMC_LIB_INSTALL_DIR=@XVMC_LIB_INSTALL_DIR@
|
|
||||||
|
|
||||||
# VDPAU library install directory
|
# VDPAU library install directory
|
||||||
VDPAU_LIB_INSTALL_DIR=@VDPAU_LIB_INSTALL_DIR@
|
VDPAU_LIB_INSTALL_DIR=@VDPAU_LIB_INSTALL_DIR@
|
||||||
|
|
||||||
@@ -187,9 +188,6 @@ VA_LIB_INSTALL_DIR=@VA_LIB_INSTALL_DIR@
|
|||||||
# Xorg driver install directory (for xorg state-tracker)
|
# Xorg driver install directory (for xorg state-tracker)
|
||||||
XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@
|
XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@
|
||||||
|
|
||||||
# Path to OpenCL C library libclc
|
|
||||||
LIBCLC_PATH = @LIBCLC_PATH@
|
|
||||||
|
|
||||||
# pkg-config substitutions
|
# pkg-config substitutions
|
||||||
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
|
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
|
||||||
GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
|
GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
|
||||||
@@ -209,6 +207,12 @@ GLESv2_PC_LIB_PRIV = @GLESv2_PC_LIB_PRIV@
|
|||||||
EGL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
|
EGL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
|
||||||
EGL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
|
EGL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
|
||||||
EGL_PC_CFLAGS = @GL_PC_CFLAGS@
|
EGL_PC_CFLAGS = @GL_PC_CFLAGS@
|
||||||
|
WAYLAND_EGL_PC_REQ_PRIV = @WAYLAND_EGL_PC_REQ_PRIV@
|
||||||
|
WAYLAND_EGL_PC_LIB_PRIV = @WAYLAND_EGL_PC_LIB_PRIV@
|
||||||
|
WAYLAND_EGL_PC_CFLAGS = @WAYLAND_EGL_PC_CFLAGS@
|
||||||
|
GBM_PC_REQ_PRIV = @GBM_PC_REQ_PRIV@
|
||||||
|
GBM_PC_LIB_PRIV = @GBM_PC_LIB_PRIV@
|
||||||
|
GBM_PC_CFLAGS = @GBM_PC_CFLAGS@
|
||||||
|
|
||||||
XCB_DRI2_CFLAGS = @XCB_DRI2_CFLAGS@
|
XCB_DRI2_CFLAGS = @XCB_DRI2_CFLAGS@
|
||||||
XCB_DRI2_LIBS = @XCB_DRI2_LIBS@
|
XCB_DRI2_LIBS = @XCB_DRI2_LIBS@
|
||||||
@@ -220,8 +224,9 @@ WAYLAND_LIBS = @WAYLAND_LIBS@
|
|||||||
MESA_LLVM = @MESA_LLVM@
|
MESA_LLVM = @MESA_LLVM@
|
||||||
|
|
||||||
LLVM_VERSION = @LLVM_VERSION@
|
LLVM_VERSION = @LLVM_VERSION@
|
||||||
|
ifneq ($(LLVM_VERSION),)
|
||||||
|
HAVE_LLVM := 0x0$(subst .,0,$(LLVM_VERSION:svn=))
|
||||||
|
DEFINES += -DHAVE_LLVM=$(HAVE_LLVM)
|
||||||
|
endif
|
||||||
|
|
||||||
HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@
|
HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@
|
||||||
|
|
||||||
GALLIUM_PIPE_LOADER_DEFINES = @GALLIUM_PIPE_LOADER_DEFINES@
|
|
||||||
GALLIUM_PIPE_LOADER_LIBS = @GALLIUM_PIPE_LOADER_LIBS@
|
|
31
configs/bluegene-osmesa
Normal file
31
configs/bluegene-osmesa
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# Configuration for building only libOSMesa on BlueGene, no Xlib driver
|
||||||
|
# This doesn't really have a lot of dependencies, so it should be usable
|
||||||
|
# on other (gcc-based) systems too.
|
||||||
|
# It uses static linking and disables multithreading.
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = bluegene-osmesa
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc
|
||||||
|
CXX = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++
|
||||||
|
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURC
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = mesa glu
|
||||||
|
DRIVER_DIRS = osmesa
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
OSMESA_LIB_DEPS = -lm
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
27
configs/bluegene-xlc-osmesa
Normal file
27
configs/bluegene-xlc-osmesa
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Configuration for building only libOSMesa on BlueGene using the IBM xlc compiler
|
||||||
|
# This doesn't really have a lot of dependencies, so it should be usable
|
||||||
|
# on similar systems too.
|
||||||
|
# It uses static linking and disables multithreading.
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = bluegene-osmesa
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc
|
||||||
|
CXX = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlC
|
||||||
|
CFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
CXXFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = mesa glu
|
||||||
|
DRIVER_DIRS = osmesa
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
OSMESA_LIB_DEPS = -lm
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
30
configs/catamount-osmesa-pgi
Normal file
30
configs/catamount-osmesa-pgi
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Configuration for building only libOSMesa on Cray Xt3
|
||||||
|
# for the compute nodes running Catamount using the
|
||||||
|
# Portland Group compiler. The Portland Group toolchain has to be
|
||||||
|
# enabled before using "module switch PrgEnv-gnu PrgEnv-pgi" .
|
||||||
|
# This doesn't really have a lot of dependencies, so it should be usable
|
||||||
|
# on other similar systems too.
|
||||||
|
# It uses static linking and disables multithreading.
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = catamount-osmesa-pgi
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = CC
|
||||||
|
CFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
CXXFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = mesa glu
|
||||||
|
DRIVER_DIRS = osmesa
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
OSMESA_LIB_DEPS = -lm
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
61
configs/darwin
Normal file
61
configs/darwin
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
# Configuration for Darwin / MacOS X, making dynamic libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = darwin
|
||||||
|
|
||||||
|
INSTALL_DIR = /usr/X11
|
||||||
|
|
||||||
|
X11_DIR = $(INSTALL_DIR)
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = $(shell xcrun -find cc)
|
||||||
|
CXX = $(shell xcrun -find c++)
|
||||||
|
PIC_FLAGS = -fPIC
|
||||||
|
DEFINES = -D_DARWIN_C_SOURCE -DPTHREADS -D_GNU_SOURCE \
|
||||||
|
-DGLX_ALIAS_UNSUPPORTED \
|
||||||
|
-DGLX_DIRECT_RENDERING -DGLX_USE_APPLEGL
|
||||||
|
|
||||||
|
# -DGLX_INDIRECT_RENDERING \
|
||||||
|
|
||||||
|
# -D_GNU_SOURCE - for src/mesa/main ...
|
||||||
|
# -DGLX_DIRECT_RENDERING - pulls in libdrm stuff in glx
|
||||||
|
# -DGLX_USE_APPLEGL - supposed to be used with GLX_DIRECT_RENDERING to use AGL rather than DRM, but doesn't compile
|
||||||
|
# -DIN_DRI_DRIVER
|
||||||
|
|
||||||
|
ARCH_FLAGS += $(RC_CFLAGS)
|
||||||
|
INCLUDE_FLAGS = -I$(INSTALL_DIR)/include -I$(X11_DIR)/include
|
||||||
|
OPT_FLAGS = -g3 -gdwarf-2 -Os -ffast-math -fno-strict-aliasing
|
||||||
|
WARN_FLAGS = -Wall -Wmissing-prototypes
|
||||||
|
|
||||||
|
CFLAGS = -std=c99 -fvisibility=hidden \
|
||||||
|
$(OPT_FLAGS) $(WARN_FLAGS) $(INCLUDE_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) $(EXTRA_CFLAGS)
|
||||||
|
CXXFLAGS = -fvisibility=hidden \
|
||||||
|
$(OPT_FLAGS) $(WARN_FLAGS) $(INCLUDE_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) $(EXTRA_CFLAGS)
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = lib$(GL_LIB).dylib
|
||||||
|
GLU_LIB_NAME = lib$(GLU_LIB).dylib
|
||||||
|
GLW_LIB_NAME = lib$(GLW_LIB).dylib
|
||||||
|
OSMESA_LIB_NAME = lib$(OSMESA_LIB).dylib
|
||||||
|
VG_LIB_NAME = lib$(VG_LIB).dylib
|
||||||
|
|
||||||
|
# globs used to install the lib and all symlinks
|
||||||
|
GL_LIB_GLOB = lib$(GL_LIB).*dylib
|
||||||
|
GLU_LIB_GLOB = lib$(GLU_LIB).*dylib
|
||||||
|
GLW_LIB_GLOB = lib$(GLW_LIB).*dylib
|
||||||
|
OSMESA_LIB_GLOB = lib$(OSMESA_LIB).*dylib
|
||||||
|
VG_LIB_GLOB = lib$(VG_LIB).*dylib
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11-xcb -lxcb -lX11 -lXext $(EXTRA_LDFLAGS)
|
||||||
|
OSMESA_LIB_DEPS = $(EXTRA_LDFLAGS)
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LDFLAGS)
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXt $(EXTRA_LDFLAGS)
|
||||||
|
|
||||||
|
SRC_DIRS = glsl mapi/glapi mapi/vgapi glx/apple mesa gallium glu
|
||||||
|
GLU_DIRS = sgi
|
||||||
|
DRIVER_DIRS = osmesa
|
||||||
|
#DRIVER_DIRS = dri
|
||||||
|
DRI_DIRS = swrast
|
||||||
|
GALLIUM_DRIVERS_DIRS = softpipe trace rbug noop identity galahad
|
||||||
|
#GALLIUM_DRIVERS_DIRS += llvmpipe
|
7
configs/darwin-fat-32bit
Normal file
7
configs/darwin-fat-32bit
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Configuration for Darwin / MacOS X, making 32bit fat dynamic libs
|
||||||
|
|
||||||
|
RC_CFLAGS=-arch ppc -arch i386
|
||||||
|
|
||||||
|
include $(TOP)/configs/darwin
|
||||||
|
|
||||||
|
CONFIG_NAME = darwin-fat-32bit
|
7
configs/darwin-fat-all
Normal file
7
configs/darwin-fat-all
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Configuration for Darwin / MacOS X, making 32bit and 64bit fat dynamic libs
|
||||||
|
|
||||||
|
RC_CFLAGS=-arch ppc -arch i386 -arch ppc64 -arch x86_64
|
||||||
|
|
||||||
|
include $(TOP)/configs/darwin
|
||||||
|
|
||||||
|
CONFIG_NAME = darwin-fat-all
|
7
configs/darwin-fat-intel
Normal file
7
configs/darwin-fat-intel
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Configuration for Darwin / MacOS X, making 32bit and 64bit fat dynamic libs for intel
|
||||||
|
|
||||||
|
RC_CFLAGS=-arch i386 -arch x86_64
|
||||||
|
|
||||||
|
include $(TOP)/configs/darwin
|
||||||
|
|
||||||
|
CONFIG_NAME = darwin-fat-intel
|
@@ -9,8 +9,8 @@ CONFIG_NAME = default
|
|||||||
|
|
||||||
# Version info
|
# Version info
|
||||||
MESA_MAJOR=8
|
MESA_MAJOR=8
|
||||||
MESA_MINOR=1
|
MESA_MINOR=0
|
||||||
MESA_TINY=0
|
MESA_TINY=5
|
||||||
MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
|
MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
|
||||||
|
|
||||||
# external projects. This should be useless now that we use libdrm.
|
# external projects. This should be useless now that we use libdrm.
|
||||||
@@ -19,9 +19,11 @@ DRM_SOURCE_PATH=$(TOP)/../drm
|
|||||||
# Compiler and flags
|
# Compiler and flags
|
||||||
CC = cc
|
CC = cc
|
||||||
CXX = CC
|
CXX = CC
|
||||||
|
HOST_CC = $(CC)
|
||||||
CFLAGS = -O
|
CFLAGS = -O
|
||||||
CXXFLAGS = -O
|
CXXFLAGS = -O
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
|
HOST_CFLAGS = $(CFLAGS)
|
||||||
GLU_CFLAGS =
|
GLU_CFLAGS =
|
||||||
GLX_TLS = no
|
GLX_TLS = no
|
||||||
|
|
||||||
@@ -60,6 +62,8 @@ GLESv1_CM_LIB = GLESv1_CM
|
|||||||
GLESv2_LIB = GLESv2
|
GLESv2_LIB = GLESv2
|
||||||
VG_LIB = OpenVG
|
VG_LIB = OpenVG
|
||||||
GLAPI_LIB = glapi
|
GLAPI_LIB = glapi
|
||||||
|
WAYLAND_EGL_LIB = wayland-egl
|
||||||
|
GBM_LIB = gbm
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = lib$(GL_LIB).so
|
GL_LIB_NAME = lib$(GL_LIB).so
|
||||||
@@ -71,6 +75,8 @@ GLESv1_CM_LIB_NAME = lib$(GLESv1_CM_LIB).so
|
|||||||
GLESv2_LIB_NAME = lib$(GLESv2_LIB).so
|
GLESv2_LIB_NAME = lib$(GLESv2_LIB).so
|
||||||
VG_LIB_NAME = lib$(VG_LIB).so
|
VG_LIB_NAME = lib$(VG_LIB).so
|
||||||
GLAPI_LIB_NAME = lib$(GLAPI_LIB).so
|
GLAPI_LIB_NAME = lib$(GLAPI_LIB).so
|
||||||
|
WAYLAND_EGL_LIB_NAME = lib$(WAYLAND_EGL_LIB).so
|
||||||
|
GBM_LIB_NAME = lib$(GBM_LIB).so
|
||||||
|
|
||||||
# globs used to install the lib and all symlinks
|
# globs used to install the lib and all symlinks
|
||||||
GL_LIB_GLOB = $(GL_LIB_NAME)*
|
GL_LIB_GLOB = $(GL_LIB_NAME)*
|
||||||
@@ -82,9 +88,14 @@ GLESv1_CM_LIB_GLOB = $(GLESv1_CM_LIB_NAME)*
|
|||||||
GLESv2_LIB_GLOB = $(GLESv2_LIB_NAME)*
|
GLESv2_LIB_GLOB = $(GLESv2_LIB_NAME)*
|
||||||
VG_LIB_GLOB = $(VG_LIB_NAME)*
|
VG_LIB_GLOB = $(VG_LIB_NAME)*
|
||||||
GLAPI_LIB_GLOB = $(GLAPI_LIB_NAME)*
|
GLAPI_LIB_GLOB = $(GLAPI_LIB_NAME)*
|
||||||
|
WAYLAND_EGL_LIB_GLOB = $(WAYLAND_EGL_LIB_NAME)*
|
||||||
|
GBM_LIB_GLOB = $(GBM_LIB_NAME)*
|
||||||
|
|
||||||
|
DRI_CFLAGS = $(CFLAGS)
|
||||||
|
DRI_CXXFLAGS = $(CXXFLAGS)
|
||||||
|
|
||||||
# Optional assembly language optimization files for libGL
|
# Optional assembly language optimization files for libGL
|
||||||
MESA_ASM_FILES =
|
MESA_ASM_SOURCES =
|
||||||
|
|
||||||
# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
|
# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
|
||||||
# order to build the Motif widget too)
|
# order to build the Motif widget too)
|
||||||
@@ -99,6 +110,12 @@ SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
|
|||||||
GLU_DIRS = sgi
|
GLU_DIRS = sgi
|
||||||
DRIVER_DIRS = x11 osmesa
|
DRIVER_DIRS = x11 osmesa
|
||||||
|
|
||||||
|
# EGL drivers to build
|
||||||
|
EGL_DRIVERS_DIRS = glx
|
||||||
|
|
||||||
|
# gbm backends to build
|
||||||
|
GBM_BACKEND_DIRS = dri
|
||||||
|
|
||||||
# Gallium directories and
|
# Gallium directories and
|
||||||
GALLIUM_DIRS = auxiliary drivers state_trackers
|
GALLIUM_DIRS = auxiliary drivers state_trackers
|
||||||
GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
|
GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
|
||||||
@@ -123,6 +140,8 @@ GLESv1_CM_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
|||||||
GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
||||||
VG_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
VG_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
||||||
GLAPI_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
GLAPI_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
||||||
|
WAYLAND_EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -lwayland-client -ldrm
|
||||||
|
GBM_LIB_DEPS = $(EXTRA_LIB_PATH) -ludev -ldl
|
||||||
|
|
||||||
# Program dependencies - specific GL libraries added in Makefiles
|
# Program dependencies - specific GL libraries added in Makefiles
|
||||||
X11_LIBS = -lX11
|
X11_LIBS = -lX11
|
||||||
@@ -141,6 +160,9 @@ DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
|||||||
# EGL driver install directory
|
# EGL driver install directory
|
||||||
EGL_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/egl
|
EGL_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/egl
|
||||||
|
|
||||||
|
# gbm backend install directory
|
||||||
|
GBM_BACKEND_INSTALL_DIR = $(INSTALL_LIB_DIR)/gbm
|
||||||
|
|
||||||
# Xorg driver install directory (for xorg state-tracker)
|
# Xorg driver install directory (for xorg state-tracker)
|
||||||
XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
|
XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
|
||||||
|
|
||||||
@@ -167,16 +189,9 @@ GLESv2_PC_CFLAGS =
|
|||||||
VG_PC_REQ_PRIV =
|
VG_PC_REQ_PRIV =
|
||||||
VG_PC_LIB_PRIV =
|
VG_PC_LIB_PRIV =
|
||||||
VG_PC_CFLAGS =
|
VG_PC_CFLAGS =
|
||||||
|
WAYLAND_EGL_PC_REQ_PRIV =
|
||||||
# default targets
|
WAYLAND_EGL_PC_LIB_PRIV =
|
||||||
# this helps reduce the mismatch between our automake Makefiles and the old
|
WAYLAND_EGL_PC_CFLAGS =
|
||||||
# custom Makefiles while we transition.
|
GBM_PC_REQ_PRIV =
|
||||||
|
GBM_PC_LIB_PRIV =
|
||||||
all: default
|
GBM_PC_CFLAGS =
|
||||||
|
|
||||||
am--refresh:
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
|
|
||||||
check:
|
|
||||||
test:
|
|
||||||
|
29
configs/freebsd
Normal file
29
configs/freebsd
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Configuration for FreeBSD
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = FreeBSD
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = c++
|
||||||
|
MAKE = gmake
|
||||||
|
|
||||||
|
OPT_FLAGS = -O2
|
||||||
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \
|
||||||
|
-DHZ=100
|
||||||
|
|
||||||
|
X11_INCLUDES = -I/usr/local/include
|
||||||
|
|
||||||
|
CFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) -ffast-math -pedantic
|
||||||
|
|
||||||
|
CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES)
|
||||||
|
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
EXTRA_LIB_PATH = -L/usr/local/lib
|
51
configs/freebsd-dri
Normal file
51
configs/freebsd-dri
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for freebsd-dri: FreeBSD DRI hardware drivers
|
||||||
|
|
||||||
|
include $(TOP)/configs/freebsd
|
||||||
|
|
||||||
|
CONFIG_NAME = freebsd-dri
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
WARN_FLAGS = -Wall
|
||||||
|
OPT_FLAGS = -O -g
|
||||||
|
|
||||||
|
EXPAT_INCLUDES = -I/usr/local/include
|
||||||
|
X11_INCLUDES = -I/usr/local/include
|
||||||
|
DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
||||||
|
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
||||||
|
-DHAVE_ALIAS
|
||||||
|
|
||||||
|
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 -Wundef -ffast-math \
|
||||||
|
$(ASM_FLAGS) $(X11_INCLUDES) $(DEFINES)
|
||||||
|
|
||||||
|
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES)
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
ASM_SOURCES =
|
||||||
|
MESA_ASM_SOURCES =
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
MESA_MODULES = $(TOP)/src/mesa/libmesa.a
|
||||||
|
|
||||||
|
LIBDRM_CFLAGS = `$(PKG_CONFIG) --cflags libdrm`
|
||||||
|
LIBDRM_LIB = `$(PKG_CONFIG) --libs libdrm`
|
||||||
|
DRI_LIB_DEPS = $(MESA_MODULES) -L/usr/local/lib -lm -pthread -lexpat $(LIBDRM_LIB)
|
||||||
|
GL_LIB_DEPS = -L/usr/local/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
||||||
|
-lm -pthread $(LIBDRM_LIB)
|
||||||
|
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGL -lXt -lX11
|
||||||
|
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = glx gallium mesa glu
|
||||||
|
DRIVER_DIRS = dri
|
||||||
|
|
||||||
|
DRM_SOURCE_PATH=$(TOP)/../drm
|
||||||
|
|
||||||
|
DRI_DIRS = i915 i965 r200 radeon
|
||||||
|
|
10
configs/freebsd-dri-amd64
Normal file
10
configs/freebsd-dri-amd64
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for freebsd-dri-amd64: FreeBSD DRI hardware drivers
|
||||||
|
|
||||||
|
include $(TOP)/configs/freebsd-dri
|
||||||
|
|
||||||
|
CONFIG_NAME = freebsd-dri-x86-64
|
||||||
|
|
||||||
|
ASM_FLAGS = -DUSE_X86_64_ASM
|
||||||
|
MESA_ASM_SOURCES = $(X86-64_SOURCES)
|
||||||
|
GLAPI_ASM_SOURCES = $(X86-64_API)
|
13
configs/freebsd-dri-x86
Normal file
13
configs/freebsd-dri-x86
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for freebsd-dri: FreeBSD DRI hardware drivers
|
||||||
|
|
||||||
|
include $(TOP)/configs/freebsd-dri
|
||||||
|
|
||||||
|
CONFIG_NAME = freebsd-dri-x86
|
||||||
|
|
||||||
|
# Unnecessary on x86, generally.
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
|
MESA_ASM_SOURCES = $(X86_SOURCES)
|
||||||
|
GLAPI_ASM_SOURCES = $(X86_API)
|
13
configs/hpux10
Normal file
13
configs/hpux10
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Configuration for HPUX v10, shared libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux10
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = -O +DAportable +z -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
||||||
|
CXXFLAGS = -O +DAportable +Z -Ae -D_HPUX_SOURCE
|
||||||
|
|
18
configs/hpux10-gcc
Normal file
18
configs/hpux10-gcc
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Configuration for HPUX v10, with gcc
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux10-gcc
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
||||||
|
CXXFLAGS = -ansi -O3 -D_HPUX_SOURCE
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
|
26
configs/hpux10-static
Normal file
26
configs/hpux10-static
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Configuration for HPUX v10, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux10-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = -O +DAportable +z -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
||||||
|
CXXFLAGS = -O +DAportable +Z -Ae -D_HPUX_SOURCE
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies (static libs don't have dependencies)
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
OSMESA_LIB_DEPS =
|
||||||
|
GLU_LIB_DEPS =
|
||||||
|
GLW_LIB_DEPS =
|
27
configs/hpux11-32
Normal file
27
configs/hpux11-32
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Configuration for HPUX v11
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux11-32
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = +z -Ae -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
|
CXXFLAGS = +z -Ae -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
|
MKLIB_OPTIONS =
|
||||||
|
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
GL_LIB_DEPS = -L/usr/lib/X11R6/ -L/usr/contrib/X11R6/lib/ -lXext -lXt -lXi -lX11 -lm -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCsup -lcl
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(GL_LIB_DEPS)
|
25
configs/hpux11-32-static
Normal file
25
configs/hpux11-32-static
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# Configuration for HPUX v11, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux11-32-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
|
CXXFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
|
24
configs/hpux11-32-static-nothreads
Normal file
24
configs/hpux11-32-static-nothreads
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Configuration for HPUX v11, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux11-32-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
||||||
|
|
||||||
|
CXXFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies
|
28
configs/hpux11-64
Normal file
28
configs/hpux11-64
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Configuration for HPUX v11, 64-bit
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux11-64
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = +z -Ae +DD64 -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
|
CXXFLAGS = +z -Ae +DD64 -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
|
MKLIB_OPTIONS =
|
||||||
|
|
||||||
|
LIB_DIR = lib64
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
GL_LIB_DEPS = -L/usr/lib/X11R6/pa20_64 -L/usr/contrib/X11R6/lib/pa20_64 -lXext -lXmu -lXt -lXi -lX11 -lm -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCsup -lcl
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(GL_LIB_DEPS)
|
25
configs/hpux11-64-static
Normal file
25
configs/hpux11-64-static
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# Configuration for HPUX v11, 64-bit, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux11-64-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = -O +DA2.0W -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
|
CXXFLAGS = -O +DA2.0W -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
LIB_DIR = lib64
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies
|
28
configs/hpux11-ia64
Normal file
28
configs/hpux11-ia64
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Configuration for HPUX IA64 v11, 64-bit
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux11-ia64
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = +z -Ae +DD64 -O +DSmckinley -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
|
CXXFLAGS = +z -Ae +DD64 -O +DSmckinley -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
|
MKLIB_OPTIONS =
|
||||||
|
|
||||||
|
LIB_DIR = lib64
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.so
|
||||||
|
GLU_LIB_NAME = libGLU.so
|
||||||
|
GLW_LIB_NAME = libGLw.so
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.so
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
GL_LIB_DEPS = -L/usr/lib/X11R6/ -L/usr/contrib/X11R6/lib/ -lXext -lXmu -lXt -lXi -lX11 -lm -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCsup -lcl
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(GL_LIB_DEPS)
|
25
configs/hpux11-ia64-static
Normal file
25
configs/hpux11-ia64-static
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# Configuration for HPUX v11, 64-bit, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux11-ia64-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = -O +DD64 -Ae -D_HPUX_SOURCE +DSmckinley -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
|
CXXFLAGS = -O +DD64 -Ae -D_HPUX_SOURCE +DSmckinley -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
LIB_DIR = lib64
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies
|
15
configs/hpux9
Normal file
15
configs/hpux9
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Configuration for HPUX v9, shared libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux9
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
# XXX fix this
|
||||||
|
CXX = c++
|
||||||
|
|
||||||
|
CFLAGS = +z -O +Olibcalls +ESlit -Ae +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5 -DUSE_XSHM
|
||||||
|
CXXFLAGS = +z -O +Olibcalls +ESlit -Ae +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5
|
||||||
|
|
||||||
|
|
13
configs/hpux9-gcc
Normal file
13
configs/hpux9-gcc
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Configuration for HPUX v10, shared libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = hpux9-gcc
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = aCC
|
||||||
|
|
||||||
|
CFLAGS = -O +DAportable +z -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
||||||
|
CXXFLAGS = -O +DAportable +Z -Ae -D_HPUX_SOURCE
|
||||||
|
|
16
configs/irix6-64
Normal file
16
configs/irix6-64
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Configuration for IRIX 6.x, make n64 DSOs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = irix6-64
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = CC
|
||||||
|
CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DUSE_XSHM -DPTHREADS
|
||||||
|
CXXFLAGS = -64 -O3 -ansi -woff 1174 -DPTHREADS
|
||||||
|
|
||||||
|
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
|
||||||
|
|
||||||
|
LIB_DIR = lib64
|
||||||
|
|
24
configs/irix6-64-static
Normal file
24
configs/irix6-64-static
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Configuration for IRIX 6.x, make n64 static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = irix6-64-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = CC
|
||||||
|
CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DUSE_XSHM -DPTHREADS
|
||||||
|
CXXFLAGS = -64 -O3 -ansi -woff 1174 -DPTHREADS
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
|
||||||
|
|
||||||
|
LIB_DIR = lib64
|
||||||
|
|
||||||
|
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
|
16
configs/irix6-n32
Normal file
16
configs/irix6-n32
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Configuration for IRIX 6.x, make n32 DSOs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = irix6-n32
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = CC
|
||||||
|
CFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1521,1552 -DUSE_XSHM -DPTHREADS
|
||||||
|
CXXFLAGS = -n32 -mips3 -O3 -ansi -woff 1174,1552 -DPTHREADS
|
||||||
|
|
||||||
|
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
|
||||||
|
|
||||||
|
LIB_DIR = lib32
|
||||||
|
|
23
configs/irix6-n32-static
Normal file
23
configs/irix6-n32-static
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Configuration for IRIX 6.x, make n32 static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = irix6-n32-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = CC
|
||||||
|
CFLAGS = -n32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM -DPTHREADS
|
||||||
|
CXXFLAGS = -n32 -mips2 -O2 -ansi -woff 3262,3666 -DPTHREADS
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
|
||||||
|
|
||||||
|
LIB_DIR = lib32
|
||||||
|
|
||||||
|
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
17
configs/irix6-o32
Normal file
17
configs/irix6-o32
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Configuration for IRIX 6.x, make o32 DSOs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = irix6-o32
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = CC
|
||||||
|
CFLAGS = -32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM
|
||||||
|
CXXFLAGS = -32 -mips2 -O2 -ansi -woff 3262,3666
|
||||||
|
|
||||||
|
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
|
||||||
|
|
||||||
|
LIB_DIR = lib32
|
||||||
|
|
||||||
|
|
23
configs/irix6-o32-static
Normal file
23
configs/irix6-o32-static
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Configuration for IRIX 6.x, make o32 static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = irix6-o32-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = CC
|
||||||
|
CFLAGS = -32 -mips2 -O2 -ansi -woff 1521,1552 -DUSE_XSHM
|
||||||
|
CXXFLAGS = -32 -mips2 -O2 -ansi -woff 3262,3666
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
GLW_SOURCES = GLwDrawA.c GLwMDrawA.c
|
||||||
|
|
||||||
|
LIB_DIR = lib32
|
||||||
|
|
||||||
|
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
37
configs/linux
Normal file
37
configs/linux
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
# Configuration for generic Linux
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
OPT_FLAGS = -O3 -g
|
||||||
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
|
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support. Add -m32
|
||||||
|
# to build properly on 64-bit platforms.
|
||||||
|
|
||||||
|
ARCH_FLAGS ?=
|
||||||
|
|
||||||
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
||||||
|
-DPTHREADS -DUSE_XSHM -DHAVE_POSIX_MEMALIGN
|
||||||
|
|
||||||
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
|
CFLAGS = -Wall -Wmissing-prototypes -Wdeclaration-after-statement \
|
||||||
|
-Wpointer-arith $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
||||||
|
$(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
|
||||||
|
|
||||||
|
CXXFLAGS = -Wall -Wpointer-arith $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
||||||
|
$(DEFINES) $(X11_INCLUDES)
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
|
||||||
|
EXTRA_LIB_PATH = -L/usr/X11R6/lib
|
19
configs/linux-alpha
Normal file
19
configs/linux-alpha
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# Configuration for Linux on Alpha
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-alpha
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE -DUSE_XSHM
|
||||||
|
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
|
||||||
|
|
27
configs/linux-alpha-static
Normal file
27
configs/linux-alpha-static
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Configuration for Linux on Alpha, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-alpha-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE -DUSE_XSHM
|
||||||
|
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
|
9
configs/linux-debug
Normal file
9
configs/linux-debug
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Configuration for debugging on Linux
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-debug
|
||||||
|
|
||||||
|
OPT_FLAGS = -g
|
||||||
|
#CFLAGS += -pedantic
|
||||||
|
DEFINES += -DDEBUG -DDEBUG_MATH
|
75
configs/linux-dri
Normal file
75
configs/linux-dri
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-dri
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
#MKDEP = /usr/X11R6/bin/makedepend
|
||||||
|
#MKDEP = gcc -M
|
||||||
|
#MKDEP_OPTIONS = -MF depend
|
||||||
|
|
||||||
|
OPT_FLAGS = -O2 -g
|
||||||
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
|
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
||||||
|
ARCH_FLAGS ?=
|
||||||
|
|
||||||
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
||||||
|
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
||||||
|
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
||||||
|
-DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
|
||||||
|
|
||||||
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
|
CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
||||||
|
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
|
||||||
|
|
||||||
|
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
MESA_ASM_SOURCES =
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
||||||
|
|
||||||
|
MESA_MODULES = $(TOP)/src/mesa/libmesa.a
|
||||||
|
|
||||||
|
LIBDRM_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm)
|
||||||
|
LIBDRM_LIB = $(shell $(PKG_CONFIG) --libs libdrm)
|
||||||
|
DRI_LIB_DEPS = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
||||||
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
||||||
|
-lm -lpthread -ldl $(LIBDRM_LIB)
|
||||||
|
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS := glx egl $(SRC_DIRS)
|
||||||
|
|
||||||
|
# EGL directories
|
||||||
|
EGL_DRIVERS_DIRS = glx
|
||||||
|
|
||||||
|
DRIVER_DIRS = dri
|
||||||
|
GALLIUM_WINSYS_DIRS = sw sw/xlib drm/vmware drm/intel svga/drm
|
||||||
|
GALLIUM_TARGET_DIRS = dri-vmwgfx
|
||||||
|
GALLIUM_STATE_TRACKERS_DIRS = egl dri
|
||||||
|
|
||||||
|
DRI_DIRS = i915 i965 nouveau r200 radeon swrast
|
||||||
|
|
||||||
|
INTEL_LIBS = $(shell $(PKG_CONFIG) --libs libdrm_intel)
|
||||||
|
INTEL_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm_intel)
|
||||||
|
|
||||||
|
NOUVEAU_LIBS = $(shell $(PKG_CONFIG) --libs libdrm_nouveau)
|
||||||
|
NOUVEAU_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm_nouveau)
|
||||||
|
|
||||||
|
RADEON_LIBS = $(shell $(PKG_CONFIG) --libs libdrm_radeon)
|
||||||
|
RADEON_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm_radeon)
|
||||||
|
RADEON_LDFLAGS = $(LIBDRM_RADEON_LIBS)
|
14
configs/linux-dri-debug
Normal file
14
configs/linux-dri-debug
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for linux-dri-debug: Linux DRI hardware drivers for XFree86 & others
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-dri
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-dri-debug
|
||||||
|
OPT_FLAGS = -O0 -g
|
||||||
|
ARCH_FLAGS = -DDEBUG
|
||||||
|
|
||||||
|
# Helpful to reduce the amount of stuff that gets built sometimes:
|
||||||
|
#DRI_DIRS = i915tex i915
|
||||||
|
#DRI_DIRS = i965
|
||||||
|
#DRI_DIRS = radeon r200
|
||||||
|
|
17
configs/linux-dri-ppc
Normal file
17
configs/linux-dri-ppc
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-dri
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-dri-ppc
|
||||||
|
|
||||||
|
OPT_FLAGS = -Os -mcpu=603
|
||||||
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
|
ASM_FLAGS = -DUSE_PPC_ASM -DUSE_VMX_ASM
|
||||||
|
MESA_ASM_SOURCES = $(PPC_SOURCES)
|
||||||
|
|
||||||
|
# Build only the drivers for cards that exist on PowerPC. At some point MGA
|
||||||
|
# will be added, but not yet.
|
||||||
|
DRI_DIRS = r200 radeon
|
||||||
|
|
13
configs/linux-dri-x86
Normal file
13
configs/linux-dri-x86
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-dri
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-dri-x86
|
||||||
|
|
||||||
|
ARCH_FLAGS = -m32 -mmmx -msse -msse2
|
||||||
|
|
||||||
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
|
MESA_ASM_SOURCES = $(X86_SOURCES)
|
||||||
|
GLAPI_ASM_SOURCES = $(X86_API)
|
||||||
|
|
20
configs/linux-dri-x86-64
Normal file
20
configs/linux-dri-x86-64
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-dri
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-dri-x86-64
|
||||||
|
|
||||||
|
ARCH_FLAGS = -m64
|
||||||
|
|
||||||
|
ASM_FLAGS = -DUSE_X86_64_ASM
|
||||||
|
MESA_ASM_SOURCES = $(X86-64_SOURCES)
|
||||||
|
GLAPI_ASM_SOURCES = $(X86-64_API)
|
||||||
|
|
||||||
|
LIB_DIR = lib64
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
EXTRA_LIB_PATH=-L/usr/X11R6/lib64
|
||||||
|
|
||||||
|
DRI_DIRS = i915 i965 r200 radeon
|
||||||
|
|
55
configs/linux-dri-xcb
Normal file
55
configs/linux-dri-xcb
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-dri-xcb
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
#MKDEP = /usr/X11R6/bin/makedepend
|
||||||
|
#MKDEP = gcc -M
|
||||||
|
#MKDEP_OPTIONS = -MF depend
|
||||||
|
|
||||||
|
OPT_FLAGS = -g
|
||||||
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
|
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
||||||
|
ARCH_FLAGS ?=
|
||||||
|
|
||||||
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
||||||
|
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
||||||
|
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
||||||
|
-DHAVE_ALIAS -DUSE_XCB -DHAVE_POSIX_MEMALIGN
|
||||||
|
|
||||||
|
X11_INCLUDES = $(shell $(PKG_CONFIG) --cflags-only-I x11) $(shell $(PKG_CONFIG) --cflags-only-I xcb) $(shell $(PKG_CONFIG) --cflags-only-I x11-xcb) $(shell $(PKG_CONFIG) --cflags-only-I xcb-glx)
|
||||||
|
|
||||||
|
CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
||||||
|
$(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math
|
||||||
|
|
||||||
|
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
MESA_ASM_SOURCES =
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
EXTRA_LIB_PATH=$(shell $(PKG_CONFIG) --libs-only-L x11)
|
||||||
|
|
||||||
|
MESA_MODULES = $(TOP)/src/mesa/libmesa.a
|
||||||
|
|
||||||
|
LIBDRM_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm)
|
||||||
|
LIBDRM_LIB = $(shell $(PKG_CONFIG) --libs libdrm)
|
||||||
|
DRI_LIB_DEPS = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
||||||
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
|
||||||
|
$(LIBDRM_LIB) $(shell $(PKG_CONFIG) --libs xcb) $(shell $(PKG_CONFIG) --libs x11-xcb) $(shell $(PKG_CONFIG) --libs xcb-glx)
|
||||||
|
|
||||||
|
SRC_DIRS = glx gallium mesa glu
|
||||||
|
|
||||||
|
DRIVER_DIRS = dri
|
||||||
|
DRI_DIRS = i915 r200 radeon
|
58
configs/linux-egl
Normal file
58
configs/linux-egl
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-dri
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
#MKDEP = /usr/X11R6/bin/makedepend
|
||||||
|
#MKDEP = gcc -M
|
||||||
|
#MKDEP_OPTIONS = -MF depend
|
||||||
|
|
||||||
|
OPT_FLAGS = -O -g
|
||||||
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
|
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
||||||
|
ARCH_FLAGS ?=
|
||||||
|
|
||||||
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
||||||
|
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
||||||
|
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
||||||
|
-DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
|
||||||
|
|
||||||
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
|
CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
||||||
|
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
|
||||||
|
|
||||||
|
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
|
|
||||||
|
MESA_ASM_SOURCES =
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
||||||
|
|
||||||
|
MESA_MODULES = $(TOP)/src/mesa/libmesa.a
|
||||||
|
|
||||||
|
LIBDRM_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm)
|
||||||
|
LIBDRM_LIB = $(shell $(PKG_CONFIG) --libs libdrm)
|
||||||
|
DRI_LIB_DEPS = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
||||||
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
||||||
|
-lm -lpthread -ldl \
|
||||||
|
$(LIBDRM_LIB)
|
||||||
|
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = gallium mesa gallium/winsys gallium/targets glu egl
|
||||||
|
|
||||||
|
DRIVER_DIRS = dri
|
||||||
|
GALLIUM_WINSYS_DIRS = egl_drm
|
||||||
|
GALLIUM_TARGET_DIRS =
|
||||||
|
|
||||||
|
DRI_DIRS = intel
|
18
configs/linux-ia64-icc
Normal file
18
configs/linux-ia64-icc
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Configuration for Linux with Intel C compiler
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-icc
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = icc
|
||||||
|
CXX = icpc
|
||||||
|
CFLAGS = -O3 -ansi -KPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include
|
||||||
|
CXXFLAGS = -O3 -ansi -KPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include
|
||||||
|
MKLIB_OPTIONS = -arch icc-istatic
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(GL_LIB_DEPS)
|
||||||
|
|
||||||
|
|
23
configs/linux-ia64-icc-static
Normal file
23
configs/linux-ia64-icc-static
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Configuration for Linux with Intel C compiler, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-icc-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = icc
|
||||||
|
CXX = icpc
|
||||||
|
CFLAGS = -O3 -ansi -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include
|
||||||
|
CXXFLAGS = -O3 -ansi -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include
|
||||||
|
MKLIB_OPTIONS = -static -arch icc-istatic
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
GLU_LIB_DEPS =
|
||||||
|
GLW_LIB_DEPS =
|
||||||
|
|
19
configs/linux-icc
Normal file
19
configs/linux-icc
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# Configuration for Linux with Intel C compiler
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-icc
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = icc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O3 -tpp6 -axK -KPIC -D_GCC_LIMITS_H_ -D__GNUC__ -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include
|
||||||
|
CXXFLAGS = -O3
|
||||||
|
MKLIB_OPTIONS = -arch icc
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
|
|
||||||
|
MESA_ASM_SOURCES = $(X86_SOURCES)
|
||||||
|
GLAPI_ASM_SOURCES = $(X86_API)
|
||||||
|
|
||||||
|
|
23
configs/linux-icc-static
Normal file
23
configs/linux-icc-static
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Configuration for Linux with Intel C compiler, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-icc-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = icc
|
||||||
|
CXX = icpc
|
||||||
|
CFLAGS = -O3 -tpp6 -axK -D_GCC_LIMITS_H_ -D__GNUC__ -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include
|
||||||
|
CXXFLAGS = -O3 -tpp6 -axK -DPTHREADS
|
||||||
|
MKLIB_OPTIONS = -static -arch icc
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
|
||||||
|
MESA_ASM_SOURCES = $(X86_SOURCES)
|
||||||
|
GLAPI_ASM_SOURCES = $(X86_API)
|
52
configs/linux-indirect
Normal file
52
configs/linux-indirect
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for linux-indirect: Builds a libGL capable of indirect
|
||||||
|
# rendering, but *NOT* capable of direct rendering.
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-dri
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
|
#MKDEP = /usr/X11R6/bin/makedepend
|
||||||
|
#MKDEP = gcc -M
|
||||||
|
#MKDEP_OPTIONS = -MF depend
|
||||||
|
|
||||||
|
WARN_FLAGS = -Wall
|
||||||
|
OPT_FLAGS = -O -g
|
||||||
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
|
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
||||||
|
ARCH_FLAGS ?=
|
||||||
|
|
||||||
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
||||||
|
-DGLX_INDIRECT_RENDERING \
|
||||||
|
-DPTHREADS -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
|
||||||
|
|
||||||
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
|
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
||||||
|
$(ASM_FLAGS) -std=c99 -ffast-math
|
||||||
|
|
||||||
|
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
MESA_ASM_SOURCES =
|
||||||
|
|
||||||
|
# Library/program dependencies
|
||||||
|
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
||||||
|
|
||||||
|
MESA_MODULES = $(TOP)/src/mesa/libmesa.a
|
||||||
|
DRI_LIB_DEPS = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl
|
||||||
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl
|
||||||
|
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = glx glu
|
||||||
|
DRIVER_DIRS =
|
47
configs/linux-llvm
Normal file
47
configs/linux-llvm
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for Linux and LLVM with optimizations
|
||||||
|
# Builds the llvmpipe gallium driver
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-llvm
|
||||||
|
|
||||||
|
# Add llvmpipe driver
|
||||||
|
GALLIUM_DRIVERS_DIRS += llvmpipe
|
||||||
|
|
||||||
|
OPT_FLAGS = -O3 -ansi -pedantic
|
||||||
|
ARCH_FLAGS = -mmmx -msse -msse2 -mstackrealign
|
||||||
|
|
||||||
|
DEFINES += -DNDEBUG -DGALLIUM_LLVMPIPE
|
||||||
|
|
||||||
|
# override -std=c99
|
||||||
|
CFLAGS += -std=gnu99
|
||||||
|
|
||||||
|
LLVM_VERSION := $(shell llvm-config --version)
|
||||||
|
|
||||||
|
ifeq ($(LLVM_VERSION),)
|
||||||
|
$(warning Could not find LLVM! Make Sure 'llvm-config' is in the path)
|
||||||
|
MESA_LLVM=0
|
||||||
|
else
|
||||||
|
MESA_LLVM=1
|
||||||
|
HAVE_LLVM := 0x0$(subst .,0,$(LLVM_VERSION:svn=))
|
||||||
|
DEFINES += -DHAVE_LLVM=$(HAVE_LLVM)
|
||||||
|
# $(info Using LLVM version: $(LLVM_VERSION))
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(MESA_LLVM),1)
|
||||||
|
LLVM_CFLAGS=`llvm-config --cppflags|sed 's/-DNDEBUG\>//g'`
|
||||||
|
LLVM_CXXFLAGS=`llvm-config --cxxflags` -Wno-long-long
|
||||||
|
LLVM_LDFLAGS = $(shell llvm-config --ldflags)
|
||||||
|
LLVM_LIBS = $(shell llvm-config --libs)
|
||||||
|
MKLIB_OPTIONS=-cplusplus
|
||||||
|
else
|
||||||
|
LLVM_CFLAGS=
|
||||||
|
LLVM_CXXFLAGS=
|
||||||
|
endif
|
||||||
|
|
||||||
|
LD = g++
|
||||||
|
GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++
|
||||||
|
|
||||||
|
# to allow the NV drivers to compile
|
||||||
|
LIBDRM_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm)
|
12
configs/linux-llvm-debug
Normal file
12
configs/linux-llvm-debug
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# -*-makefile-*-
|
||||||
|
# Configuration for Linux and LLVM with debugging info
|
||||||
|
# Builds the llvmpipe gallium driver
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-llvm
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-llvm-debug
|
||||||
|
|
||||||
|
OPT_FLAGS = -g -ansi -pedantic
|
||||||
|
|
||||||
|
DEFINES += -DDEBUG -UNDEBUG
|
||||||
|
|
28
configs/linux-opengl-es
Normal file
28
configs/linux-opengl-es
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Configuration for OpenGL ES on Linux
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-opengl-es
|
||||||
|
|
||||||
|
# Directories to build
|
||||||
|
LIB_DIR = lib
|
||||||
|
SRC_DIRS = egl glsl mapi/es1api mapi/es2api mesa/es \
|
||||||
|
gallium gallium/winsys gallium/targets
|
||||||
|
|
||||||
|
# egl st needs this
|
||||||
|
DEFINES += -DGLX_DIRECT_RENDERING
|
||||||
|
|
||||||
|
# no mesa or egl drivers
|
||||||
|
DRIVER_DIRS =
|
||||||
|
EGL_DRIVERS_DIRS =
|
||||||
|
|
||||||
|
GALLIUM_DRIVERS_DIRS = softpipe
|
||||||
|
|
||||||
|
# build libGLES*.so
|
||||||
|
GALLIUM_STATE_TRACKERS_DIRS = es
|
||||||
|
|
||||||
|
# build egl_x11_{swrast,i915}.so
|
||||||
|
GALLIUM_DRIVERS_DIRS += trace rbug i915
|
||||||
|
GALLIUM_STATE_TRACKERS_DIRS += egl
|
||||||
|
GALLIUM_WINSYS_DIRS += drm/intel
|
||||||
|
GALLIUM_TARGET_DIRS += egl-swrast egl-i915
|
26
configs/linux-osmesa
Normal file
26
configs/linux-osmesa
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Configuration for building only libOSMesa on Linux, no Xlib driver
|
||||||
|
# This doesn't really have any Linux dependencies, so it should be usable
|
||||||
|
# on other (gcc-based) systems.
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-osmesa
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -g -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS
|
||||||
|
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = mapi/glapi glsl mesa glu
|
||||||
|
DRIVER_DIRS = osmesa
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
OSMESA_LIB_DEPS = -lm -lpthread -ldl
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
32
configs/linux-osmesa-static
Normal file
32
configs/linux-osmesa-static
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# Configuration for building static libOSMesa.a on Linux, no Xlib driver
|
||||||
|
# This doesn't really have any Linux dependencies, so it should be usable
|
||||||
|
# on other (gcc-based) systems.
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-osmesa
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc -m32
|
||||||
|
CXX = g++ -m32
|
||||||
|
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS
|
||||||
|
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = mesa glu
|
||||||
|
DRIVER_DIRS = osmesa
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
OSMESA_LIB_DEPS =
|
||||||
|
GLU_LIB_DEPS =
|
||||||
|
GLW_LIB_DEPS =
|
29
configs/linux-osmesa16
Normal file
29
configs/linux-osmesa16
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Configuration for 16 bits/channel OSMesa library on Linux
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-osmesa16
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
|
||||||
|
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
# Library names
|
||||||
|
OSMESA_LIB = OSMesa16
|
||||||
|
OSMESA_LIB_NAME = libOSMesa16.so
|
||||||
|
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = mapi/glapi glsl mesa glu
|
||||||
|
DRIVER_DIRS = osmesa
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
OSMESA_LIB_DEPS = -lm -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
30
configs/linux-osmesa16-static
Normal file
30
configs/linux-osmesa16-static
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Configuration for 16 bits/channel OSMesa library on Linux
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-osmesa16-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
|
||||||
|
CXXFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
# Library names
|
||||||
|
OSMESA_LIB = OSMesa16
|
||||||
|
OSMESA_LIB_NAME = libOSMesa16.a
|
||||||
|
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = gallium mesa glu
|
||||||
|
DRIVER_DIRS = osmesa
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
OSMESA_LIB_DEPS = -lm -lpthread
|
29
configs/linux-osmesa32
Normal file
29
configs/linux-osmesa32
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Configuration for 32 bits/channel OSMesa library on Linux
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-osmesa32
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=32 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
|
||||||
|
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
# Library names
|
||||||
|
OSMESA_LIB = OSMesa32
|
||||||
|
OSMESA_LIB_NAME = libOSMesa32.so
|
||||||
|
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
SRC_DIRS = mapi/glapi glsl mesa glu
|
||||||
|
DRIVER_DIRS = osmesa
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
OSMESA_LIB_DEPS = -lm -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
9
configs/linux-ppc
Normal file
9
configs/linux-ppc
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Configuration for Linux on PPC
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-ppc
|
||||||
|
|
||||||
|
OPT_FLAGS = -O3 -mcpu=603 -fsigned-char -funroll-loops
|
||||||
|
|
||||||
|
# FIXME: Use of PowerPC assembly should be enabled here.
|
14
configs/linux-ppc-static
Normal file
14
configs/linux-ppc-static
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Configuration for Linux on PPC, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-ppc
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-ppc-static
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
8
configs/linux-profile
Normal file
8
configs/linux-profile
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Configuration for profiling on Linux with gprof
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-static
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-profile
|
||||||
|
|
||||||
|
OPT_FLAGS = -pg -g -O2
|
||||||
|
DEFINES += -DNDEBUG
|
9
configs/linux-sparc
Normal file
9
configs/linux-sparc
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Configuration for Linux on Sparc
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-sparc
|
||||||
|
|
||||||
|
#ASM_FLAGS = -DUSE_SPARC_ASM
|
||||||
|
#MESA_ASM_SOURCES = $(SPARC_SOURCES)
|
||||||
|
#GLAPI_ASM_SOURCES = $(SPARC_API)
|
7
configs/linux-sparc5
Normal file
7
configs/linux-sparc5
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Configuration for Linux on Sparc5
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-sparc
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-sparc5
|
||||||
|
|
||||||
|
ARCH_FLAGS += -mcpu=ultrasparc
|
23
configs/linux-static
Normal file
23
configs/linux-static
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Configuration for generic Linux, making static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-static
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies (static libs don't have dependencies)
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
OSMESA_LIB_DEPS =
|
||||||
|
GLU_LIB_DEPS =
|
||||||
|
GLW_LIB_DEPS =
|
||||||
|
|
||||||
|
# Need to specify all libraries we may need
|
||||||
|
-l$(GL_LIB) -lm -L/usr/X11R6/lib/ -lX11 -lXext -lXmu -lXi -lpthread
|
7
configs/linux-ultrasparc
Normal file
7
configs/linux-ultrasparc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Configuration for Linux on UltraSparc
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-sparc
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-ultrasparc
|
||||||
|
|
||||||
|
ARCH_FLAGS += -mv8 -mtune=ultrasparc
|
11
configs/linux-x86
Normal file
11
configs/linux-x86
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Configuration for Linux with x86 optimizations
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-x86
|
||||||
|
|
||||||
|
ARCH_FLAGS = -m32 -mmmx -msse -msse2
|
||||||
|
|
||||||
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
|
MESA_ASM_SOURCES = $(X86_SOURCES)
|
||||||
|
GLAPI_ASM_SOURCES = $(X86_API)
|
7
configs/linux-x86-32
Normal file
7
configs/linux-x86-32
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# To build Linux x86 32-bit in an x86-64 environment
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-x86
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-x86-32
|
||||||
|
|
||||||
|
ARCH_FLAGS += -m32
|
14
configs/linux-x86-64
Normal file
14
configs/linux-x86-64
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Configuration for Linux for 64-bit X86 (Opteron)
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-x86-64
|
||||||
|
|
||||||
|
ARCH_FLAGS = -m64
|
||||||
|
|
||||||
|
MESA_ASM_SOURCES = $(X86-64_SOURCES)
|
||||||
|
GLAPI_ASM_SOURCES = $(X86-64_API)
|
||||||
|
ASM_FLAGS = -DUSE_X86_64_ASM
|
||||||
|
|
||||||
|
LIB_DIR = lib64
|
||||||
|
EXTRA_LIB_PATH = -L/usr/X11R6/lib64
|
8
configs/linux-x86-64-debug
Normal file
8
configs/linux-x86-64-debug
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Configuration for Linux for 64-bit X86 (Opteron)
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-x86-64
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-x86-64-debug
|
||||||
|
|
||||||
|
OPT_FLAGS = -g
|
||||||
|
DEFINES += -DDEBUG -DDEBUG_MATH
|
8
configs/linux-x86-64-profile
Normal file
8
configs/linux-x86-64-profile
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Configuration for profiling on Linux for 64-bit X86 (Opteron) with gprof
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-x86-64-static
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-x86-64-profile
|
||||||
|
|
||||||
|
OPT_FLAGS = -pg -g -O2
|
||||||
|
DEFINES += -DNDEBUG
|
21
configs/linux-x86-64-static
Normal file
21
configs/linux-x86-64-static
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Configuration for Linux for 64-bit X86 (Opteron), static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-x86-64
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-x86-64-static
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies (static libs don't have dependencies)
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
OSMESA_LIB_DEPS =
|
||||||
|
GLU_LIB_DEPS =
|
||||||
|
GLW_LIB_DEPS =
|
||||||
|
|
9
configs/linux-x86-debug
Normal file
9
configs/linux-x86-debug
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Configuration for Linux with x86 code, but no gcc optimizations and
|
||||||
|
# debugging enabled.
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-x86
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-x86-debug
|
||||||
|
|
||||||
|
OPT_FLAGS = -g
|
||||||
|
DEFINES += -DDEBUG -DDEBUG_MATH
|
8
configs/linux-x86-profile
Normal file
8
configs/linux-x86-profile
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Configuration for profiling on Linux with x86 optimizations with gprof
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-x86-static
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-x86-profile
|
||||||
|
|
||||||
|
OPT_FLAGS = -pg -g -O2
|
||||||
|
DEFINES += -DNDEBUG
|
21
configs/linux-x86-static
Normal file
21
configs/linux-x86-static
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Configuration for Linux with x86 optimizations, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/linux-x86
|
||||||
|
|
||||||
|
CONFIG_NAME = linux-x86-static
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
# Library/program dependencies (static libs don't have dependencies)
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
OSMESA_LIB_DEPS =
|
||||||
|
GLU_LIB_DEPS =
|
||||||
|
GLW_LIB_DEPS =
|
||||||
|
|
15
configs/netbsd
Normal file
15
configs/netbsd
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Configuration for NetBSD
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = netbsd
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O2 -fPIC -DUSE_XSHM -I/usr/X11R6/include -DHZ=100
|
||||||
|
CXXFLAGS = -O2 -fPIC
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
20
configs/openbsd
Normal file
20
configs/openbsd
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Configuration for OpenBSD
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = openbsd
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O2 -fPIC -I/usr/X11R6/include -DUSE_XSHM -DHZ=100
|
||||||
|
CXXFLAGS = -O2 -fPIC -I/usr/X11R6/include -DHZ=100
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm
|
||||||
|
OSMESA_LIB_DEPS = -lm
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||||
|
|
14
configs/osf1
Normal file
14
configs/osf1
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Configuration for OSF/1
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = osf1
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = cxx
|
||||||
|
CFLAGS = -O0 -std1 -ieee_with_no_inexact -DUSE_XSHM -DPTHREADS -D_REENTRANT
|
||||||
|
CXXFLAGS = -O2 -std ansi -ieee -DPTHREADS -D_REENTRANT
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -lX11 -lXext -lm -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
15
configs/osf1-static
Normal file
15
configs/osf1-static
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Configuration for OSF/1
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = osf1
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = cxx
|
||||||
|
CFLAGS = -O2 -std1 -ieee_with_no_inexact -DUSE_XSHM -DPTHREADS -D_REENTRANT
|
||||||
|
CXXFLAGS = -O2 -std ansi -ieee -DPTHREADS -D_REENTRANT
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
GLU_LIB_DEPS =
|
16
configs/solaris-x86
Normal file
16
configs/solaris-x86
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Configuration for Solaris on x86
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = solaris-x86
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CFLAGS = -Xa -xO3 -xpentium -KPIC -I/usr/openwin/include -DUSE_XSHM
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
18
configs/solaris-x86-gcc
Normal file
18
configs/solaris-x86-gcc
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Configuration for Solaris on x86 with gcc, dynamic libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = solaris-x86-gcc
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O3 -march=i486 -fPIC -I/usr/openwin/include -DUSE_XSHM
|
||||||
|
CXXFLAGS = -O3 -march=i486 -fPIC
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
24
configs/solaris-x86-gcc-static
Normal file
24
configs/solaris-x86-gcc-static
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Configuration for Solaris on x86 with gcc, static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = solaris-x86-gcc
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -O3 -march=i486 -fPIC -I/usr/openwin/include -DUSE_XSHM
|
||||||
|
CXXFLAGS = -O3 -march=i486 -fPIC
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
|
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
11
configs/sunos4
Normal file
11
configs/sunos4
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Configuration for SunOS 4, shared libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = sunos4
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = acc
|
||||||
|
CFLAGS = -Kpic -O -I/usr/include/X11R5 -DUSE_XSHM -DSUNOS4
|
||||||
|
|
||||||
|
|
17
configs/sunos4-gcc
Normal file
17
configs/sunos4-gcc
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Configuration for SunOS 4, with gcc, shared libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = sunos4-gcc
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -fPIC -O3 -I/usr/openwin/include -I/usr/include/X11R5 -I/usr/include/X11R5 -DUSE_XSHM -DSUNOS4
|
||||||
|
CXXFLAGS = -fPIC -O3 -I/usr/openwin/include -DSUNOS4
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user