diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
commit | f4092abdf94af6a99aff944d6264bc1284e8bdd4 (patch) | |
tree | 2ac1c9cc16ceb93edb2c4382c088dac5aeafdf0f /nx-X11/lib/GL/GL | |
parent | a840692edc9c6d19cd7c057f68e39c7d95eb767d (diff) | |
download | nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.gz nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.bz2 nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.zip |
Imported nx-X11-3.1.0-1.tar.gznx-X11/3.1.0-1
Summary: Imported nx-X11-3.1.0-1.tar.gz
Keywords:
Imported nx-X11-3.1.0-1.tar.gz
into Git repository
Diffstat (limited to 'nx-X11/lib/GL/GL')
-rw-r--r-- | nx-X11/lib/GL/GL/GL-def.cpp | 493 | ||||
-rw-r--r-- | nx-X11/lib/GL/GL/Imakefile | 246 |
2 files changed, 739 insertions, 0 deletions
diff --git a/nx-X11/lib/GL/GL/GL-def.cpp b/nx-X11/lib/GL/GL/GL-def.cpp new file mode 100644 index 000000000..74549ebed --- /dev/null +++ b/nx-X11/lib/GL/GL/GL-def.cpp @@ -0,0 +1,493 @@ +LIBRARY libGL +VERSION LIBRARY_VERSION +EXPORTS + glClearIndex @ 1 + glClearColor @ 2 + glClear @ 3 + glIndexMask @ 4 + glColorMask @ 5 + glAlphaFunc @ 6 + glBlendFunc @ 7 + glLogicOp @ 8 + glCullFace @ 9 + glFrontFace @ 10 + glPointSize @ 11 + glLineWidth @ 12 + glLineStipple @ 13 + glPolygonMode @ 14 + glPolygonStipple @ 15 + glGetPolygonStipple @ 16 + glEdgeFlag @ 17 + glEdgeFlagv @ 18 + glScissor @ 19 + glClipPlane @ 20 + glGetClipPlane @ 21 + glDrawBuffer @ 22 + glReadBuffer @ 23 + glEnable @ 24 + glDisable @ 25 + glIsEnabled @ 26 + glGetBooleanv @ 27 + glGetDoublev @ 28 + glGetFloatv @ 29 + glGetIntegerv @ 30 + glPushAttrib @ 31 + glPopAttrib @ 32 + glRenderMode @ 33 + glGetError @ 34 + glGetString @ 35 + glFinish @ 36 + glFlush @ 37 + glHint @ 38 + glClearDepth @ 39 + glDepthFunc @ 40 + glDepthMask @ 41 + glDepthRange @ 42 + glClearAccum @ 43 + glAccum @ 44 + glMatrixMode @ 45 + glOrtho @ 46 + glFrustum @ 47 + glViewport @ 48 + glPushMatrix @ 49 + glPopMatrix @ 50 + glLoadIdentity @ 51 + glLoadMatrixd @ 52 + glLoadMatrixf @ 53 + glMultMatrixd @ 54 + glMultMatrixf @ 55 + glRotated @ 56 + glRotatef @ 57 + glScaled @ 58 + glScalef @ 59 + glTranslated @ 60 + glTranslatef @ 61 + glIsList @ 62 + glDeleteLists @ 63 + glGenLists @ 64 + glNewList @ 65 + glEndList @ 66 + glCallList @ 67 + glCallLists @ 68 + glListBase @ 69 + glBegin @ 70 + glEnd @ 71 + glVertex2d @ 72 + glVertex2f @ 73 + glVertex2i @ 74 + glVertex2s @ 75 + glVertex3d @ 76 + glVertex3f @ 77 + glVertex3i @ 78 + glVertex3s @ 79 + glVertex4d @ 80 + glVertex4f @ 81 + glVertex4i @ 82 + glVertex4s @ 83 + glVertex2dv @ 84 + glVertex2fv @ 85 + glVertex2iv @ 86 + glVertex2sv @ 87 + glVertex3dv @ 88 + glVertex3fv @ 89 + glVertex3iv @ 90 + glVertex3sv @ 91 + glVertex4dv @ 92 + glVertex4fv @ 93 + glVertex4iv @ 94 + glVertex4sv @ 95 + glNormal3b @ 96 + glNormal3d @ 97 + glNormal3f @ 98 + glNormal3i @ 99 + glNormal3s @ 100 + glNormal3bv @ 101 + glNormal3dv @ 102 + glNormal3fv @ 103 + glNormal3iv @ 104 + glNormal3sv @ 105 + glIndexd @ 106 + glIndexf @ 107 + glIndexi @ 108 + glIndexs @ 109 + glIndexdv @ 110 + glIndexfv @ 111 + glIndexiv @ 112 + glIndexsv @ 113 + glColor3b @ 114 + glColor3d @ 115 + glColor3f @ 116 + glColor3i @ 117 + glColor3s @ 118 + glColor3ub @ 119 + glColor3ui @ 120 + glColor3us @ 121 + glColor4b @ 122 + glColor4d @ 123 + glColor4f @ 124 + glColor4i @ 125 + glColor4s @ 126 + glColor4ub @ 127 + glColor4ui @ 128 + glColor4us @ 129 + glColor3bv @ 130 + glColor3dv @ 131 + glColor3fv @ 132 + glColor3iv @ 133 + glColor3sv @ 134 + glColor3ubv @ 135 + glColor3uiv @ 136 + glColor3usv @ 137 + glColor4bv @ 138 + glColor4dv @ 139 + glColor4fv @ 140 + glColor4iv @ 141 + glColor4sv @ 142 + glColor4ubv @ 143 + glColor4uiv @ 144 + glColor4usv @ 145 + glTexCoord1d @ 146 + glTexCoord1f @ 147 + glTexCoord1i @ 148 + glTexCoord1s @ 149 + glTexCoord2d @ 150 + glTexCoord2f @ 151 + glTexCoord2i @ 152 + glTexCoord2s @ 153 + glTexCoord3d @ 154 + glTexCoord3f @ 155 + glTexCoord3i @ 156 + glTexCoord3s @ 157 + glTexCoord4d @ 158 + glTexCoord4f @ 159 + glTexCoord4i @ 160 + glTexCoord4s @ 161 + glTexCoord1dv @ 162 + glTexCoord1fv @ 163 + glTexCoord1iv @ 164 + glTexCoord1sv @ 165 + glTexCoord2dv @ 166 + glTexCoord2fv @ 167 + glTexCoord2iv @ 168 + glTexCoord2sv @ 169 + glTexCoord3dv @ 170 + glTexCoord3fv @ 171 + glTexCoord3iv @ 172 + glTexCoord3sv @ 173 + glTexCoord4dv @ 174 + glTexCoord4fv @ 175 + glTexCoord4iv @ 176 + glTexCoord4sv @ 177 + glRasterPos2d @ 178 + glRasterPos2f @ 179 + glRasterPos2i @ 180 + glRasterPos2s @ 181 + glRasterPos3d @ 182 + glRasterPos3f @ 183 + glRasterPos3i @ 184 + glRasterPos3s @ 185 + glRasterPos4d @ 186 + glRasterPos4f @ 187 + glRasterPos4i @ 188 + glRasterPos4s @ 189 + glRasterPos2dv @ 190 + glRasterPos2fv @ 191 + glRasterPos2iv @ 192 + glRasterPos2sv @ 193 + glRasterPos3dv @ 194 + glRasterPos3fv @ 195 + glRasterPos3iv @ 196 + glRasterPos3sv @ 197 + glRasterPos4dv @ 198 + glRasterPos4fv @ 199 + glRasterPos4iv @ 200 + glRasterPos4sv @ 201 + glRectd @ 202 + glRectf @ 203 + glRecti @ 204 + glRects @ 205 + glRectdv @ 206 + glRectfv @ 207 + glRectiv @ 208 + glRectsv @ 209 + glShadeModel @ 210 + glLightf @ 211 + glLighti @ 212 + glLightfv @ 213 + glLightiv @ 214 + glGetLightfv @ 215 + glGetLightiv @ 216 + glLightModelf @ 217 + glLightModeli @ 218 + glLightModelfv @ 219 + glLightModeliv @ 220 + glMaterialf @ 221 + glMateriali @ 222 + glMaterialfv @ 223 + glMaterialiv @ 224 + glGetMaterialfv @ 225 + glGetMaterialiv @ 226 + glColorMaterial @ 227 + glPixelZoom @ 228 + glPixelStoref @ 229 + glPixelStorei @ 230 + glPixelTransferf @ 231 + glPixelTransferi @ 232 + glPixelMapfv @ 233 + glPixelMapuiv @ 234 + glPixelMapusv @ 235 + glGetPixelMapfv @ 236 + glGetPixelMapuiv @ 237 + glGetPixelMapusv @ 238 + glBitmap @ 239 + glReadPixels @ 240 + glDrawPixels @ 241 + glCopyPixels @ 242 + glStencilFunc @ 243 + glStencilMask @ 244 + glStencilOp @ 245 + glClearStencil @ 246 + glTexGend @ 247 + glTexGenf @ 248 + glTexGeni @ 249 + glTexGendv @ 250 + glTexGenfv @ 251 + glTexGeniv @ 252 + glGetTexGendv @ 253 + glGetTexGenfv @ 254 + glGetTexGeniv @ 255 + glTexEnvf @ 256 + glTexEnvi @ 257 + glTexEnvfv @ 258 + glTexEnviv @ 259 + glGetTexEnvfv @ 260 + glGetTexEnviv @ 261 + glTexParameterf @ 262 + glTexParameteri @ 263 + glTexParameterfv @ 264 + glTexParameteriv @ 265 + glGetTexParameterfv @ 266 + glGetTexParameteriv @ 267 + glGetTexLevelParameterfv @ 268 + glGetTexLevelParameteriv @ 269 + glTexImage1D @ 270 + glTexImage2D @ 271 + glGetTexImage @ 272 + glMap1d @ 273 + glMap1f @ 274 + glMap2d @ 275 + glMap2f @ 276 + glGetMapdv @ 277 + glGetMapfv @ 278 + glGetMapiv @ 279 + glEvalCoord1d @ 280 + glEvalCoord1f @ 281 + glEvalCoord1dv @ 282 + glEvalCoord1fv @ 283 + glEvalCoord2d @ 284 + glEvalCoord2f @ 285 + glEvalCoord2dv @ 286 + glEvalCoord2fv @ 287 + glMapGrid1d @ 288 + glMapGrid1f @ 289 + glMapGrid2d @ 290 + glMapGrid2f @ 291 + glEvalPoint1 @ 292 + glEvalPoint2 @ 293 + glEvalMesh1 @ 294 + glEvalMesh2 @ 295 + glFogf @ 296 + glFogi @ 297 + glFogfv @ 298 + glFogiv @ 299 + glFeedbackBuffer @ 300 + glPassThrough @ 301 + glSelectBuffer @ 302 + glInitNames @ 303 + glLoadName @ 304 + glPushName @ 305 + glPopName @ 306 +; glBlendEquationEXT @ 307 +; glBlendColorEXT @ 308 + glPolygonOffset @ 309 +#ifndef __UNIXOS2__ +; glVertexPointerEXT @ 310 +; glNormalPointerEXT @ 311 +#else + glVertexPointerEXT @ 310 + glNormalPointerEXT @ 311 +#endif +; glColorPointerEXT @ 312 +; glIndexPointerEXT @ 313 +; glTexCoordPointerEXT @ 314 +; glEdgeFlagPointerEXT @ 315 +; glGetPointervEXT @ 316 +; glArrayElementEXT @ 317 +#ifndef __UNIXOS2__ +; glDrawArraysEXT @ 318 +#else + glDrawArraysEXT @ 318 +#endif +; OSMesaCreateContext @ 319 +; OSMesaDestroyContext @ 320 +; OSMesaMakeCurrent @ 321 +; XMesaCreateContext @ 322 +; XMesaDestroyContext @ 323 +; XMesaMakeCurrent @ 326 +; XMesaGetCurrentContext @ 327 +; XMesaSwapBuffers @ 328 +; XMesaGetBackBuffer @ 329 + glXChooseVisual @ 330 + glXCreateContext @ 331 + glXDestroyContext @ 332 + glXMakeCurrent @ 333 + glXCopyContext @ 334 + glXSwapBuffers @ 335 + glXCreateGLXPixmap @ 336 + glXDestroyGLXPixmap @ 337 + glXQueryExtension @ 338 + glXQueryVersion @ 339 + glXIsDirect @ 340 + glXGetConfig @ 341 + glXGetCurrentContext @ 342 + glXGetCurrentDrawable @ 343 + glXWaitGL @ 344 + glXWaitX @ 345 + glXUseXFont @ 346 + glXQueryExtensionsString @ 347 + glXQueryServerString @ 348 + glXGetClientString @ 349 + glPushClientAttrib @ 350 + glPopClientAttrib @ 351 + glIndexub @ 352 + glIndexubv @ 353 + glVertexPointer @ 354 + glNormalPointer @ 355 + glColorPointer @ 356 + glIndexPointer @ 357 + glTexCoordPointer @ 358 + glEdgeFlagPointer @ 359 + glGetPointerv @ 360 + glArrayElement @ 361 + glDrawArrays @ 362 + glDrawElements @ 363 + glInterleavedArrays @ 364 + glGenTextures @ 365 + glDeleteTextures @ 366 + glBindTexture @ 367 + glPrioritizeTextures @ 368 + glAreTexturesResident @ 369 + glIsTexture @ 370 + glTexSubImage1D @ 371 + glTexSubImage2D @ 372 + glCopyTexImage1D @ 373 + glCopyTexImage2D @ 374 + glCopyTexSubImage1D @ 375 + glCopyTexSubImage2D @ 376 +; glWindowPos2iMESA @ 377 +; glWindowPos2sMESA @ 378 +#ifndef __UNIXOS2__ +; glWindowPos2fMESA @ 379 +#else + glWindowPos2fMESA @ 379 +#endif +; glWindowPos2dMESA @ 380 +; glWindowPos2ivMESA @ 381 +; glWindowPos2svMESA @ 382 +; glWindowPos2fvMESA @ 383 +; glWindowPos2dvMESA @ 384 +; glWindowPos3iMESA @ 385 +; glWindowPos3sMESA @ 386 +; glWindowPos3fMESA @ 387 +; glWindowPos3dMESA @ 388 +; glWindowPos3ivMESA @ 389 +; glWindowPos3svMESA @ 390 +; glWindowPos3fvMESA @ 391 +; glWindowPos3dvMESA @ 392 +; glWindowPos4iMESA @ 393 +; glWindowPos4sMESA @ 394 +; glWindowPos4fMESA @ 395 +; glWindowPos4dMESA @ 396 +; glWindowPos4ivMESA @ 397 +; glWindowPos4svMESA @ 398 +; glWindowPos4fvMESA @ 399 +; glWindowPos4dvMESA @ 400 +#ifndef __UNIXOS2__ +; glXCreateGLXPixmapMESA @ 401 +#else + glXCreateGLXPixmapMESA @ 401 +#endif +; glXReleaseBuffersMESA @ 402 +; OSMesaGetCurrentContext @ 403 +; OSMesaPixelStore @ 404 +; OSMesaGetIntegerv @ 405 +; XMesaCreateVisual @ 406 +; XMesaDestroyVisual @ 407 +; XMesaCreateWindowBuffer @ 408 +; XMesaCreatePixmapBuffer @ 409 +; XMesaDestroyBuffer @ 410 +; XMesaGetCurrentBuffer @ 411 +; XMesaFlush @ 412 +; XMesaGetString @ 413 +; glPolygonOffsetEXT @ 414 + glDisableClientState @ 450 + glEnableClientState @ 451 + glXFreeContextEXT @ 452 + glXGetContextIDEXT @ 453 + glXGetCurrentDisplay @ 454 + glXImportContextEXT @ 455 + glXQueryContextInfoEXT @ 456 +#ifndef __UNIXOS2__ + glXGetCurrentDrawableEXT @ 457 +#endif + glCopyTexSubImage3D @ 458 + glDrawRangeElements @ 459 + glTexSubImage3D @ 460 + glBlendColorEXT @ 461 + glBlendEquationEXT @ 462 + glTexImage3D @ 463 +#ifdef __UNIXOS2__ + _glapi_Context @ 500 + _glapi_Dispatch @ 501 + glMultiTexCoord1svARB @ 502 + glMultiTexCoord1ivARB @ 503 + glMultiTexCoord1fvARB @ 504 + glMultiTexCoord1dvARB @ 505 + glMultiTexCoord2svARB @ 506 + glMultiTexCoord2ivARB @ 507 + glMultiTexCoord2fvARB @ 508 + glMultiTexCoord2dvARB @ 509 + glMultiTexCoord3svARB @ 510 + glMultiTexCoord3ivARB @ 511 + glMultiTexCoord3fvARB @ 512 + glMultiTexCoord3dvARB @ 513 + glMultiTexCoord4svARB @ 514 + glMultiTexCoord4ivARB @ 515 + glMultiTexCoord4fvARB @ 516 + glMultiTexCoord4dvARB @ 517 + glMultiTexCoord1fARB @ 518 + glMultiTexCoord2fARB @ 519 + glMultiTexCoord3fARB @ 520 + glMultiTexCoord4fARB @ 521 + _glapi_set_dispatch @ 522 + _glapi_noop_enable_warnings @ 523 + _glapi_add_entrypoint @ 524 + _glapi_get_dispatch_table_size @ 525 + _glapi_check_multithread @ 526 + _glapi_set_context @ 527 + _glapi_get_context @ 528 + glColorTable @ 529 + glColorSubTable @ 530 + glConvolutionFilter1D @ 531 + glConvolutionFilter2D @ 532 + glXGetProcAddressARB @ 533 + glLockArraysEXT @ 534 + glUnlockArraysEXT @ 535 + glActiveTextureARB @ 536 + glColorTableEXT @ 537 + glPointParameterfEXT @ 538 + glPointParameterfvEXT @ 539 + glXMakeContextCurrent @ 540 +#endif + +/* $XFree86: xc/lib/GL/GL/GL-def.cpp,v 1.2 2003/03/25 04:18:07 dawes Exp $ */ diff --git a/nx-X11/lib/GL/GL/Imakefile b/nx-X11/lib/GL/GL/Imakefile new file mode 100644 index 000000000..336f3d5b7 --- /dev/null +++ b/nx-X11/lib/GL/GL/Imakefile @@ -0,0 +1,246 @@ +XCOMM $XFree86: xc/lib/GL/GL/Imakefile,v 1.23 2003/11/17 03:10:41 dawes Exp $ + +#include <Threads.tmpl> + +#define DoNormalLib NormalLibGlx +#define DoSharedLib SharedLibGlx +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx + +#ifndef ShLibBindGlobals +#if !HasGcc2 || (GccMajorVersion > 2) || (GccMinorVersion > 7) +#define ShlibBindGlobals YES +#endif +#endif + + LIBNAME = GL + SOREV = $(SOGLREV) + +#ifdef SharedGLReqs +BASEREQUIREDLIBS = SharedGLReqs +#endif + +#include "../mesa/array_cache/Imakefile.inc" +#include "../mesa/math/Imakefile.inc" +#include "../mesa/swrast/Imakefile.inc" +#include "../mesa/swrast_setup/Imakefile.inc" +#include "../mesa/tnl/Imakefile.inc" +#include "../mesa/tnl_dd/Imakefile.inc" +#include "../mesa/Imakefile.inc" +#ifdef i386Architecture +#include "../mesa/x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../mesa/sparc/Imakefile.inc" +#endif + + +#if BuildXF86DRI && defined(i386Architecture) && MesaUseX86Asm + GLAPI_OBJ = $(GLXLIBSRC)/glx/glapi_x86.o +#endif + + GLXOBJS = $(GLXLIBSRC)/glx/?*.o + GLXUOBJS = $(GLXLIBSRC)/glx/unshared/?*.o $(GLAPI_OBJ) + GLXDOBJS = $(GLXLIBSRC)/glx/debugger/?*.o $(GLAPI_OBJ) + GLXPOBJS = $(GLXLIBSRC)/glx/profiled/?*.o $(GLAPI_OBJ) + +#if BuildXF86DRI + DRMOBJS = $(GLXLIBSRC)/dri/drm/?*.o + DRMUOBJS = $(GLXLIBSRC)/dri/drm/unshared/?*.o + DRMDOBJS = $(GLXLIBSRC)/dri/drm/debugger/?*.o + DRMPOBJS = $(GLXLIBSRC)/dri/drm/profiled/?*.o + + MESAOBJS = $(COREMESAOBJS) $(MESA_ASM_OBJS) + MESAUOBJS = $(COREMESAUOBJS) $(MESA_ASM_UOBJS) + MESADOBJS = $(COREMESADOBJS) $(MESA_ASM_DOBJS) + MESAPOBJS = $(COREMESAPOBJS) $(MESA_ASM_POBJS) + +#if GlxUseBuiltInDRIDriver +#include "../mesa/drivers/dri/common/Imakefile.inc" +#endif + + +#if GlxUseSGISI + +XCOMM nothing + +#elif GlxBuiltInGamma + +#define MesaDrvGammaBuildDir $(GLXLIBSRC)/mesa/drivers/dri/gamma/ +#include "../mesa/drivers/dri/gamma/Imakefile.inc" + + DRVOBJS = $(GAMMAOBJS) $(MESAOBJS) + DRVUOBJS = $(GAMMAUOBJS) $(MESAUOBJS) + DRVDOBJS = $(GAMMADOBJS) $(MESADOBJS) + DRVPOBJS = $(GAMMAPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInTdfx + +#define MesaDrvTdfxBuildDir $(GLXLIBSRC)/mesa/drivers/dri/tdfx/ +#include "../mesa/drivers/dri/tdfx/Imakefile.inc" + + DRVOBJS = $(TDFXOBJS) $(MESAOBJS) + DRVUOBJS = $(TDFXUOBJS) $(MESAUOBJS) + DRVDOBJS = $(TDFXDOBJS) $(MESADOBJS) + DRVPOBJS = $(TDFXPOBJS) $(MESAPOBJS) + +OTHERREQUIREDLIBS = -lglide3 -ldl + +#elif GlxBuiltInI810 + +#define MesaDrvI810BuildDir $(GLXLIBSRC)/mesa/drivers/dri/i810/ +#include "../mesa/drivers/dri/i810/Imakefile.inc" + + DRVOBJS = $(I810OBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(I810UOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(I810DOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(I810POBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInI915 +#define MesaDrvI915BuildDir $(GLXLIBSRC)/mesa/drivers/dri/i915/ +#include "../mesa/drivers/dri/i915/Imakefile.inc" + + DRVOBJS = $(I915OBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(I915UOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(I915DOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(I915POBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInMga + +#define MesaDrvMgaBuildDir $(GLXLIBSRC)/mesa/drivers/dri/mga/ +#include "../mesa/drivers/dri/mga/Imakefile.inc" + + DRVOBJS = $(MGAOBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(MGAUOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(MGADOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(MGAPOBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInR128 + +#define MesaDrvR128BuildDir $(GLXLIBSRC)/mesa/drivers/dri/r128/ +#include "../mesa/drivers/dri/r128/Imakefile.inc" + + DRVOBJS = $(R128OBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(R128UOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(R128DOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(R128POBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInRadeon + +#define MesaDrvRadeonBuildDir $(GLXLIBSRC)/mesa/drivers/dri/radeon/ +#include "../mesa/drivers/dri/radeon/Imakefile.inc" + + DRVOBJS = $(RADEONOBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(RADEONUOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(RADEONDOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(RADEONPOBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInFfb + +#define MesaDrvFfbBuildDir $(GLXLIBSRC)/mesa/drivers/dri/ffb/ +#include "../mesa/drivers/dri/ffb/Imakefile.inc" + + DRVOBJS = $(FFBOBJS) $(MESAOBJS) + DRVUOBJS = $(FFBUOBJS) $(MESAUOBJS) + DRVDOBJS = $(FFBDOBJS) $(MESADOBJS) + DRVPOBJS = $(FFBPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInSIS + +#define MesaDrvSisBuildDir $(GLXLIBSRC)/mesa/drivers/dri/sis/ +#include "../mesa/drivers/dri/sis/Imakefile.inc" + + DRVOBJS = $(SISOBJS) $(MESAOBJS) + DRVUOBJS = $(SISUOBJS) $(MESAUOBJS) + DRVDOBJS = $(SISDOBJS) $(MESADOBJS) + DRVPOBJS = $(SISPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInXMesa + +#include "../mesa/drivers/x11/Imakefile.inc" + + DRVOBJS = $(MESAOBJS) $(XMESA_OBJS) + DRVUOBJS = $(MESAUOBJS) $(XMESA_UOBJS) + DRVDOBJS = $(MESADOBJS) $(XMESA_DOBJS) + DRVPOBJS = $(MESAPOBJS) $(XMESA_POBJS) + +#else + +XCOMM No built-in drivers. This is the usual case. + +#endif + +#endif /* BuildXF86DRI */ + +#if defined(DarwinArchitecture) && BuildAppleDRI + APPLEOBJS = appledri.o dri_dispatch.o dri_driver.o dri_glx.o x-list.o x-hash.o + DRIOBJS = $(APPLEOBJS:%.o=$(GLXLIBSRC)/apple/%.o) + DRIUOBJS = $(APPLEOBJS:%.o=$(GLXLIBSRC)/apple/unshared/%.o) + DRIDOBJS = $(APPLEOBJS:%.o=$(GLXLIBSRC)/apple/debugger/%.o) + DRIPOBJS = $(APPLEOBJS:%.o=$(GLXLIBSRC)/apple/profiled/%.o) + +NATIVE_GL = /System/Library/Frameworks/OpenGL.framework + +OTHERREQUIREDLIBS = \ + XpluginLibrary $(NATIVE_GL)/Libraries/libGL.dylib -sub_library libGL \ + -framework ApplicationServices -framework CoreFoundation \ + -framework OpenGL +#endif + +#if BuildXF86DRI && BuildXF86VidModeExt +VMODEREQUIREDLIBS = $(LDPRELIBS) $(XXF86VMLIB) +#endif + +/* + * Note: DRIDIRS is empty for !BuildXF86DRI, and DRVSUBDIRS is empty + * for no built-in drivers. + */ + +REQUIREDLIBS = $(OTHERREQUIREDLIBS) $(VMODEREQUIREDLIBS) $(BASEREQUIREDLIBS) + + OBJS = $(GLXOBJS) $(DRIOBJS) $(DRVOBJS) $(DRMOBJS) +#if HasSharedLibraries && !SharedLibGlxWithoutPIC + UOBJS = $(GLXUOBJS) $(DRIUOBJS) $(DRVUOBJS) $(DRMUOBJS) +#else + UOBJS = $(OBJS) +#endif + DOBJS = $(GLXDOBJS) $(DRIDOBJS) $(DRVDOBJS) $(DRMDOBJS) + POBJS = $(GLXPOBJS) $(DRIPOBJS) $(DRVPOBJS) $(DRMPOBJS) + +#if LocalThreads + THREADOBJS = $(THREADS_LIBS) +#endif + +#include <Library.tmpl> + +#undef _LinkBuildLibrary +#define _LinkBuildLibrary(lib) LinkBuildLibrary(lib) + + +#if NormalLibGlx +NormalLibraryTarget($(LIBNAME),$(UOBJS)) +InstallLibrary($(LIBNAME),$(USRLIBDIR)) +#endif +#if SharedLibGlx +SharedDepLibraryTarget($(LIBNAME),$(SOREV),$(OBJS),$(OBJS) $(THREADOBJS),.,.) +InstallSharedLibrary($(LIBNAME),$(SOREV),$(SHLIBDIR)) +#if LinkGLToUsrLib && AlternateUsrLibDir +install:: + MakeDir($(DESTDIR)$(SYSTEMUSRLIBDIR)) + $(RM) $(DESTDIR)$(SYSTEMUSRLIBDIR)/lib$(LIBNAME).so + $(LN) $(SHLIBDIR)/lib$(LIBNAME).so $(DESTDIR)$(SYSTEMUSRLIBDIR)/lib$(LIBNAME).so || true + $(RM) $(DESTDIR)$(SYSTEMUSRLIBDIR)/lib$(LIBNAME).so.1 + $(LN) $(SHLIBDIR)/lib$(LIBNAME).so.1 $(DESTDIR)$(SYSTEMUSRLIBDIR)/lib$(LIBNAME).so.1 || true +#endif +#endif +#if DebugLibGlx +DebuggedLibraryTarget($(LIBNAME),$(DOBJS)) +InstallLibrary($(LIBNAME)_d,$(USRLIBDIR)) +#endif +#if ProfileLibGlx +ProfiledLibraryTarget($(LIBNAME),$(POBJS)) +InstallLibrary($(LIBNAME)_p,$(USRLIBDIR)) +#endif + + |