Compare commits
116 Commits
mesa-7.0.1
...
mesa_7_0_2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a40b670c3 | ||
|
|
d9fa5cbfc9 | ||
|
|
1c21564292 | ||
|
|
6cc96bf156 | ||
|
|
29afd4bbc4 | ||
|
|
4e3db063ec | ||
|
|
6560744c38 | ||
|
|
572ad87881 | ||
|
|
2ab75d6cfa | ||
|
|
041a8eb5ec | ||
|
|
c1c13bdcfa | ||
|
|
403edd34dd | ||
|
|
f279e48416 | ||
|
|
bf854d8d27 | ||
|
|
f334121679 | ||
|
|
b88e2be609 | ||
|
|
08229c8bb8 | ||
|
|
c984017f71 | ||
|
|
00e7dd8a13 | ||
|
|
d11b375b16 | ||
|
|
d1afa8146f | ||
|
|
31d4ba8a93 | ||
|
|
1a7640958c | ||
|
|
2e2a5a450b | ||
|
|
574fd63ff0 | ||
|
|
1063d47526 | ||
|
|
b59a892d3e | ||
|
|
6e5d5d77df | ||
|
|
a6319d18cf | ||
|
|
5103e883fd | ||
|
|
98c4ea4b24 | ||
|
|
29b8cac7d7 | ||
|
|
cdb02d43fe | ||
|
|
50cecddc4a | ||
|
|
177f6398e5 | ||
|
|
887bd6a46f | ||
|
|
9af5153410 | ||
|
|
0e2103689e | ||
|
|
2c496d8e46 | ||
|
|
8f0ba02e44 | ||
|
|
524c56e417 | ||
|
|
773f3a266c | ||
|
|
882ada0d22 | ||
|
|
6229005f93 | ||
|
|
6c63b35ef7 | ||
|
|
fb85e50e09 | ||
|
|
5e5f908d0c | ||
|
|
c09e2143c7 | ||
|
|
74ced1e67f | ||
|
|
dd02c1609e | ||
|
|
cdf4880a79 | ||
|
|
2ec8e8547d | ||
|
|
b7c36d1d33 | ||
|
|
970d18a708 | ||
|
|
9456e7f0ff | ||
|
|
a5db24adc2 | ||
|
|
17664e2620 | ||
|
|
43a0eb0253 | ||
|
|
bcdaed2c0a | ||
|
|
78c6637db5 | ||
|
|
44214a98fd | ||
|
|
9cc6d2310c | ||
|
|
1a045954be | ||
|
|
b3fc9a1585 | ||
|
|
2a86a449ca | ||
|
|
44f032db61 | ||
|
|
5a520729ee | ||
|
|
36fbe78c60 | ||
|
|
029bb17770 | ||
|
|
7958bee6be | ||
|
|
0b9bb21ce4 | ||
|
|
cfcc5b794e | ||
|
|
925ff408a6 | ||
|
|
f40ca444f5 | ||
|
|
638a5e0382 | ||
|
|
6d777bf055 | ||
|
|
ae6d4e8bc0 | ||
|
|
f2728724d3 | ||
|
|
bc95b34cce | ||
|
|
9eb89616af | ||
|
|
f7713a6d81 | ||
|
|
1cec9b727a | ||
|
|
18a4730f5b | ||
|
|
1342aefcdd | ||
|
|
1fd4b1e702 | ||
|
|
32dff44c28 | ||
|
|
e7c2ae476a | ||
|
|
a66301f83d | ||
|
|
a5f7d56221 | ||
|
|
140080c1ec | ||
|
|
ef43af6d43 | ||
|
|
949d0532f0 | ||
|
|
96efc76d74 | ||
|
|
6ca0d63692 | ||
|
|
95fc2485e2 | ||
|
|
d6ce1e4834 | ||
|
|
2cc2b12fc7 | ||
|
|
2259f81cf7 | ||
|
|
791f12880f | ||
|
|
7aa7373a64 | ||
|
|
2f186a190f | ||
|
|
357893a873 | ||
|
|
a17881da5f | ||
|
|
4872ee83a9 | ||
|
|
5ec222a832 | ||
|
|
40438b3440 | ||
|
|
e0b80660c8 | ||
|
|
a2016301f5 | ||
|
|
7ec6729fb6 | ||
|
|
837a2cf72e | ||
|
|
0adca14536 | ||
|
|
57b0f66c6d | ||
|
|
e47e7a9571 | ||
|
|
68ca01560f | ||
|
|
64f1c91fcb | ||
|
|
7d33f94198 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@
|
|||||||
*.o
|
*.o
|
||||||
*.so
|
*.so
|
||||||
*.sw[a-z]
|
*.sw[a-z]
|
||||||
|
*.pc
|
||||||
*~
|
*~
|
||||||
depend
|
depend
|
||||||
depend.bak
|
depend.bak
|
||||||
|
|||||||
17
Makefile
17
Makefile
@@ -68,6 +68,8 @@ aix-gcc \
|
|||||||
aix-static \
|
aix-static \
|
||||||
beos \
|
beos \
|
||||||
bluegene-osmesa \
|
bluegene-osmesa \
|
||||||
|
bluegene-xlc-osmesa \
|
||||||
|
catamount-osmesa-pgi \
|
||||||
darwin \
|
darwin \
|
||||||
darwin-static \
|
darwin-static \
|
||||||
darwin-static-x86ppc \
|
darwin-static-x86ppc \
|
||||||
@@ -164,10 +166,10 @@ ultrix-gcc:
|
|||||||
|
|
||||||
# Rules for making release tarballs
|
# Rules for making release tarballs
|
||||||
|
|
||||||
DIRECTORY = Mesa-7.0.1
|
DIRECTORY = Mesa-7.0.2
|
||||||
LIB_NAME = MesaLib-7.0.1
|
LIB_NAME = MesaLib-7.0.2
|
||||||
DEMO_NAME = MesaDemos-7.0.1
|
DEMO_NAME = MesaDemos-7.0.2
|
||||||
GLUT_NAME = MesaGLUT-7.0.1
|
GLUT_NAME = MesaGLUT-7.0.2
|
||||||
|
|
||||||
MAIN_FILES = \
|
MAIN_FILES = \
|
||||||
$(DIRECTORY)/Makefile* \
|
$(DIRECTORY)/Makefile* \
|
||||||
@@ -211,6 +213,7 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/src/mesa/Makefile* \
|
$(DIRECTORY)/src/mesa/Makefile* \
|
||||||
$(DIRECTORY)/src/mesa/sources \
|
$(DIRECTORY)/src/mesa/sources \
|
||||||
$(DIRECTORY)/src/mesa/descrip.mms \
|
$(DIRECTORY)/src/mesa/descrip.mms \
|
||||||
|
$(DIRECTORY)/src/mesa/gl.pc.in \
|
||||||
$(DIRECTORY)/src/mesa/depend \
|
$(DIRECTORY)/src/mesa/depend \
|
||||||
$(DIRECTORY)/src/mesa/main/*.[chS] \
|
$(DIRECTORY)/src/mesa/main/*.[chS] \
|
||||||
$(DIRECTORY)/src/mesa/main/descrip.mms \
|
$(DIRECTORY)/src/mesa/main/descrip.mms \
|
||||||
@@ -318,6 +321,7 @@ DRI_FILES = \
|
|||||||
SGI_GLU_FILES = \
|
SGI_GLU_FILES = \
|
||||||
$(DIRECTORY)/src/glu/Makefile \
|
$(DIRECTORY)/src/glu/Makefile \
|
||||||
$(DIRECTORY)/src/glu/descrip.mms \
|
$(DIRECTORY)/src/glu/descrip.mms \
|
||||||
|
$(DIRECTORY)/src/glu/glu.pc.in \
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile \
|
$(DIRECTORY)/src/glu/sgi/Makefile \
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile.mgw \
|
$(DIRECTORY)/src/glu/sgi/Makefile.mgw \
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile.win \
|
$(DIRECTORY)/src/glu/sgi/Makefile.win \
|
||||||
@@ -394,6 +398,7 @@ GLUT_FILES = \
|
|||||||
$(DIRECTORY)/include/GL/glutf90.h \
|
$(DIRECTORY)/include/GL/glutf90.h \
|
||||||
$(DIRECTORY)/src/glut/glx/Makefile* \
|
$(DIRECTORY)/src/glut/glx/Makefile* \
|
||||||
$(DIRECTORY)/src/glut/glx/depend \
|
$(DIRECTORY)/src/glut/glx/depend \
|
||||||
|
$(DIRECTORY)/src/glut/glx/glut.pc.in \
|
||||||
$(DIRECTORY)/src/glut/glx/*def \
|
$(DIRECTORY)/src/glut/glx/*def \
|
||||||
$(DIRECTORY)/src/glut/glx/descrip.mms \
|
$(DIRECTORY)/src/glut/glx/descrip.mms \
|
||||||
$(DIRECTORY)/src/glut/glx/mms_depend \
|
$(DIRECTORY)/src/glut/glx/mms_depend \
|
||||||
@@ -409,6 +414,9 @@ GLUT_FILES = \
|
|||||||
$(DIRECTORY)/src/glut/fbdev/Makefile \
|
$(DIRECTORY)/src/glut/fbdev/Makefile \
|
||||||
$(DIRECTORY)/src/glut/fbdev/*[ch] \
|
$(DIRECTORY)/src/glut/fbdev/*[ch] \
|
||||||
$(DIRECTORY)/src/glut/mini/*[ch] \
|
$(DIRECTORY)/src/glut/mini/*[ch] \
|
||||||
|
$(DIRECTORY)/src/glut/directfb/Makefile \
|
||||||
|
$(DIRECTORY)/src/glut/directfb/NOTES \
|
||||||
|
$(DIRECTORY)/src/glut/directfb/*[ch] \
|
||||||
$(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
|
$(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
|
||||||
$(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
|
$(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
|
||||||
|
|
||||||
@@ -416,6 +424,7 @@ DEPEND_FILES = \
|
|||||||
$(TOP)/src/mesa/depend \
|
$(TOP)/src/mesa/depend \
|
||||||
$(TOP)/src/glx/x11/depend \
|
$(TOP)/src/glx/x11/depend \
|
||||||
$(TOP)/src/glw/depend \
|
$(TOP)/src/glw/depend \
|
||||||
|
$(TOP)/src/glw/glw.pc.in \
|
||||||
$(TOP)/src/glut/glx/depend \
|
$(TOP)/src/glut/glx/depend \
|
||||||
$(TOP)/src/glu/sgi/depend
|
$(TOP)/src/glu/sgi/depend
|
||||||
|
|
||||||
|
|||||||
30
bin/mklib
30
bin/mklib
@@ -34,6 +34,7 @@ MINOR=0
|
|||||||
PATCH=""
|
PATCH=""
|
||||||
DEPS=""
|
DEPS=""
|
||||||
LINK=""
|
LINK=""
|
||||||
|
LDFLAGS=""
|
||||||
CPLUSPLUS=0
|
CPLUSPLUS=0
|
||||||
STATIC=0
|
STATIC=0
|
||||||
DLOPEN=0
|
DLOPEN=0
|
||||||
@@ -63,6 +64,7 @@ do
|
|||||||
echo ' -LDIR search in DIR for library dependencies'
|
echo ' -LDIR search in DIR for library dependencies'
|
||||||
echo ' -linker L explicity specify the linker program to use (eg: gcc, g++)'
|
echo ' -linker L explicity specify the linker program to use (eg: gcc, g++)'
|
||||||
echo ' Not observed on all systems at this time.'
|
echo ' Not observed on all systems at this time.'
|
||||||
|
echo ' -ldflags OPT specify any additional linker flags in OPT'
|
||||||
echo ' -cplusplus link with C++ runtime'
|
echo ' -cplusplus link with C++ runtime'
|
||||||
echo ' -static make a static library (default is dynamic/shared)'
|
echo ' -static make a static library (default is dynamic/shared)'
|
||||||
echo ' -dlopen make a shared library suitable for dynamic loading'
|
echo ' -dlopen make a shared library suitable for dynamic loading'
|
||||||
@@ -94,6 +96,10 @@ do
|
|||||||
shift 1;
|
shift 1;
|
||||||
LINK=$1
|
LINK=$1
|
||||||
;;
|
;;
|
||||||
|
'-ldflags')
|
||||||
|
shift 1;
|
||||||
|
LDFLAGS=$1
|
||||||
|
;;
|
||||||
-l*)
|
-l*)
|
||||||
DEPS="$DEPS $1"
|
DEPS="$DEPS $1"
|
||||||
;;
|
;;
|
||||||
@@ -216,7 +222,7 @@ case $ARCH in
|
|||||||
|
|
||||||
rm -f ${LIBNAME}
|
rm -f ${LIBNAME}
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
# finish up
|
# finish up
|
||||||
FINAL_LIBS="${LIBNAME}"
|
FINAL_LIBS="${LIBNAME}"
|
||||||
elif [ $STATIC = 1 ] ; then
|
elif [ $STATIC = 1 ] ; then
|
||||||
@@ -274,7 +280,7 @@ case $ARCH in
|
|||||||
rm -f ${LIBNAME}.so
|
rm -f ${LIBNAME}.so
|
||||||
|
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
|
||||||
# make usual symlinks
|
# make usual symlinks
|
||||||
ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
|
ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
|
||||||
ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
|
ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
|
||||||
@@ -346,10 +352,10 @@ case $ARCH in
|
|||||||
#echo "mklib: linker is" ${LINK} ${OPTS}
|
#echo "mklib: linker is" ${LINK} ${OPTS}
|
||||||
if [ $NOPREFIX = 1 ] ; then
|
if [ $NOPREFIX = 1 ] ; then
|
||||||
rm -f ${LIBNAME}
|
rm -f ${LIBNAME}
|
||||||
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
else
|
else
|
||||||
rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
|
rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
|
||||||
${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
|
||||||
ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
|
ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
|
||||||
fi
|
fi
|
||||||
FINAL_LIBS="${LIBNAME}.${MAJOR} ${LIBNAME}"
|
FINAL_LIBS="${LIBNAME}.${MAJOR} ${LIBNAME}"
|
||||||
@@ -373,7 +379,7 @@ case $ARCH in
|
|||||||
echo "mklib: Making FreeBSD shared library: " ${LIBNAME}
|
echo "mklib: Making FreeBSD shared library: " ${LIBNAME}
|
||||||
OPTS="-shared"
|
OPTS="-shared"
|
||||||
rm -f ${LIBNAME}
|
rm -f ${LIBNAME}
|
||||||
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
FINAL_LIBS=${LIBNAME}
|
FINAL_LIBS=${LIBNAME}
|
||||||
elif [ $STATIC = 1 ] ; then
|
elif [ $STATIC = 1 ] ; then
|
||||||
STLIB="lib${LIBNAME}.a"
|
STLIB="lib${LIBNAME}.a"
|
||||||
@@ -387,7 +393,7 @@ case $ARCH in
|
|||||||
OPTS="-shared -Wl,-soname,${SHLIB}"
|
OPTS="-shared -Wl,-soname,${SHLIB}"
|
||||||
echo "mklib: Making FreeBSD shared library: " ${SHLIB}
|
echo "mklib: Making FreeBSD shared library: " ${SHLIB}
|
||||||
rm -f ${SHLIB}
|
rm -f ${SHLIB}
|
||||||
${LINK} ${OPTS} -o ${SHLIB} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${SHLIB} ${OBJECTS} ${DEPS}
|
||||||
ln -sf ${SHLIB} "lib${LIBNAME}.so"
|
ln -sf ${SHLIB} "lib${LIBNAME}.so"
|
||||||
FINAL_LIBS="${SHLIB} lib${LIBNAME}.so"
|
FINAL_LIBS="${SHLIB} lib${LIBNAME}.so"
|
||||||
fi
|
fi
|
||||||
@@ -445,7 +451,7 @@ case $ARCH in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "mklib: Making IRIX " ${ABI} " shared library: " ${LIBNAME}
|
echo "mklib: Making IRIX " ${ABI} " shared library: " ${LIBNAME}
|
||||||
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
FINAL_LIBS=${LIBNAME}
|
FINAL_LIBS=${LIBNAME}
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@@ -521,9 +527,9 @@ case $ARCH in
|
|||||||
# On AIX a shared library is linked differently when
|
# On AIX a shared library is linked differently when
|
||||||
# you want to dlopen the file
|
# you want to dlopen the file
|
||||||
if [ $DLOPEN = "1" ] ; then
|
if [ $DLOPEN = "1" ] ; then
|
||||||
cc -G ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
cc -G ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
else
|
else
|
||||||
cc ${OPTS} -o ${OFILE} ${OBJECTS} ${DEPS}
|
cc ${OPTS} ${LDFLAGS} -o ${OFILE} ${OBJECTS} ${DEPS}
|
||||||
ar ${X64} -r ${LIBNAME} ${OFILE}
|
ar ${X64} -r ${LIBNAME} ${OFILE}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -605,7 +611,7 @@ case $ARCH in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "mklib: Making Darwin shared library: " ${LIBNAME}
|
echo "mklib: Making Darwin shared library: " ${LIBNAME}
|
||||||
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
ln -s ${LIBNAME} ${LINKNAME}
|
ln -s ${LIBNAME} ${LINKNAME}
|
||||||
FINAL_LIBS="${LIBNAME} ${LINKNAME}"
|
FINAL_LIBS="${LIBNAME} ${LINKNAME}"
|
||||||
fi
|
fi
|
||||||
@@ -682,7 +688,7 @@ case $ARCH in
|
|||||||
rm -f ${LIBNAME}.so.${MAJOR}
|
rm -f ${LIBNAME}.so.${MAJOR}
|
||||||
rm -f ${LIBNAME}.so
|
rm -f ${LIBNAME}.so
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
|
||||||
# make usual symlinks
|
# make usual symlinks
|
||||||
ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
|
ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
|
||||||
ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
|
ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
|
||||||
@@ -754,7 +760,7 @@ case $ARCH in
|
|||||||
rm -f ${LIBNAME}.a
|
rm -f ${LIBNAME}.a
|
||||||
|
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} ${LDFLAGS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS}
|
||||||
# make usual symlinks
|
# make usual symlinks
|
||||||
ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
|
ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
|
||||||
# finish up
|
# finish up
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ CXX = g++
|
|||||||
CFLAGS = -O2 -DAIXV3
|
CFLAGS = -O2 -DAIXV3
|
||||||
CXXFLAGS = -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
|
MKLIB_OPTIONS = -arch aix-gcc
|
||||||
GL_LIB_DEPS = -lX11 -lXext -lm
|
GL_LIB_DEPS = -lX11 -lXext -lm
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
|
|||||||
@@ -39,6 +39,10 @@ ifeq ($(CPU), x86)
|
|||||||
|
|
||||||
CXXFLAGS = $(CFLAGS)
|
CXXFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
LDFLAGS += -Xlinker
|
LDFLAGS += -Xlinker
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ 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
|
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
|
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
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
OSMESA_LIB_NAME = libOSMesa.a
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|||||||
29
configs/bluegene-xlc-osmesa
Normal file
29
configs/bluegene-xlc-osmesa
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# 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
|
||||||
|
PROGRAM_DIRS = osdemos
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
OSMESA_LIB_DEPS = -lm
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
||||||
|
APP_LIB_DEPS = -lOSMesa -lGLU -lm
|
||||||
32
configs/catamount-osmesa-pgi
Normal file
32
configs/catamount-osmesa-pgi
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# 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
|
||||||
|
PROGRAM_DIRS = osdemos
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
OSMESA_LIB_DEPS = -lm
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
||||||
|
APP_LIB_DEPS = -lOSMesa -lGLU -lm
|
||||||
@@ -10,6 +10,10 @@ CXX = cc
|
|||||||
CFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
CFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
CXXFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
CXXFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.dylib
|
GL_LIB_NAME = libGL.dylib
|
||||||
GLU_LIB_NAME = libGLU.dylib
|
GLU_LIB_NAME = libGLU.dylib
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ CFLAGS = -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpen
|
|||||||
CXXFLAGS = -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
CXXFLAGS = -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
GLU_LIB_NAME = libGLU.a
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
|
|||||||
-I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
-I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
MKLIB_OPTIONS = -static -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
|
MKLIB_OPTIONS = -static -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
GLU_LIB_NAME = libGLU.a
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
|
|||||||
|
|
||||||
MKLIB_OPTIONS = -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
|
MKLIB_OPTIONS = -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.dylib
|
GL_LIB_NAME = libGL.dylib
|
||||||
GLU_LIB_NAME = libGLU.dylib
|
GLU_LIB_NAME = libGLU.dylib
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ CONFIG_NAME = default
|
|||||||
# Version info
|
# Version info
|
||||||
MESA_MAJOR=7
|
MESA_MAJOR=7
|
||||||
MESA_MINOR=0
|
MESA_MINOR=0
|
||||||
MESA_TINY=1
|
MESA_TINY=2
|
||||||
|
|
||||||
# external projects. This should be useless now that we use libdrm.
|
# external projects. This should be useless now that we use libdrm.
|
||||||
DRM_SOURCE_PATH=$(TOP)/../drm
|
DRM_SOURCE_PATH=$(TOP)/../drm
|
||||||
@@ -20,6 +20,7 @@ CC = cc
|
|||||||
CXX = CC
|
CXX = CC
|
||||||
CFLAGS = -O
|
CFLAGS = -O
|
||||||
CXXFLAGS = -O
|
CXXFLAGS = -O
|
||||||
|
LDFLAGS =
|
||||||
GLU_CFLAGS =
|
GLU_CFLAGS =
|
||||||
|
|
||||||
# Misc tools and flags
|
# Misc tools and flags
|
||||||
@@ -66,14 +67,16 @@ DRIVER_DIRS = x11 osmesa
|
|||||||
PROGRAM_DIRS = demos redbook samples glsl xdemos
|
PROGRAM_DIRS = demos redbook samples glsl xdemos
|
||||||
|
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library dependencies
|
||||||
#EXTRA_LIB_PATH ?=
|
#EXTRA_LIB_PATH ?=
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
|
||||||
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
|
||||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
|
||||||
|
# Program dependencies - specific GL/glut libraries added in Makefiles
|
||||||
|
APP_LIB_DEPS = -lm
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,5 +23,9 @@ CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES)
|
|||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
EXTRA_LIB_PATH = -L/usr/X11R6/lib
|
EXTRA_LIB_PATH = -L/usr/X11R6/lib
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 -
|
|||||||
|
|
||||||
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES)
|
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 =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
|
|||||||
@@ -12,5 +12,9 @@ CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/incl
|
|||||||
CXXFLAGS = -ansi -O3 -D_HPUX_SOURCE
|
CXXFLAGS = -ansi -O3 -D_HPUX_SOURCE
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
|||||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
||||||
$(X11_INCLUDES)
|
$(X11_INCLUDES)
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
EXTRA_LIB_PATH = -L/usr/X11R6/lib
|
EXTRA_LIB_PATH = -L/usr/X11R6/lib
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE -DUSE_XSHM
|
|||||||
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE
|
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
# 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
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE -DUSE_XSHM
|
|||||||
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE
|
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
MKLIB_OPTIONS = -static
|
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)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ CFLAGS = -Wall -O3 -ffast-math -fPIC -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -D
|
|||||||
|
|
||||||
CXXFLAGS = -Wall -O3 -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
CXXFLAGS = -Wall -O3 -fPIC -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
|
||||||
|
|
||||||
HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
|
HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
|
||||||
ifeq ($(HAVE_X86), yes)
|
ifeq ($(HAVE_X86), yes)
|
||||||
CFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
CFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
|
|||||||
@@ -32,6 +32,11 @@ CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
|||||||
|
|
||||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
@@ -55,10 +60,10 @@ USING_EGL=0
|
|||||||
# Directories
|
# Directories
|
||||||
ifeq ($(USING_EGL), 1)
|
ifeq ($(USING_EGL), 1)
|
||||||
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS = egl
|
PROGRAM_DIRS = egl xdemos
|
||||||
else
|
else
|
||||||
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS =
|
PROGRAM_DIRS = xdemos
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DRIVER_DIRS = dri
|
DRIVER_DIRS = dri
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ include $(TOP)/configs/linux-dri
|
|||||||
|
|
||||||
CONFIG_NAME = linux-dri-x86
|
CONFIG_NAME = linux-dri-x86
|
||||||
|
|
||||||
# Unnecessary on x86, generally.
|
|
||||||
PIC_FLAGS =
|
|
||||||
|
|
||||||
# Add -m32 to CFLAGS:
|
# Add -m32 to CFLAGS:
|
||||||
ARCH_FLAGS = -m32
|
ARCH_FLAGS = -m32
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
|||||||
|
|
||||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
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
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
@@ -41,8 +44,9 @@ EXTRA_LIB_PATH=`pkg-config --libs-only-L x11`
|
|||||||
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
||||||
LIBDRM_LIB = `pkg-config --libs libdrm`
|
LIBDRM_LIB = `pkg-config --libs libdrm`
|
||||||
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
||||||
$(LIBDRM_LIB) `pkg-config --libs xcb` `pkg-config --libs x11-xcb` `pkg-config --libs xcb-glx`
|
-lm -lpthread -ldl $(LIBDRM_LIB) `pkg-config --libs xcb` \
|
||||||
|
`pkg-config --libs x11-xcb` `pkg-config --libs xcb-glx`
|
||||||
|
|
||||||
|
|
||||||
# This is now 0 by default since it seems to confuse the hell out of people
|
# This is now 0 by default since it seems to confuse the hell out of people
|
||||||
@@ -54,10 +58,10 @@ USING_EGL=0
|
|||||||
# Directories
|
# Directories
|
||||||
ifeq ($(USING_EGL), 1)
|
ifeq ($(USING_EGL), 1)
|
||||||
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS = egl
|
PROGRAM_DIRS = egl xdemos
|
||||||
else
|
else
|
||||||
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS =
|
PROGRAM_DIRS = xdemos
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DRIVER_DIRS = dri
|
DRIVER_DIRS = dri
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ CONFIG_NAME = linux-fbdev
|
|||||||
|
|
||||||
CFLAGS = -O3 -ffast-math -ansi -pedantic -fPIC -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS -DUSE_GLFBDEV_DRIVER
|
CFLAGS = -O3 -ffast-math -ansi -pedantic -fPIC -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS -DUSE_GLFBDEV_DRIVER
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
SRC_DIRS = mesa glu glut/fbdev
|
SRC_DIRS = mesa glu glut/fbdev
|
||||||
DRIVER_DIRS = fbdev osmesa
|
DRIVER_DIRS = fbdev osmesa
|
||||||
PROGRAM_DIRS = fbdev demos redbook samples
|
PROGRAM_DIRS = fbdev demos redbook samples
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE
|
|||||||
CXXFLAGS = -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_SOURCE
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
|||||||
|
|
||||||
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
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
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ CXX = g++
|
|||||||
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS
|
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
|
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
|
# Directories
|
||||||
SRC_DIRS = mesa glu
|
SRC_DIRS = mesa glu
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ 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
|
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
|
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
|
# Library names
|
||||||
OSMESA_LIB = OSMesa16
|
OSMESA_LIB = OSMesa16
|
||||||
|
|||||||
@@ -10,7 +10,11 @@ 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
|
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
|
CXXFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
# Library names
|
# Library names
|
||||||
OSMESA_LIB = OSMesa16
|
OSMESA_LIB = OSMesa16
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ 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
|
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
|
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
|
# Library names
|
||||||
OSMESA_LIB = OSMesa32
|
OSMESA_LIB = OSMesa32
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ include $(TOP)/configs/linux-ppc
|
|||||||
CONFIG_NAME = linux-ppc-static
|
CONFIG_NAME = linux-ppc-static
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
|||||||
|
|
||||||
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
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
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ include $(TOP)/configs/linux-solo
|
|||||||
|
|
||||||
CONFIG_NAME = linux-solo-x86
|
CONFIG_NAME = linux-solo-x86
|
||||||
|
|
||||||
# Unnecessary on x86, generally.
|
|
||||||
PIC_FLAGS =
|
|
||||||
|
|
||||||
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
ASM_API = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ include $(TOP)/configs/linux
|
|||||||
CONFIG_NAME = linux-static
|
CONFIG_NAME = linux-static
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
@@ -21,6 +22,4 @@ GLUT_LIB_DEPS =
|
|||||||
GLW_LIB_DEPS =
|
GLW_LIB_DEPS =
|
||||||
|
|
||||||
# Need to specify all libraries we may need
|
# Need to specify all libraries we may need
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm \
|
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
||||||
-L/usr/X11R6/lib/ -lX11 -lXmu -lXi -lpthread
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ include $(TOP)/configs/linux-x86-64
|
|||||||
CONFIG_NAME = linux-x86-64-static
|
CONFIG_NAME = linux-x86-64-static
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
@@ -19,5 +20,4 @@ OSMESA_LIB_DEPS =
|
|||||||
GLU_LIB_DEPS =
|
GLU_LIB_DEPS =
|
||||||
GLUT_LIB_DEPS =
|
GLUT_LIB_DEPS =
|
||||||
GLW_LIB_DEPS =
|
GLW_LIB_DEPS =
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \
|
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
||||||
$(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ CXXFLAGS = -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199
|
|||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
ASM_API = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ include $(TOP)/configs/linux-x86
|
|||||||
CONFIG_NAME = linux-x86-static
|
CONFIG_NAME = linux-x86-static
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
@@ -19,5 +20,4 @@ OSMESA_LIB_DEPS =
|
|||||||
GLU_LIB_DEPS =
|
GLU_LIB_DEPS =
|
||||||
GLUT_LIB_DEPS =
|
GLUT_LIB_DEPS =
|
||||||
GLW_LIB_DEPS =
|
GLW_LIB_DEPS =
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \
|
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
||||||
$(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
|
||||||
|
|||||||
@@ -12,3 +12,6 @@ CXXFLAGS = -O2 -fPIC
|
|||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ CXX = g++
|
|||||||
CFLAGS = -O2 -fPIC -I/usr/X11R6/include -DUSE_XSHM -DHZ=100
|
CFLAGS = -O2 -fPIC -I/usr/X11R6/include -DUSE_XSHM -DHZ=100
|
||||||
CXXFLAGS = -O2 -fPIC -I/usr/X11R6/include -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
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm
|
||||||
OSMESA_LIB_DEPS = -lm
|
OSMESA_LIB_DEPS = -lm
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ CFLAGS = -O3 -march=i486 -fPIC -I/usr/openwin/include -DUSE_XSHM
|
|||||||
CXXFLAGS = -O3 -march=i486 -fPIC
|
CXXFLAGS = -O3 -march=i486 -fPIC
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
# 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
|
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ CXXFLAGS = -O3 -march=i486 -fPIC
|
|||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
MKLIB_OPTIONS = -static
|
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
|
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
|||||||
@@ -11,5 +11,9 @@ CFLAGS = -fPIC -O3 -I/usr/openwin/include -I/usr/include/X11R5 -I/usr/include/X1
|
|||||||
CXXFLAGS = -fPIC -O3 -I/usr/openwin/include -DSUNOS4
|
CXXFLAGS = -fPIC -O3 -I/usr/openwin/include -DSUNOS4
|
||||||
GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
|
GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
|||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
|
GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
EXTRA_LIB_PATH=-L/usr/openwin/lib
|
EXTRA_LIB_PATH=-L/usr/openwin/lib
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,9 @@ CXX_ARCH_FLAGS = -m64
|
|||||||
CXXFLAGS = $(CXX_WARN_FLAGS) $(CXX_OPT_FLAGS) $(CXX_PIC_FLAGS) $(CXX_ARCH_FLAGS) $(DEFINES) \
|
CXXFLAGS = $(CXX_WARN_FLAGS) $(CXX_OPT_FLAGS) $(CXX_PIC_FLAGS) $(CXX_ARCH_FLAGS) $(DEFINES) \
|
||||||
-I/usr/openwin/include
|
-I/usr/openwin/include
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
CFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM -DPTHREADS
|
CFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM -DPTHREADS
|
||||||
#CXXFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DPTHREADS
|
#CXXFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DPTHREADS
|
||||||
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
|
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ CXXFLAGS = -pedantic -O2
|
|||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
# Work around aliasing bugs - developers should comment this out
|
||||||
|
CFLAGS += -fno-strict-aliasing
|
||||||
|
CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
GLU_LIB_NAME = libGLU.a
|
GLU_LIB_NAME = libGLU.a
|
||||||
GLUT_LIB_NAME = libglut.a
|
GLUT_LIB_NAME = libglut.a
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<H1>Downloading</H1>
|
<H1>Downloading</H1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Last stable release: <b>7.0.1</b>
|
Last stable release: <b>7.0.2</b>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -28,6 +28,12 @@ Xlib interfaces allowing some degree of application portability between
|
|||||||
the X and X-less environments.
|
the X and X-less environments.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Some of the files needed for building this configuration are not included
|
||||||
|
in the normal Mesa releases so you'll need to get the latest sources
|
||||||
|
sources from the <a href="repository.html">git repository</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<h1>2. Compilation</h1>
|
<h1>2. Compilation</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<BODY>
|
<BODY>
|
||||||
|
|
||||||
<H1>Help Wanted</H1>
|
<H1>Help Wanted / To-Do List</H1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
We can always use more help with the Mesa project.
|
We can always use more help with the Mesa project.
|
||||||
@@ -14,36 +14,13 @@ Here are some specific ideas and areas where help would be appreciated:
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ol>
|
<ol>
|
||||||
<li><p>
|
<li>
|
||||||
Generate the src/mesa/main/enums.c file with a Python script which
|
Enable -Wstrict-aliasing=2 -fstrict-aliasing and track down aliasing
|
||||||
uses the gl_API.xml file.
|
issues in the code.
|
||||||
</p>
|
<li>
|
||||||
<li><p>
|
Windows 98/NT driver building, maintenance and testing
|
||||||
Try to auto-generate the display list "save" functions seen in dlist.c
|
<li>
|
||||||
using a Python script and the gl_API.xml file.
|
Maintenance and testing of lesser-used drivers, such as DOS/DJGPP, GGI, etc.
|
||||||
The gl_API.xml file will probably need a new tag to indicate whether or
|
|
||||||
not each function gets compiled into display lists.
|
|
||||||
</p>
|
|
||||||
<li><p>
|
|
||||||
Maintenance of assembly language files on Linux, Windows and SPARC systems.
|
|
||||||
</p>
|
|
||||||
<li><p>
|
|
||||||
Help to incorporate the 3Dlabs' shading language compiler for OpenGL 2.0.
|
|
||||||
</p>
|
|
||||||
<li><p>
|
|
||||||
Implement assembly language (SSE/MMX) code generation for
|
|
||||||
vertex/fragment programs.
|
|
||||||
</p>
|
|
||||||
<li><p>
|
|
||||||
Windows 98/NT driver building, maintenance and testing
|
|
||||||
(Karl Schultz has been doing a great job of this lately).
|
|
||||||
</p>
|
|
||||||
<li><p>
|
|
||||||
Maintenance and testing of various drivers, such as DOS/DJGPP, GGI, etc.
|
|
||||||
</p>
|
|
||||||
<li><p>
|
|
||||||
Write new tests for Glean.
|
|
||||||
</p>
|
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -57,50 +57,31 @@ the DRI hardware drivers.
|
|||||||
|
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
DRM kernel modules and header files from the
|
For Mesa 7.0.2 <a href="http://dri.freedesktop.org/libdrm/">
|
||||||
<a href="http://dri.sf.net/" target="_parent">DRI</a> project.
|
DRM version 2.3</a> is required.
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
If you don't already have the DRM file, you can get the sources from
|
|
||||||
CVS by doing:
|
|
||||||
<pre>
|
|
||||||
cvs -z3 -d:pserver:anonymous@anoncvs.freedesktop.org:/cvs/dri co drm
|
|
||||||
</pre>
|
|
||||||
<p>
|
|
||||||
See the <a href="http://dri.freedesktop.org/wiki/Building" target="_parent">
|
|
||||||
DRI Building Instructions</a> for the steps to build the DRM modules. Mesa
|
|
||||||
6.5 requires at least libdrm 2.0.1 or greater.
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
You can verify that the DRM files have been properly installed by
|
To check if you already have it, run:
|
||||||
running <code>pkg-config --modversion libdrm</code>
|
<br>
|
||||||
|
<code>pkg-config --modversion libdrm</code>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
You can download and install a <a href="http://dri.freedesktop.org/libdrm/">
|
||||||
|
tarball release</a> or get the code from git with:
|
||||||
|
<br>
|
||||||
|
<code>git clone git://anongit.freedesktop.org/git/mesa/drm</code>
|
||||||
|
<br>
|
||||||
|
Then revert to the drm-2.3.0 tag with:
|
||||||
|
<br>
|
||||||
|
<code>git-reset --hard drm-2.3.0</code>
|
||||||
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Recent /usr/include/GL/glxproto.h file.
|
Relatively recent
|
||||||
<p>You'll need this if you get any errors about _GLXvop_BindTexImageEXT
|
|
||||||
being undefined.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Download/install the
|
|
||||||
<a href="http://gitweb.freedesktop.org/?p=xorg/proto/glproto.git">glproto</a>
|
|
||||||
module from X.org git, or grab the
|
|
||||||
<A href="http://webcvs.freedesktop.org/*checkout*/xorg/proto/GL/glxproto.h?rev=1.9&content-type=text%2Fplain">glxproto.h file</a> and put it in the
|
|
||||||
Mesa/include/GL/ directory.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>DRI-enabled X server.
|
|
||||||
<p>Visit
|
|
||||||
<a href="http://www.xfree86.org" target="_parent">XFree86</a>
|
|
||||||
or
|
|
||||||
<a href="http://freedesktop.org/wiki/Software_2fXserver" target="_parent">
|
<a href="http://freedesktop.org/wiki/Software_2fXserver" target="_parent">
|
||||||
X.org</a>
|
X.org</a> release.
|
||||||
for more information.
|
Mesa depends on a number of X header and library files.
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ol>
|
</ol>
|
||||||
@@ -287,7 +268,15 @@ already installed, you'll have to choose different directories, like
|
|||||||
To install Mesa's headers and libraries, run <code>make install</code>.
|
To install Mesa's headers and libraries, run <code>make install</code>.
|
||||||
But first, check the Mesa/configs/default file and examine the values
|
But first, check the Mesa/configs/default file and examine the values
|
||||||
of the <b>INSTALL_DIR</b> and <b>DRI_DRIVER_INSTALL_DIR</b> variables.
|
of the <b>INSTALL_DIR</b> and <b>DRI_DRIVER_INSTALL_DIR</b> variables.
|
||||||
Change them if needed, then run <code>make install</code>
|
Change them if needed, then run <code>make install</code>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The variable
|
||||||
|
<b>DESTDIR</b> may also be used to install the contents to a temporary
|
||||||
|
staging directory.
|
||||||
|
This can be useful for package management.
|
||||||
|
For example: <code>make install DESTDIR=/somepath/</code>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@@ -298,6 +287,26 @@ This is a handy way to compare multiple OpenGL implementations.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<H3>1.5 pkg-config support</H3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Running <code>make install</code> will install package configuration files
|
||||||
|
for the pkg-config utility.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
When compiling your OpenGL application you can use pkg-config to determine
|
||||||
|
the proper compiler and linker flags.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
For example, compiling and linking a GLUT application can be done with:
|
||||||
|
</p>
|
||||||
|
<pre>
|
||||||
|
gcc `pkg-config --cflags --libs glut` mydemo.c -o mydemo
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
<a name="windows">
|
<a name="windows">
|
||||||
<H2>2. Windows Compilation and Installation</H1>
|
<H2>2. Windows Compilation and Installation</H1>
|
||||||
|
|||||||
@@ -86,29 +86,32 @@ and their respective licenses.
|
|||||||
<H1>Mesa Component Licenses</H1>
|
<H1>Mesa Component Licenses</H1>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Component Location Primary Author License
|
Component Location License
|
||||||
----------------------------------------------------------------------------
|
------------------------------------------------------------------
|
||||||
Main Mesa code src/mesa/ Brian Paul Mesa (MIT)
|
Main Mesa code src/mesa/ Mesa (MIT)
|
||||||
|
|
||||||
Device drivers src/mesa/drivers/* See drivers See drivers
|
Device drivers src/mesa/drivers/* MIT, generally
|
||||||
|
|
||||||
Ext headers include/GL/glext.h SGI SGI Free B
|
Ext headers include/GL/glext.h Khronos
|
||||||
include/GL/glxext.h
|
include/GL/glxext.h
|
||||||
|
|
||||||
GLUT src/glut/ Mark Kilgard Mark's copyright
|
GLUT src/glut/ Mark Kilgard's copyright
|
||||||
|
|
||||||
Mesa GLU library src/glu/mesa/ Brian Paul GNU-LGPL
|
SGI GLU library src/glu/sgi/ SGI Free B
|
||||||
|
|
||||||
SGI GLU library src/glu/sgi/ SGI SGI Free B
|
demo programs progs/demos/ see source files
|
||||||
|
|
||||||
demo programs progs/demos/ various see source files
|
X demos progs/xdemos/ see source files
|
||||||
|
|
||||||
X demos progs/xdemos/ Brian Paul see source files
|
SGI demos progs/samples/ SGI license
|
||||||
|
|
||||||
SGI demos progs/samples/ SGI SGI copyright
|
RedBook demos progs/redbook/ SGI license
|
||||||
|
|
||||||
RedBook demos progs/redbook/ SGI SGI copyright
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
In general, consult the source files for license terms.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</li><li><a href="http://innovation3d.sourceforge.net/" target="_parent">Innovation3D</a>
|
</li><li><a href="http://innovation3d.sourceforge.net/" target="_parent">Innovation3D</a>
|
||||||
- 3D modeling program
|
- 3D modeling program
|
||||||
</li><li><a href="http://mesa3d.sourceforge.net/notfound.html" target="_parent">KWRL</a> - VRML browser
|
</li><li><a href="http://mesa3d.sourceforge.net/notfound.html" target="_parent">KWRL</a> - VRML browser
|
||||||
</li><li><a href="http://www.vermontel.com/%7Ecmorley/vrml.html" target="_parent">LibVRML97/Lookat</a>
|
</li><li><a href="http://www.openvrml.org/" target="_parent">LibVRML97/Lookat</a>
|
||||||
- VRML viewer
|
- VRML viewer
|
||||||
</li><li><a href="http://aig.cs.man.ac.uk/systems/Maverik/" target="_parent">Maverik</a>
|
</li><li><a href="http://aig.cs.man.ac.uk/systems/Maverik/" target="_parent">Maverik</a>
|
||||||
- VR graphics and interaction system
|
- VR graphics and interaction system
|
||||||
|
|||||||
@@ -11,6 +11,13 @@
|
|||||||
<H1>News</H1>
|
<H1>News</H1>
|
||||||
|
|
||||||
|
|
||||||
|
<h2>November 10, 2007</h2>
|
||||||
|
<p>
|
||||||
|
<a href="relnotes-7.0.2.html">Mesa 7.0.2</a> is released.
|
||||||
|
This is a bug-fix release.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<h2>August 3, 2007</h2>
|
<h2>August 3, 2007</h2>
|
||||||
<p>
|
<p>
|
||||||
<a href="relnotes-7.0.1.html">Mesa 7.0.1</a> is released.
|
<a href="relnotes-7.0.1.html">Mesa 7.0.1</a> is released.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<body bgcolor="#eeeeee">
|
<body bgcolor="#eeeeee">
|
||||||
|
|
||||||
<H1>Mesa 7.0.2 Release Notes / (TBD) 2007</H1>
|
<H1>Mesa 7.0.2 Release Notes / November 10, 2007</H1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Mesa 7.0.2 is a stable release with bug fixes since version 7.0.
|
Mesa 7.0.2 is a stable release with bug fixes since version 7.0.
|
||||||
@@ -17,11 +17,25 @@ Mesa 7.0.2 is a stable release with bug fixes since version 7.0.
|
|||||||
|
|
||||||
<h2>MD5 checksums</h2>
|
<h2>MD5 checksums</h2>
|
||||||
<pre>
|
<pre>
|
||||||
|
c9cf607f36e7e50172f5f9c7d552c34e MesaLib-7.0.2.tar.gz
|
||||||
|
93e6ed7924ff069a4f883b4fce5349dc MesaLib-7.0.2.tar.bz2
|
||||||
|
10c324c3613f90f059cb8429f700f300 MesaLib-7.0.2.zip
|
||||||
|
aa8b1244a5de1d23e5814bf9b67f1435 MesaDemos-7.0.2.tar.gz
|
||||||
|
11a10410bae7be85cf25bc7119966468 MesaDemos-7.0.2.tar.bz2
|
||||||
|
1dd0b5fd6d69430a2fd76a6adbfd8fff MesaDemos-7.0.2.zip
|
||||||
|
a7dbf25c025955858bd2d89a6eb6db4c MesaGLUT-7.0.2.tar.gz
|
||||||
|
3a33f8efc8c58a592a854cfc7a643286 MesaGLUT-7.0.2.tar.bz2
|
||||||
|
eba4ef2aa8c362ead81b54357f1903a3 MesaGLUT-7.0.2.zip
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
<h2>New features</h2>
|
<h2>New features</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>Updated Windows VC7 project files
|
||||||
|
<li>Added DESTDIR variable for 'make install'
|
||||||
|
<li>Added pkg-config files for gl, glu, glut and glw libraries
|
||||||
|
<li>Added bluegene-xlc-osmesa and catamount-osmesa-pgi configs
|
||||||
|
<li>Support for Intel G33/Q33/Q35 graphics chipsets
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2>Bug fixes</h2>
|
<h2>Bug fixes</h2>
|
||||||
@@ -33,19 +47,21 @@ Mesa 7.0.2 is a stable release with bug fixes since version 7.0.
|
|||||||
<li>Fixed a blending/banding issue (bug 11931)
|
<li>Fixed a blending/banding issue (bug 11931)
|
||||||
<li>Fixed a GLU matrix inversion bug (#6748)
|
<li>Fixed a GLU matrix inversion bug (#6748)
|
||||||
<li>Fixed problem with large glDrawArrays calls and indirect rendering (bug 12141)
|
<li>Fixed problem with large glDrawArrays calls and indirect rendering (bug 12141)
|
||||||
</ul>
|
<li>Fixed an assortment of i965 driver bugs
|
||||||
|
<li>Fixed x86-64 vertex transformation bug (12216)
|
||||||
|
<li>Fixed X server crash caused by multiple indirect rendering clients
|
||||||
<h2>Changes</h2>
|
<li>Parsing of state.texgen in ARB vertex/fragment programs didn't work (bug 12313)
|
||||||
<ul>
|
<li>Fixed a glCopyPixels/glPixelZoom bug (12417)
|
||||||
</ul>
|
<li>Fixed a bug when using glMaterial in display lists (bug 10604)
|
||||||
|
<li>Fixed a few GLUT/Fortran issues (Bill Mitchell)
|
||||||
|
<li>Fixed Blender crash bug (12164)
|
||||||
<h2>To Do (someday) items</h2>
|
<li>Fixed some issues preventing cross-compiling
|
||||||
<ul>
|
<li>Fixed up broken GL_ATI_separate_stencil extension
|
||||||
<li>Switch to freeglut
|
<li>glDrawArrays(count=0) led to a crash
|
||||||
<li>Fix linux-glide target/driver.
|
<li>Fix SSE code gen memory leak, possible crash
|
||||||
<li>Improved lambda and derivative calculation for frag progs.
|
<li>Fixed MMX 565 rgb conversion problem (bug 12614)
|
||||||
|
<li>Added -fno-strict-aliasing and -fPIC flags for gcc
|
||||||
|
<li>Fixed Blender crash in Unichrome driver (bug 13142)
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
3
progs/beos/.gitignore
vendored
Normal file
3
progs/beos/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
demo
|
||||||
|
GLInfo
|
||||||
|
sample
|
||||||
@@ -10,7 +10,9 @@ include $(TOP)/configs/current
|
|||||||
#
|
#
|
||||||
# Modified by Philippe Houdoin
|
# Modified by Philippe Houdoin
|
||||||
|
|
||||||
LDFLAGS += -soname=_APP_ $(APP_LIB_DEPS)
|
LDFLAGS += -soname=_APP_
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
INCLUDES = -I. -I- -I../../include
|
INCLUDES = -I. -I- -I../../include
|
||||||
|
|
||||||
@@ -21,13 +23,13 @@ clean:
|
|||||||
rm -f *.o
|
rm -f *.o
|
||||||
|
|
||||||
demo: demo.o
|
demo: demo.o
|
||||||
$(LD) demo.o $(LDFLAGS) -o $@
|
$(LD) demo.o $(LDFLAGS) $(LIBS) -o $@
|
||||||
|
|
||||||
sample: sample.o
|
sample: sample.o
|
||||||
$(LD) sample.o $(LDFLAGS) -o $@
|
$(LD) sample.o $(LDFLAGS) $(LIBS) -o $@
|
||||||
|
|
||||||
GTLInfo: GLInfo.o
|
GTLInfo: GLInfo.o
|
||||||
$(LD) GLInfo.o $(INCLUDES) $(LDFLAGS) -o $@
|
$(LD) GLInfo.o $(INCLUDES) $(LDFLAGS) $(LIBS) -o $@
|
||||||
|
|
||||||
.cpp.o:
|
.cpp.o:
|
||||||
$(CC) -c $< $(INCLUDES) $(CFLAGS) -o $@
|
$(CC) -c $< $(INCLUDES) $(CFLAGS) -o $@
|
||||||
|
|||||||
14
progs/demos/.gitignore
vendored
14
progs/demos/.gitignore
vendored
@@ -1,17 +1,25 @@
|
|||||||
.cvsignore
|
.cvsignore
|
||||||
arbfplight
|
arbfplight
|
||||||
|
arbfslight
|
||||||
arbocclude
|
arbocclude
|
||||||
bounce
|
bounce
|
||||||
clearspd
|
clearspd
|
||||||
|
copypix
|
||||||
cubemap
|
cubemap
|
||||||
drawpix
|
drawpix
|
||||||
|
engine
|
||||||
|
extfuncs.h
|
||||||
fire
|
fire
|
||||||
|
fogcoord
|
||||||
fplight
|
fplight
|
||||||
|
fslight
|
||||||
gamma
|
gamma
|
||||||
|
gearbox
|
||||||
gears
|
gears
|
||||||
geartrain
|
geartrain
|
||||||
glinfo
|
glinfo
|
||||||
gloss
|
gloss
|
||||||
|
glslnoise
|
||||||
gltestperf
|
gltestperf
|
||||||
glutfx
|
glutfx
|
||||||
ipers
|
ipers
|
||||||
@@ -33,8 +41,11 @@ renormal
|
|||||||
shadowtex
|
shadowtex
|
||||||
showbuffer.c
|
showbuffer.c
|
||||||
showbuffer.h
|
showbuffer.h
|
||||||
|
singlebuffer
|
||||||
spectex
|
spectex
|
||||||
|
spriteblast
|
||||||
stex3d
|
stex3d
|
||||||
|
streaming_rect
|
||||||
teapot
|
teapot
|
||||||
terrain
|
terrain
|
||||||
tessdemo
|
tessdemo
|
||||||
@@ -42,7 +53,10 @@ texcyl
|
|||||||
texdown
|
texdown
|
||||||
texenv
|
texenv
|
||||||
texobj
|
texobj
|
||||||
|
trackball.c
|
||||||
|
trackball.h
|
||||||
trispd
|
trispd
|
||||||
tunnel
|
tunnel
|
||||||
tunnel2
|
tunnel2
|
||||||
|
vao_demo
|
||||||
winpos
|
winpos
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ OSMESA32_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa32 -lGLU -lGL $(APP_LIB_DEPS)
|
|||||||
|
|
||||||
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
PROGS = \
|
PROGS = \
|
||||||
arbfplight \
|
arbfplight \
|
||||||
arbfslight \
|
arbfslight \
|
||||||
@@ -74,7 +76,7 @@ PROGS = \
|
|||||||
|
|
||||||
# make executable from .c file:
|
# make executable from .c file:
|
||||||
.c: $(LIB_DEP) readtex.o
|
.c: $(LIB_DEP) readtex.o
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) $< readtex.o $(APP_LIB_DEPS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
|
|
||||||
##### TARGETS #####
|
##### TARGETS #####
|
||||||
@@ -118,35 +120,35 @@ extfuncs.h: $(TOP)/progs/util/extfuncs.h
|
|||||||
|
|
||||||
|
|
||||||
reflect: reflect.o showbuffer.o readtex.o
|
reflect: reflect.o showbuffer.o readtex.o
|
||||||
$(CC) reflect.o showbuffer.o readtex.o $(APP_LIB_DEPS) -o $@
|
$(CC) $(LDFLAGS) reflect.o showbuffer.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
reflect.o: reflect.c showbuffer.h
|
reflect.o: reflect.c showbuffer.h
|
||||||
$(CC) -c -I$(INCDIR) $(CFLAGS) reflect.c
|
$(CC) -c -I$(INCDIR) $(CFLAGS) reflect.c
|
||||||
|
|
||||||
|
|
||||||
shadowtex: shadowtex.o showbuffer.o
|
shadowtex: shadowtex.o showbuffer.o
|
||||||
$(CC) shadowtex.o showbuffer.o $(APP_LIB_DEPS) -o $@
|
$(CC) $(LDFLAGS) shadowtex.o showbuffer.o $(LIBS) -o $@
|
||||||
|
|
||||||
shadowtex.o: shadowtex.c showbuffer.h
|
shadowtex.o: shadowtex.c showbuffer.h
|
||||||
$(CC) -c -I$(INCDIR) $(CFLAGS) shadowtex.c
|
$(CC) -c -I$(INCDIR) $(CFLAGS) shadowtex.c
|
||||||
|
|
||||||
|
|
||||||
gloss: gloss.o trackball.o readtex.o
|
gloss: gloss.o trackball.o readtex.o
|
||||||
$(CC) gloss.o trackball.o readtex.o $(APP_LIB_DEPS) -o $@
|
$(CC) $(LDFLAGS) gloss.o trackball.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
gloss.o: gloss.c trackball.h
|
gloss.o: gloss.c trackball.h
|
||||||
$(CC) -c -I$(INCDIR) $(CFLAGS) gloss.c
|
$(CC) -c -I$(INCDIR) $(CFLAGS) gloss.c
|
||||||
|
|
||||||
|
|
||||||
engine: engine.o trackball.o readtex.o
|
engine: engine.o trackball.o readtex.o
|
||||||
$(CC) engine.o trackball.o readtex.o $(APP_LIB_DEPS) -o $@
|
$(CC) $(LDFLAGS) engine.o trackball.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
engine.o: engine.c trackball.h
|
engine.o: engine.c trackball.h
|
||||||
$(CC) -c -I$(INCDIR) $(CFLAGS) engine.c
|
$(CC) -c -I$(INCDIR) $(CFLAGS) engine.c
|
||||||
|
|
||||||
|
|
||||||
fslight: fslight.o
|
fslight: fslight.o
|
||||||
$(CC) fslight.o $(APP_LIB_DEPS) -o $@
|
$(CC) $(LDFLAGS) fslight.o $(LIBS) -o $@
|
||||||
|
|
||||||
fslight.o: fslight.c extfuncs.h
|
fslight.o: fslight.c extfuncs.h
|
||||||
$(CC) -c -I$(INCDIR) $(CFLAGS) fslight.c
|
$(CC) -c -I$(INCDIR) $(CFLAGS) fslight.c
|
||||||
|
|||||||
4
progs/directfb/.gitignore
vendored
Normal file
4
progs/directfb/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
df_gears
|
||||||
|
df_morph3d
|
||||||
|
df_reflect
|
||||||
|
multi_window
|
||||||
@@ -11,6 +11,8 @@ LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME)
|
|||||||
CFLAGS += $(shell pkg-config --cflags directfb)
|
CFLAGS += $(shell pkg-config --cflags directfb)
|
||||||
APP_LIB_DEPS += $(shell pkg-config --libs directfb)
|
APP_LIB_DEPS += $(shell pkg-config --libs directfb)
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
PROGS = df_gears \
|
PROGS = df_gears \
|
||||||
df_reflect \
|
df_reflect \
|
||||||
df_morph3d \
|
df_morph3d \
|
||||||
@@ -22,7 +24,7 @@ PROGS = df_gears \
|
|||||||
.SUFFIXES: .c
|
.SUFFIXES: .c
|
||||||
|
|
||||||
.c: $(LIB_DEP)
|
.c: $(LIB_DEP)
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
|
|
||||||
##### TARGETS #####
|
##### TARGETS #####
|
||||||
|
|||||||
5
progs/egl/.gitignore
vendored
Normal file
5
progs/egl/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
demo1
|
||||||
|
demo2
|
||||||
|
demo3
|
||||||
|
eglgears
|
||||||
|
eglinfo
|
||||||
@@ -25,35 +25,35 @@ default: $(PROGRAMS)
|
|||||||
|
|
||||||
|
|
||||||
demo1: demo1.o $(TOP)/$(LIB_DIR)/libEGL.so
|
demo1: demo1.o $(TOP)/$(LIB_DIR)/libEGL.so
|
||||||
$(CC) $(CFLAGS) demo1.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) demo1.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@
|
||||||
|
|
||||||
demo1.o: demo1.c $(HEADERS)
|
demo1.o: demo1.c $(HEADERS)
|
||||||
$(CC) -c $(CFLAGS) -I$(TOP)/include demo1.c
|
$(CC) -c $(CFLAGS) -I$(TOP)/include demo1.c
|
||||||
|
|
||||||
|
|
||||||
demo2: demo2.o $(TOP)/$(LIB_DIR)/libEGL.so
|
demo2: demo2.o $(TOP)/$(LIB_DIR)/libEGL.so
|
||||||
$(CC) $(CFLAGS) demo2.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) demo2.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@
|
||||||
|
|
||||||
demo2.o: demo2.c $(HEADERS)
|
demo2.o: demo2.c $(HEADERS)
|
||||||
$(CC) -c $(CFLAGS) -I$(TOP)/include demo2.c
|
$(CC) -c $(CFLAGS) -I$(TOP)/include demo2.c
|
||||||
|
|
||||||
|
|
||||||
demo3: demo3.o $(TOP)/$(LIB_DIR)/libEGL.so
|
demo3: demo3.o $(TOP)/$(LIB_DIR)/libEGL.so
|
||||||
$(CC) $(CFLAGS) demo3.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) demo3.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@
|
||||||
|
|
||||||
demo3.o: demo3.c $(HEADERS)
|
demo3.o: demo3.c $(HEADERS)
|
||||||
$(CC) -c $(CFLAGS) -I$(TOP)/include demo3.c
|
$(CC) -c $(CFLAGS) -I$(TOP)/include demo3.c
|
||||||
|
|
||||||
|
|
||||||
eglinfo: eglinfo.o $(TOP)/$(LIB_DIR)/libEGL.so
|
eglinfo: eglinfo.o $(TOP)/$(LIB_DIR)/libEGL.so
|
||||||
$(CC) $(CFLAGS) eglinfo.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) eglinfo.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@
|
||||||
|
|
||||||
eglinfo.o: eglinfo.c $(HEADERS)
|
eglinfo.o: eglinfo.c $(HEADERS)
|
||||||
$(CC) -c $(CFLAGS) -I$(TOP)/include eglinfo.c
|
$(CC) -c $(CFLAGS) -I$(TOP)/include eglinfo.c
|
||||||
|
|
||||||
|
|
||||||
eglgears: eglgears.o $(TOP)/$(LIB_DIR)/libEGL.so
|
eglgears: eglgears.o $(TOP)/$(LIB_DIR)/libEGL.so
|
||||||
$(CC) $(CFLAGS) eglgears.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) eglgears.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@
|
||||||
|
|
||||||
eglgears.o: eglgears.c $(HEADERS)
|
eglgears.o: eglgears.c $(HEADERS)
|
||||||
$(CC) -c $(CFLAGS) -I$(TOP)/include eglgears.c
|
$(CC) -c $(CFLAGS) -I$(TOP)/include eglgears.c
|
||||||
|
|||||||
1
progs/fbdev/.gitignore
vendored
Normal file
1
progs/fbdev/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
glfbdevtest
|
||||||
@@ -15,6 +15,7 @@ INCLUDES = \
|
|||||||
-I. \
|
-I. \
|
||||||
-I$(TOP)/include
|
-I$(TOP)/include
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
##### RULES #####
|
##### RULES #####
|
||||||
|
|
||||||
@@ -22,7 +23,7 @@ INCLUDES = \
|
|||||||
.SUFFIXES: .c
|
.SUFFIXES: .c
|
||||||
|
|
||||||
.c:
|
.c:
|
||||||
$(CC) $(INCLUDES) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
|
$(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
|
||||||
|
|||||||
42
progs/fp/.gitignore
vendored
Normal file
42
progs/fp/.gitignore
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
point-position
|
||||||
|
readtex.c
|
||||||
|
readtex.h
|
||||||
|
tri-abs
|
||||||
|
tri-add
|
||||||
|
tri-cmp
|
||||||
|
tri-cos
|
||||||
|
tri-depth
|
||||||
|
tri-depth2
|
||||||
|
tri-depthwrite
|
||||||
|
tri-depthwrite2
|
||||||
|
tri-dp3
|
||||||
|
tri-dp4
|
||||||
|
tri-dph
|
||||||
|
tri-dst
|
||||||
|
tri-ex2
|
||||||
|
tri-flr
|
||||||
|
tri-frc
|
||||||
|
tri-kil
|
||||||
|
tri-lg2
|
||||||
|
tri-lit
|
||||||
|
tri-lrp
|
||||||
|
tri-mad
|
||||||
|
tri-max
|
||||||
|
tri-min
|
||||||
|
tri-mov
|
||||||
|
tri-mul
|
||||||
|
tri-param
|
||||||
|
tri-position
|
||||||
|
tri-pow
|
||||||
|
tri-rcp
|
||||||
|
tri-rsq
|
||||||
|
tri-scs
|
||||||
|
tri-sge
|
||||||
|
tri-sge2
|
||||||
|
tri-sin
|
||||||
|
tri-slt
|
||||||
|
tri-sub
|
||||||
|
tri-swz
|
||||||
|
tri-swz2
|
||||||
|
tri-tex
|
||||||
|
tri-xpd
|
||||||
@@ -8,7 +8,7 @@ TOP = ../..
|
|||||||
include $(TOP)/configs/current
|
include $(TOP)/configs/current
|
||||||
|
|
||||||
|
|
||||||
LIBS = $(APP_LIB_DEPS)
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
SOURCES = \
|
SOURCES = \
|
||||||
tri-abs.c \
|
tri-abs.c \
|
||||||
|
|||||||
13
progs/glsl/.gitignore
vendored
Normal file
13
progs/glsl/.gitignore
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
bitmap
|
||||||
|
brick
|
||||||
|
bump
|
||||||
|
deriv
|
||||||
|
extfuncs.h
|
||||||
|
mandelbrot
|
||||||
|
noise
|
||||||
|
points
|
||||||
|
readtex.c
|
||||||
|
readtex.h
|
||||||
|
texdemo1
|
||||||
|
trirast
|
||||||
|
toyball
|
||||||
@@ -7,6 +7,8 @@ INCDIR = $(TOP)/include
|
|||||||
|
|
||||||
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
PROGS = \
|
PROGS = \
|
||||||
brick \
|
brick \
|
||||||
bump \
|
bump \
|
||||||
@@ -25,7 +27,7 @@ PROGS = \
|
|||||||
|
|
||||||
# make executable from .c file:
|
# make executable from .c file:
|
||||||
.c: $(LIB_DEP)
|
.c: $(LIB_DEP)
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
|
|
||||||
##### TARGETS #####
|
##### TARGETS #####
|
||||||
@@ -57,7 +59,7 @@ mandelbrot.c: extfuncs.h
|
|||||||
toyball.c: extfuncs.h
|
toyball.c: extfuncs.h
|
||||||
|
|
||||||
texdemo1: texdemo1.o readtex.o
|
texdemo1: texdemo1.o readtex.o
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) texdemo1.o readtex.o $(APP_LIB_DEPS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) texdemo1.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
texdemo1.o: texdemo1.c readtex.h extfuncs.h
|
texdemo1.o: texdemo1.c readtex.h extfuncs.h
|
||||||
$(CC) -c -I$(INCDIR) $(CFLAGS) texdemo1.c
|
$(CC) -c -I$(INCDIR) $(CFLAGS) texdemo1.c
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ LoadAndCompileShader(GLuint shader, const char *text)
|
|||||||
GLchar log[1000];
|
GLchar log[1000];
|
||||||
GLsizei len;
|
GLsizei len;
|
||||||
glGetShaderInfoLog_func(shader, 1000, &len, log);
|
glGetShaderInfoLog_func(shader, 1000, &len, log);
|
||||||
fprintf(stderr, "brick: problem compiling shader: %s\n", log);
|
fprintf(stderr, "bump: problem compiling shader: %s\n", log);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -267,12 +267,12 @@ ReadShader(GLuint shader, const char *filename)
|
|||||||
char *buffer = (char*) malloc(max);
|
char *buffer = (char*) malloc(max);
|
||||||
FILE *f = fopen(filename, "r");
|
FILE *f = fopen(filename, "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
fprintf(stderr, "brick: Unable to open shader file %s\n", filename);
|
fprintf(stderr, "bump: Unable to open shader file %s\n", filename);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
n = fread(buffer, 1, max, f);
|
n = fread(buffer, 1, max, f);
|
||||||
printf("brick: read %d bytes from shader file %s\n", n, filename);
|
printf("bump: read %d bytes from shader file %s\n", n, filename);
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
buffer[n] = 0;
|
buffer[n] = 0;
|
||||||
LoadAndCompileShader(shader, buffer);
|
LoadAndCompileShader(shader, buffer);
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ LoadAndCompileShader(GLuint shader, const char *text)
|
|||||||
GLchar log[1000];
|
GLchar log[1000];
|
||||||
GLsizei len;
|
GLsizei len;
|
||||||
glGetShaderInfoLog_func(shader, 1000, &len, log);
|
glGetShaderInfoLog_func(shader, 1000, &len, log);
|
||||||
fprintf(stderr, "brick: problem compiling shader: %s\n", log);
|
fprintf(stderr, "mandelbrot: problem compiling shader: %s\n", log);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -192,12 +192,12 @@ ReadShader(GLuint shader, const char *filename)
|
|||||||
char *buffer = (char*) malloc(max);
|
char *buffer = (char*) malloc(max);
|
||||||
FILE *f = fopen(filename, "r");
|
FILE *f = fopen(filename, "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
fprintf(stderr, "brick: Unable to open shader file %s\n", filename);
|
fprintf(stderr, "mandelbrot: Unable to open shader file %s\n", filename);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
n = fread(buffer, 1, max, f);
|
n = fread(buffer, 1, max, f);
|
||||||
printf("brick: read %d bytes from shader file %s\n", n, filename);
|
printf("mandelbrot: read %d bytes from shader file %s\n", n, filename);
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
buffer[n] = 0;
|
buffer[n] = 0;
|
||||||
LoadAndCompileShader(shader, buffer);
|
LoadAndCompileShader(shader, buffer);
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ LoadAndCompileShader(GLuint shader, const char *text)
|
|||||||
GLchar log[1000];
|
GLchar log[1000];
|
||||||
GLsizei len;
|
GLsizei len;
|
||||||
glGetShaderInfoLog_func(shader, 1000, &len, log);
|
glGetShaderInfoLog_func(shader, 1000, &len, log);
|
||||||
fprintf(stderr, "brick: problem compiling shader: %s\n", log);
|
fprintf(stderr, "noise: problem compiling shader: %s\n", log);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ LoadAndCompileShader(GLuint shader, const char *text)
|
|||||||
GLchar log[1000];
|
GLchar log[1000];
|
||||||
GLsizei len;
|
GLsizei len;
|
||||||
glGetShaderInfoLog_func(shader, 1000, &len, log);
|
glGetShaderInfoLog_func(shader, 1000, &len, log);
|
||||||
fprintf(stderr, "brick: problem compiling shader: %s\n", log);
|
fprintf(stderr, "toyball: problem compiling shader: %s\n", log);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -205,12 +205,12 @@ ReadShader(GLuint shader, const char *filename)
|
|||||||
char *buffer = (char*) malloc(max);
|
char *buffer = (char*) malloc(max);
|
||||||
FILE *f = fopen(filename, "r");
|
FILE *f = fopen(filename, "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
fprintf(stderr, "brick: Unable to open shader file %s\n", filename);
|
fprintf(stderr, "toyball: Unable to open shader file %s\n", filename);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
n = fread(buffer, 1, max, f);
|
n = fread(buffer, 1, max, f);
|
||||||
printf("brick: read %d bytes from shader file %s\n", n, filename);
|
printf("toyball: read %d bytes from shader file %s\n", n, filename);
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
buffer[n] = 0;
|
buffer[n] = 0;
|
||||||
LoadAndCompileShader(shader, buffer);
|
LoadAndCompileShader(shader, buffer);
|
||||||
|
|||||||
6
progs/miniglx/.gitignore
vendored
Normal file
6
progs/miniglx/.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
manytex
|
||||||
|
miniglxsample
|
||||||
|
miniglxtest
|
||||||
|
sample_server
|
||||||
|
sample_server2
|
||||||
|
texline
|
||||||
@@ -20,6 +20,8 @@ INCLUDES = \
|
|||||||
-I. \
|
-I. \
|
||||||
-I$(TOP)/include
|
-I$(TOP)/include
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
|
|
||||||
##### RULES #####
|
##### RULES #####
|
||||||
|
|
||||||
@@ -27,7 +29,7 @@ INCLUDES = \
|
|||||||
.SUFFIXES: .c
|
.SUFFIXES: .c
|
||||||
|
|
||||||
.c:
|
.c:
|
||||||
$(CC) $(INCLUDES) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
|
$(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
|
||||||
|
|||||||
8
progs/osdemos/.gitignore
vendored
Normal file
8
progs/osdemos/.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
osdemo
|
||||||
|
osdemo16
|
||||||
|
osdemo32
|
||||||
|
ostest1
|
||||||
|
readtex.c
|
||||||
|
readtex.h
|
||||||
|
showbuffer.c
|
||||||
|
showbuffer.h
|
||||||
@@ -13,6 +13,8 @@ OSMESA32_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa32 -lGLU -lGL $(APP_LIB_DEPS)
|
|||||||
|
|
||||||
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
PROGS = \
|
PROGS = \
|
||||||
osdemo \
|
osdemo \
|
||||||
ostest1
|
ostest1
|
||||||
@@ -26,7 +28,7 @@ PROGS = \
|
|||||||
|
|
||||||
# make executable from .c file:
|
# make executable from .c file:
|
||||||
.c: $(LIB_DEP) readtex.o
|
.c: $(LIB_DEP) readtex.o
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) $< readtex.o $(APP_LIB_DEPS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
|
|
||||||
##### TARGETS #####
|
##### TARGETS #####
|
||||||
@@ -56,19 +58,19 @@ showbuffer.o: showbuffer.c showbuffer.h
|
|||||||
|
|
||||||
# special case: need the -lOSMesa library:
|
# special case: need the -lOSMesa library:
|
||||||
osdemo: osdemo.c
|
osdemo: osdemo.c
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
|
||||||
|
|
||||||
# special case: need the -lOSMesa library:
|
# special case: need the -lOSMesa library:
|
||||||
ostest1: ostest1.c
|
ostest1: ostest1.c
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) ostest1.c $(OSMESA_LIBS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) ostest1.c $(OSMESA_LIBS) -o $@
|
||||||
|
|
||||||
# another special case: need the -lOSMesa16 library:
|
# another special case: need the -lOSMesa16 library:
|
||||||
osdemo16: osdemo16.c
|
osdemo16: osdemo16.c
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) osdemo16.c $(OSMESA16_LIBS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) osdemo16.c $(OSMESA16_LIBS) -o $@
|
||||||
|
|
||||||
# another special case: need the -lOSMesa32 library:
|
# another special case: need the -lOSMesa32 library:
|
||||||
osdemo32: osdemo32.c
|
osdemo32: osdemo32.c
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) osdemo32.c $(OSMESA32_LIBS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) osdemo32.c $(OSMESA32_LIBS) -o $@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ INCDIR = $(TOP)/include
|
|||||||
|
|
||||||
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \
|
PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \
|
||||||
bezcurve bezmesh checker clip colormat cube depthcue dof \
|
bezcurve bezmesh checker clip colormat cube depthcue dof \
|
||||||
double drawf feedback fog fogindex font hello image light \
|
double drawf feedback fog fogindex font hello image light \
|
||||||
@@ -24,7 +26,7 @@ PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \
|
|||||||
.SUFFIXES: .c
|
.SUFFIXES: .c
|
||||||
|
|
||||||
.c: $(LIB_DEP)
|
.c: $(LIB_DEP)
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
32
progs/samples/.gitignore
vendored
32
progs/samples/.gitignore
vendored
@@ -1,24 +1,41 @@
|
|||||||
.cvsignore
|
.cvsignore
|
||||||
accum
|
accum
|
||||||
|
anywin
|
||||||
|
bdemo
|
||||||
|
binfo
|
||||||
bitmap1
|
bitmap1
|
||||||
bitmap2
|
bitmap2
|
||||||
blendeq
|
blendeq
|
||||||
blendxor
|
blendxor
|
||||||
|
bugger
|
||||||
copy
|
copy
|
||||||
cursor
|
cursor
|
||||||
|
demo
|
||||||
depth
|
depth
|
||||||
eval
|
eval
|
||||||
|
ffset
|
||||||
fog
|
fog
|
||||||
font
|
font
|
||||||
|
font
|
||||||
|
incopy
|
||||||
line
|
line
|
||||||
logo
|
logo
|
||||||
|
lthreads
|
||||||
|
lxdemo
|
||||||
|
lxgears
|
||||||
|
lxheads
|
||||||
|
lxinfo
|
||||||
|
lxpixmap
|
||||||
nurb
|
nurb
|
||||||
oglinfo
|
oglinfo
|
||||||
olympic
|
olympic
|
||||||
overlay
|
overlay
|
||||||
|
pend
|
||||||
point
|
point
|
||||||
prim
|
prim
|
||||||
quad
|
quad
|
||||||
|
readtex.c
|
||||||
|
readtex.h
|
||||||
select
|
select
|
||||||
shape
|
shape
|
||||||
sphere
|
sphere
|
||||||
@@ -28,18 +45,3 @@ stretch
|
|||||||
texture
|
texture
|
||||||
tri
|
tri
|
||||||
wave
|
wave
|
||||||
bugger
|
|
||||||
pend
|
|
||||||
lthreads
|
|
||||||
lxdemo
|
|
||||||
lxgears
|
|
||||||
lxheads
|
|
||||||
lxinfo
|
|
||||||
lxpixmap
|
|
||||||
anywin
|
|
||||||
ffset
|
|
||||||
bdemo
|
|
||||||
binfo
|
|
||||||
incopy
|
|
||||||
demo
|
|
||||||
font
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ INCDIR = $(TOP)/include
|
|||||||
|
|
||||||
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
|
PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
|
||||||
font line logo nurb olympic overlay point prim quad select \
|
font line logo nurb olympic overlay point prim quad select \
|
||||||
shape sphere star stencil stretch texture tri wave
|
shape sphere star stencil stretch texture tri wave
|
||||||
@@ -18,7 +20,7 @@ PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
|
|||||||
.SUFFIXES: .c
|
.SUFFIXES: .c
|
||||||
|
|
||||||
.c: $(LIB_DEP)
|
.c: $(LIB_DEP)
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
|
|
||||||
##### TARGETS #####
|
##### TARGETS #####
|
||||||
@@ -27,7 +29,7 @@ default: $(PROGS)
|
|||||||
|
|
||||||
|
|
||||||
sphere: sphere.o readtex.o
|
sphere: sphere.o readtex.o
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) sphere.o readtex.o $(APP_LIB_DEPS) -o $@
|
$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) sphere.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
sphere.o: sphere.c readtex.h
|
sphere.o: sphere.c readtex.h
|
||||||
$(CC) -c -I$(INCDIR) $(CFLAGS) sphere.c
|
$(CC) -c -I$(INCDIR) $(CFLAGS) sphere.c
|
||||||
|
|||||||
3
progs/slang/.gitignore
vendored
Normal file
3
progs/slang/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
cltest
|
||||||
|
sotest
|
||||||
|
vstest
|
||||||
@@ -8,6 +8,8 @@ INCDIR = $(TOP)/include
|
|||||||
|
|
||||||
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
|
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
#
|
#
|
||||||
# targets
|
# targets
|
||||||
#
|
#
|
||||||
@@ -29,13 +31,13 @@ clean:
|
|||||||
#
|
#
|
||||||
|
|
||||||
cltest: cltest.o framework.o $(LIB_DEP)
|
cltest: cltest.o framework.o $(LIB_DEP)
|
||||||
$(CC) cltest.o framework.o $(APP_LIB_DEPS) -o cltest
|
$(CC) $(LDFLAGS) cltest.o framework.o $(LIBS) -o cltest
|
||||||
|
|
||||||
sotest: sotest.o framework.o $(LIB_DEP)
|
sotest: sotest.o framework.o $(LIB_DEP)
|
||||||
$(CC) sotest.o framework.o $(APP_LIB_DEPS) -o sotest
|
$(CC) $(LDFLAGS) sotest.o framework.o $(LIBS) -o sotest
|
||||||
|
|
||||||
vstest: vstest.o framework.o $(LIB_DEP)
|
vstest: vstest.o framework.o $(LIB_DEP)
|
||||||
$(CC) vstest.o framework.o $(APP_LIB_DEPS) -o vstest
|
$(CC) $(LDFLAGS) vstest.o framework.o $(LIBS) -o vstest
|
||||||
|
|
||||||
#
|
#
|
||||||
# objects
|
# objects
|
||||||
|
|||||||
10
progs/tests/.gitignore
vendored
10
progs/tests/.gitignore
vendored
@@ -1,5 +1,5 @@
|
|||||||
.cvsignore
|
.cvsignore
|
||||||
getproclist.h
|
afsmultiarb
|
||||||
antialias
|
antialias
|
||||||
arbfpspec
|
arbfpspec
|
||||||
arbfptest1
|
arbfptest1
|
||||||
@@ -25,13 +25,21 @@ fogcoord
|
|||||||
fptest1
|
fptest1
|
||||||
fptexture
|
fptexture
|
||||||
getprocaddress
|
getprocaddress
|
||||||
|
getproclist.h
|
||||||
|
interleave
|
||||||
invert
|
invert
|
||||||
|
jkrahntest
|
||||||
manytex
|
manytex
|
||||||
multipal
|
multipal
|
||||||
no_s3tc
|
no_s3tc
|
||||||
packedpixels
|
packedpixels
|
||||||
pbo
|
pbo
|
||||||
|
prog_parameter
|
||||||
projtex
|
projtex
|
||||||
|
random
|
||||||
|
readrate
|
||||||
|
readtex.c
|
||||||
|
readtex.h
|
||||||
seccolor
|
seccolor
|
||||||
sharedtex
|
sharedtex
|
||||||
stencil_wrap
|
stencil_wrap
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ TOP = ../..
|
|||||||
include $(TOP)/configs/current
|
include $(TOP)/configs/current
|
||||||
|
|
||||||
|
|
||||||
LIBS = $(APP_LIB_DEPS)
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
SOURCES = \
|
SOURCES = \
|
||||||
afsmultiarb.c \
|
afsmultiarb.c \
|
||||||
@@ -92,7 +92,7 @@ UTIL_FILES = readtex.h readtex.c
|
|||||||
.SUFFIXES: .c
|
.SUFFIXES: .c
|
||||||
|
|
||||||
.c:
|
.c:
|
||||||
$(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
|
$(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
||||||
@@ -118,37 +118,37 @@ getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.
|
|||||||
python getprocaddress.py > getproclist.h
|
python getprocaddress.py > getproclist.h
|
||||||
|
|
||||||
afsmultiarb: afsmultiarb.o readtex.o
|
afsmultiarb: afsmultiarb.o readtex.o
|
||||||
$(CC) $(CFLAGS) afsmultiarb.o readtex.o $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) afsmultiarb.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
afsmultiarb.o: afsmultiarb.c readtex.h
|
afsmultiarb.o: afsmultiarb.c readtex.h
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(DEFINES) $< -o $@
|
||||||
|
|
||||||
drawbuffers: drawbuffers.o
|
drawbuffers: drawbuffers.o
|
||||||
$(CC) $(CFLAGS) drawbuffers.o $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) drawbuffers.o $(LIBS) -o $@
|
||||||
|
|
||||||
drawbuffers.o: drawbuffers.c extfuncs.h
|
drawbuffers.o: drawbuffers.c extfuncs.h
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(DEFINES) $< -o $@
|
||||||
|
|
||||||
texrect: texrect.o readtex.o
|
texrect: texrect.o readtex.o
|
||||||
$(CC) $(CFLAGS) texrect.o readtex.o $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
texrect.o: texrect.c readtex.h
|
texrect.o: texrect.c readtex.h
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(DEFINES) $< -o $@
|
||||||
|
|
||||||
bug_3195: bug_3195.o readtex.o
|
bug_3195: bug_3195.o readtex.o
|
||||||
$(CC) $(CFLAGS) bug_3195.o readtex.o $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) bug_3195.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
bug_3195.o: bug_3195.c readtex.h
|
bug_3195.o: bug_3195.c readtex.h
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(DEFINES) $< -o $@
|
||||||
|
|
||||||
invert: invert.o readtex.o
|
invert: invert.o readtex.o
|
||||||
$(CC) $(CFLAGS) invert.o readtex.o $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
invert.o: invert.c readtex.h
|
invert.o: invert.c readtex.h
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(DEFINES) $< -o $@
|
||||||
|
|
||||||
readtex.o: readtex.c
|
readtex.o: readtex.c
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(DEFINES) $< -o $@
|
||||||
|
|
||||||
|
|
||||||
readtex.h: $(TOP)/progs/util/readtex.h
|
readtex.h: $(TOP)/progs/util/readtex.h
|
||||||
|
|||||||
1
progs/tools/trace/.gitignore
vendored
Normal file
1
progs/tools/trace/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
gltrace.cc
|
||||||
@@ -17,7 +17,7 @@ default: $(TRACER)
|
|||||||
|
|
||||||
$(TRACER): $(OBJECTS)
|
$(TRACER): $(OBJECTS)
|
||||||
$(TOP)/bin/mklib -o $(TRACER) -noprefix -cplusplus \
|
$(TOP)/bin/mklib -o $(TRACER) -noprefix -cplusplus \
|
||||||
$(MKLIB_OPTIONS) $(OBJECTS)
|
-ldflags '$(LDFLAGS)' $(MKLIB_OPTIONS) $(OBJECTS)
|
||||||
|
|
||||||
gltrace.cc: gltrace.py
|
gltrace.cc: gltrace.py
|
||||||
PYTHONPATH=$(TOP)/src/mesa/glapi python gltrace.py -f $(TOP)/src/mesa/glapi/gl_API.xml > gltrace.cc
|
PYTHONPATH=$(TOP)/src/mesa/glapi python gltrace.py -f $(TOP)/src/mesa/glapi/gl_API.xml > gltrace.cc
|
||||||
|
|||||||
65
progs/trivial/.gitignore
vendored
Normal file
65
progs/trivial/.gitignore
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
clear
|
||||||
|
dlist-dangling
|
||||||
|
dlist-edgeflag
|
||||||
|
dlist-edgeflag-dangling
|
||||||
|
drawarrays
|
||||||
|
drawelements
|
||||||
|
drawrange
|
||||||
|
line
|
||||||
|
line-clip
|
||||||
|
line-cull
|
||||||
|
line-userclip
|
||||||
|
line-userclip-clip
|
||||||
|
line-userclip-nop
|
||||||
|
line-userclip-nop-clip
|
||||||
|
lineloop
|
||||||
|
lineloop-clip
|
||||||
|
point
|
||||||
|
point-clip
|
||||||
|
point-param
|
||||||
|
point-wide
|
||||||
|
poly
|
||||||
|
poly-flat
|
||||||
|
poly-unfilled
|
||||||
|
quad
|
||||||
|
quad-clip
|
||||||
|
quad-clip-all-vertices
|
||||||
|
quad-clip-nearplane
|
||||||
|
quad-degenerate
|
||||||
|
quad-flat
|
||||||
|
quad-offset-factor
|
||||||
|
quad-offset-unfilled
|
||||||
|
quad-offset-units
|
||||||
|
quad-tex-2d
|
||||||
|
quad-tex-3d
|
||||||
|
quad-tex-pbo
|
||||||
|
quad-unfilled
|
||||||
|
quads
|
||||||
|
quadstrip
|
||||||
|
quadstrip-flat
|
||||||
|
readtex.c
|
||||||
|
readtex.h
|
||||||
|
tri
|
||||||
|
tri-blend
|
||||||
|
tri-clip
|
||||||
|
tri-cull
|
||||||
|
tri-dlist
|
||||||
|
tri-edgeflag
|
||||||
|
tri-flat
|
||||||
|
tri-flat-clip
|
||||||
|
tri-tex-3d
|
||||||
|
tri-unfilled
|
||||||
|
tri-unfilled-clip
|
||||||
|
tri-unfilled-smooth
|
||||||
|
tri-unfilled-userclip
|
||||||
|
tri-userclip
|
||||||
|
tristrip
|
||||||
|
tristrip-clip
|
||||||
|
vbo-drawarrays
|
||||||
|
vbo-drawelements
|
||||||
|
vbo-drawrange
|
||||||
|
vp-array
|
||||||
|
vp-clip
|
||||||
|
vp-line-clip
|
||||||
|
vp-tri
|
||||||
|
vp-unfilled
|
||||||
@@ -8,7 +8,7 @@ TOP = ../..
|
|||||||
include $(TOP)/configs/current
|
include $(TOP)/configs/current
|
||||||
|
|
||||||
|
|
||||||
LIBS = $(APP_LIB_DEPS)
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
SOURCES = \
|
SOURCES = \
|
||||||
clear.c \
|
clear.c \
|
||||||
@@ -88,7 +88,7 @@ UTIL_FILES = readtex.h readtex.c
|
|||||||
.SUFFIXES: .c
|
.SUFFIXES: .c
|
||||||
|
|
||||||
.c:
|
.c:
|
||||||
$(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
|
$(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
||||||
@@ -115,13 +115,13 @@ getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.
|
|||||||
|
|
||||||
|
|
||||||
texrect: texrect.o readtex.o
|
texrect: texrect.o readtex.o
|
||||||
$(CC) texrect.o readtex.o $(LIBS) -o $@
|
$(CC) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
texrect.o: texrect.c readtex.h
|
texrect.o: texrect.c readtex.h
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
||||||
|
|
||||||
invert: invert.o readtex.o
|
invert: invert.o readtex.o
|
||||||
$(CC) invert.o readtex.o $(LIBS) -o $@
|
$(CC) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
|
||||||
|
|
||||||
invert.o: invert.c readtex.h
|
invert.o: invert.c readtex.h
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
||||||
|
|||||||
1
progs/vp/.gitignore
vendored
Normal file
1
progs/vp/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
vp-tris
|
||||||
@@ -8,7 +8,7 @@ TOP = ../..
|
|||||||
include $(TOP)/configs/current
|
include $(TOP)/configs/current
|
||||||
|
|
||||||
|
|
||||||
LIBS = $(APP_LIB_DEPS)
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
SOURCES = \
|
SOURCES = \
|
||||||
vp-tris.c
|
vp-tris.c
|
||||||
@@ -26,7 +26,7 @@ INCLUDES = -I. -I$(TOP)/include -I../samples
|
|||||||
.SUFFIXES: .c
|
.SUFFIXES: .c
|
||||||
|
|
||||||
.c:
|
.c:
|
||||||
$(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
|
$(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
|
||||||
|
|||||||
11
progs/xdemos/.gitignore
vendored
11
progs/xdemos/.gitignore
vendored
@@ -1,16 +1,23 @@
|
|||||||
|
corender
|
||||||
glthreads
|
glthreads
|
||||||
|
glxcontexts
|
||||||
glxdemo
|
glxdemo
|
||||||
glxgears
|
glxgears
|
||||||
|
glxgears_fbconfig
|
||||||
glxheads
|
glxheads
|
||||||
glxinfo
|
glxinfo
|
||||||
glxpixmap
|
|
||||||
glxpbdemo
|
glxpbdemo
|
||||||
|
glxpixmap
|
||||||
|
glxsnoop
|
||||||
glxswapcontrol
|
glxswapcontrol
|
||||||
manywin
|
manywin
|
||||||
offset
|
offset
|
||||||
pbinfo
|
overlay
|
||||||
pbdemo
|
pbdemo
|
||||||
|
pbinfo
|
||||||
|
texture_from_pixmap
|
||||||
wincopy
|
wincopy
|
||||||
xdemo
|
xdemo
|
||||||
xfont
|
xfont
|
||||||
xrotfontdemo
|
xrotfontdemo
|
||||||
|
yuvrect_client
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ INCDIR = $(TOP)/include
|
|||||||
|
|
||||||
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME)
|
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME)
|
||||||
|
|
||||||
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
||||||
|
|
||||||
PROGS = glthreads \
|
PROGS = glthreads \
|
||||||
glxdemo \
|
glxdemo \
|
||||||
glxgears \
|
glxgears \
|
||||||
@@ -37,7 +39,7 @@ PROGS = glthreads \
|
|||||||
.SUFFIXES: .c
|
.SUFFIXES: .c
|
||||||
|
|
||||||
.c: $(LIB_DEP)
|
.c: $(LIB_DEP)
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
|
$(CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
|
|
||||||
##### TARGETS #####
|
##### TARGETS #####
|
||||||
@@ -52,32 +54,32 @@ clean:
|
|||||||
|
|
||||||
# special cases
|
# special cases
|
||||||
pbinfo: pbinfo.o pbutil.o
|
pbinfo: pbinfo.o pbutil.o
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) pbinfo.o pbutil.o $(APP_LIB_DEPS) -o $@
|
$(CC) $(LDFLAGS) pbinfo.o pbutil.o $(LIBS) -o $@
|
||||||
|
|
||||||
pbdemo: pbdemo.o pbutil.o
|
pbdemo: pbdemo.o pbutil.o
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) pbdemo.o pbutil.o $(APP_LIB_DEPS) -o $@
|
$(CC) $(LDFLAGS) pbdemo.o pbutil.o $(LIBS) -o $@
|
||||||
|
|
||||||
pbinfo.o: pbinfo.c pbutil.h
|
pbinfo.o: pbinfo.c pbutil.h
|
||||||
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbinfo.c
|
$(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbinfo.c
|
||||||
|
|
||||||
pbdemo.o: pbdemo.c pbutil.h
|
pbdemo.o: pbdemo.c pbutil.h
|
||||||
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbdemo.c
|
$(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbdemo.c
|
||||||
|
|
||||||
pbutil.o: pbutil.c pbutil.h
|
pbutil.o: pbutil.c pbutil.h
|
||||||
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbutil.c
|
$(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbutil.c
|
||||||
|
|
||||||
glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
|
glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) glxgears_fbconfig.o pbutil.o $(APP_LIB_DEPS) -o $@
|
$(CC) $(LDFLAGS) glxgears_fbconfig.o pbutil.o $(LIBS) -o $@
|
||||||
|
|
||||||
glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h
|
glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) -c -I. $(CFLAGS) glxgears_fbconfig.c
|
$(CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) -c -I. $(CFLAGS) glxgears_fbconfig.c
|
||||||
|
|
||||||
xrotfontdemo: xrotfontdemo.o xuserotfont.o
|
xrotfontdemo: xrotfontdemo.o xuserotfont.o
|
||||||
$(CC) -I$(INCDIR) $(CFLAGS) xrotfontdemo.o xuserotfont.o $(APP_LIB_DEPS) -o $@
|
$(CC) $(LDFLAGS) xrotfontdemo.o xuserotfont.o $(LIBS) -o $@
|
||||||
|
|
||||||
xuserotfont.o: xuserotfont.c xuserotfont.h
|
xuserotfont.o: xuserotfont.c xuserotfont.h
|
||||||
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) xuserotfont.c
|
$(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xuserotfont.c
|
||||||
|
|
||||||
xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
|
xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
|
||||||
$(CC) -c -I. -I$(INCDIR) $(CFLAGS) xrotfontdemo.c
|
$(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xrotfontdemo.c
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ default: $(TOP)/$(LIB_DIR)/demodriver.so
|
|||||||
|
|
||||||
|
|
||||||
$(TOP)/$(LIB_DIR)/demodriver.so: $(OBJECTS)
|
$(TOP)/$(LIB_DIR)/demodriver.so: $(OBJECTS)
|
||||||
$(TOP)/bin/mklib -o demodriver.so -noprefix \
|
$(TOP)/bin/mklib -o demodriver.so -noprefix -ldflags '$(LDFLAGS)' \
|
||||||
-install $(TOP)/$(LIB_DIR) $(OBJECTS)
|
-install $(TOP)/$(LIB_DIR) $(OBJECTS)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ default: depend library Makefile
|
|||||||
library: $(TOP)/$(LIB_DIR)/libEGLdri.so
|
library: $(TOP)/$(LIB_DIR)/libEGLdri.so
|
||||||
|
|
||||||
$(TOP)/$(LIB_DIR)/libEGLdri.so: $(OBJECTS)
|
$(TOP)/$(LIB_DIR)/libEGLdri.so: $(OBJECTS)
|
||||||
$(TOP)/bin/mklib -o EGLdri -major 1 -minor 0 \
|
$(TOP)/bin/mklib -o EGLdri -ldflags '$(LDFLAGS)' -major 1 -minor 0 \
|
||||||
-install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS)
|
-install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ default: depend library
|
|||||||
library: $(TOP)/$(LIB_DIR)/libEGL.so
|
library: $(TOP)/$(LIB_DIR)/libEGL.so
|
||||||
|
|
||||||
$(TOP)/$(LIB_DIR)/libEGL.so: $(OBJECTS)
|
$(TOP)/$(LIB_DIR)/libEGL.so: $(OBJECTS)
|
||||||
$(TOP)/bin/mklib -o EGL -major 1 -minor 0 \
|
$(TOP)/bin/mklib -o EGL -ldflags '$(LDFLAGS)' -major 1 -minor 0 \
|
||||||
-install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS)
|
-install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,19 @@ default: $(TOP)/configs/current
|
|||||||
(cd $$dir ; $(MAKE)) ; \
|
(cd $$dir ; $(MAKE)) ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
install:
|
# GLU pkg-config file
|
||||||
$(INSTALL) -d $(INSTALL_DIR)/$(LIB_DIR)
|
pcedit = sed \
|
||||||
$(INSTALL) $(TOP)/$(LIB_DIR)/libGLU.* $(INSTALL_DIR)/$(LIB_DIR)
|
-e 's,@INSTALL_DIR@,$(INSTALL_DIR),' \
|
||||||
|
-e 's,@LIB_DIR@,$(LIB_DIR),' \
|
||||||
|
-e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),'
|
||||||
|
glu.pc: glu.pc.in
|
||||||
|
$(pcedit) $< > $@
|
||||||
|
|
||||||
|
install: glu.pc
|
||||||
|
$(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
|
||||||
|
$(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)/pkgconfig
|
||||||
|
$(INSTALL) $(TOP)/$(LIB_DIR)/libGLU.* $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
|
||||||
|
$(INSTALL) -m 644 glu.pc $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)/pkgconfig
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@for dir in $(SUBDIRS) ; do \
|
@for dir in $(SUBDIRS) ; do \
|
||||||
|
|||||||
11
src/glu/glu.pc.in
Normal file
11
src/glu/glu.pc.in
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
prefix=@INSTALL_DIR@
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/@LIB_DIR@
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: glu
|
||||||
|
Description: Mesa OpenGL Utility library
|
||||||
|
Requires: gl
|
||||||
|
Version: @VERSION@
|
||||||
|
Libs: -L${libdir} -lGLU
|
||||||
|
Cflags: -I${includedir}
|
||||||
@@ -45,7 +45,7 @@ $(TOP)/$(LIB_DIR):
|
|||||||
|
|
||||||
# Make the library:
|
# Make the library:
|
||||||
$(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME): $(OBJECTS)
|
$(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME): $(OBJECTS)
|
||||||
@ $(TOP)/bin/mklib -o $(GLU_LIB) -linker '$(CC)' \
|
@ $(TOP)/bin/mklib -o $(GLU_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||||
-major $(GLU_MAJOR) -minor $(GLU_MINOR) -patch $(GLU_TINY) \
|
-major $(GLU_MAJOR) -minor $(GLU_MINOR) -patch $(GLU_TINY) \
|
||||||
$(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \
|
$(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \
|
||||||
$(GLU_LIB_DEPS) $(OBJECTS)
|
$(GLU_LIB_DEPS) $(OBJECTS)
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ $(TOP)/$(LIB_DIR):
|
|||||||
|
|
||||||
# Make the library:
|
# Make the library:
|
||||||
$(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME): $(OBJECTS)
|
$(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME): $(OBJECTS)
|
||||||
$(TOP)/bin/mklib -o $(GLU_LIB) -linker '$(CXX)' \
|
$(TOP)/bin/mklib -o $(GLU_LIB) -linker '$(CXX)' -ldflags '$(LDFLAGS)' \
|
||||||
-major $(GLU_MAJOR) -minor $(GLU_MINOR) -patch $(GLU_TINY) \
|
-major $(GLU_MAJOR) -minor $(GLU_MINOR) -patch $(GLU_TINY) \
|
||||||
-cplusplus $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \
|
-cplusplus $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \
|
||||||
$(GLU_LIB_DEPS) $(OBJECTS)
|
$(GLU_LIB_DEPS) $(OBJECTS)
|
||||||
|
|||||||
@@ -171,9 +171,9 @@ static void __gluMultMatrixVecd(const GLdouble matrix[16], const GLdouble in[4],
|
|||||||
** Invert 4x4 matrix.
|
** Invert 4x4 matrix.
|
||||||
** Contributed by David Moore (See Mesa bug #6748)
|
** Contributed by David Moore (See Mesa bug #6748)
|
||||||
*/
|
*/
|
||||||
static int __gluInvertMatrixd(const GLdouble m[16], GLdouble inv[16])
|
static int __gluInvertMatrixd(const GLdouble m[16], GLdouble invOut[16])
|
||||||
{
|
{
|
||||||
double det;
|
double inv[16], det;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
inv[0] = m[5]*m[10]*m[15] - m[5]*m[11]*m[14] - m[9]*m[6]*m[15]
|
inv[0] = m[5]*m[10]*m[15] - m[5]*m[11]*m[14] - m[9]*m[6]*m[15]
|
||||||
@@ -216,7 +216,7 @@ static int __gluInvertMatrixd(const GLdouble m[16], GLdouble inv[16])
|
|||||||
det = 1.0 / det;
|
det = 1.0 / det;
|
||||||
|
|
||||||
for (i = 0; i < 16; i++)
|
for (i = 0; i < 16; i++)
|
||||||
inv[i] *= det;
|
invOut[i] = inv[i] * det;
|
||||||
|
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,8 @@ $(TOP)/$(LIB_DIR):
|
|||||||
|
|
||||||
# Make the library
|
# Make the library
|
||||||
$(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS)
|
$(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS)
|
||||||
@$(TOP)/bin/mklib -o $(GLUT_LIB) -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) -patch $(GLUT_TINY) \
|
@$(TOP)/bin/mklib -o $(GLUT_LIB) -ldflags '$(LDFLAGS)' \
|
||||||
|
-major $(GLUT_MAJOR) -minor $(GLUT_MINOR) -patch $(GLUT_TINY) \
|
||||||
-install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) $(GLUT_LIB_DEPS) \
|
-install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) $(GLUT_LIB_DEPS) \
|
||||||
$(OBJECTS)
|
$(OBJECTS)
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ default: depend $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
|||||||
|
|
||||||
# Make the library
|
# Make the library
|
||||||
$(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS)
|
$(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS)
|
||||||
$(TOP)/bin/mklib -o $(GLUT_LIB) -linker '$(CC)' \
|
$(TOP)/bin/mklib -o $(GLUT_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||||
-major $(GLUT_MAJOR) -minor $(GLUT_MINOR) -patch $(GLUT_TINY) \
|
-major $(GLUT_MAJOR) -minor $(GLUT_MINOR) -patch $(GLUT_TINY) \
|
||||||
$(GLUT_LIB_DEPS) -install $(TOP)/$(LIB_DIR) \
|
$(GLUT_LIB_DEPS) -install $(TOP)/$(LIB_DIR) \
|
||||||
$(MKLIB_OPTIONS) $(OBJECTS)
|
$(MKLIB_OPTIONS) $(OBJECTS)
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user