aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib')
-rw-r--r--nx-X11/lib/GL/GL/GL-def.cpp493
-rw-r--r--nx-X11/lib/GL/GL/Imakefile244
-rw-r--r--nx-X11/lib/GL/Imakefile133
-rw-r--r--nx-X11/lib/GL/glx/Imakefile233
-rw-r--r--nx-X11/lib/GL/mesa/Imakefile84
-rw-r--r--nx-X11/lib/GL/mesa/Imakefile.inc57
-rw-r--r--nx-X11/lib/GL/mesa/array_cache/Imakefile91
-rw-r--r--nx-X11/lib/GL/mesa/array_cache/Imakefile.inc34
-rw-r--r--nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile44
-rw-r--r--nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile.inc105
-rw-r--r--nx-X11/lib/GL/mesa/drivers/osmesa/Imakefile111
-rw-r--r--nx-X11/lib/GL/mesa/drivers/osmesa/OSMesa-def.cpp0
-rw-r--r--nx-X11/lib/GL/mesa/drivers/x11/Imakefile70
-rw-r--r--nx-X11/lib/GL/mesa/drivers/x11/Imakefile.inc104
-rw-r--r--nx-X11/lib/GL/mesa/main/Imakefile66
-rw-r--r--nx-X11/lib/GL/mesa/main/Imakefile.inc487
-rw-r--r--nx-X11/lib/GL/mesa/math/Imakefile98
-rw-r--r--nx-X11/lib/GL/mesa/math/Imakefile.inc82
-rw-r--r--nx-X11/lib/GL/mesa/shader/Imakefile107
-rw-r--r--nx-X11/lib/GL/mesa/shader/Imakefile.inc106
-rw-r--r--nx-X11/lib/GL/mesa/shader/grammar/Imakefile98
-rw-r--r--nx-X11/lib/GL/mesa/shader/grammar/Imakefile.inc29
-rw-r--r--nx-X11/lib/GL/mesa/shader/slang/Imakefile108
-rw-r--r--nx-X11/lib/GL/mesa/shader/slang/Imakefile.inc90
-rw-r--r--nx-X11/lib/GL/mesa/shader/slang/library/Imakefile97
-rw-r--r--nx-X11/lib/GL/mesa/shader/slang/library/Imakefile.inc14
-rw-r--r--nx-X11/lib/GL/mesa/sparc/Imakefile68
-rw-r--r--nx-X11/lib/GL/mesa/sparc/Imakefile.inc58
-rw-r--r--nx-X11/lib/GL/mesa/swrast/Imakefile100
-rw-r--r--nx-X11/lib/GL/mesa/swrast/Imakefile.inc218
-rw-r--r--nx-X11/lib/GL/mesa/swrast_setup/Imakefile99
-rw-r--r--nx-X11/lib/GL/mesa/swrast_setup/Imakefile.inc36
-rw-r--r--nx-X11/lib/GL/mesa/tnl/Imakefile101
-rw-r--r--nx-X11/lib/GL/mesa/tnl/Imakefile.inc225
-rw-r--r--nx-X11/lib/GL/mesa/tnl_dd/Imakefile63
-rw-r--r--nx-X11/lib/GL/mesa/tnl_dd/Imakefile.inc40
-rw-r--r--nx-X11/lib/GL/mesa/x86/Imakefile108
-rw-r--r--nx-X11/lib/GL/mesa/x86/Imakefile.inc217
-rw-r--r--nx-X11/lib/Imakefile37
-rw-r--r--nx-X11/lib/X11/Imakefile2
-rw-r--r--nx-X11/lib/Xcomposite/AUTHORS1
-rw-r--r--nx-X11/lib/Xcomposite/COPYING22
-rw-r--r--nx-X11/lib/Xcomposite/ChangeLog19
-rw-r--r--nx-X11/lib/Xcomposite/INSTALL8
-rw-r--r--nx-X11/lib/Xcomposite/Imakefile12
-rw-r--r--nx-X11/lib/Xcomposite/NEWS0
-rw-r--r--nx-X11/lib/Xcomposite/README10
-rwxr-xr-xnx-X11/lib/Xcomposite/autogen.sh3
-rw-r--r--nx-X11/lib/Xcomposite/configure.ac102
-rw-r--r--nx-X11/lib/Xcomposite/xcomposite.pc.in10
-rw-r--r--nx-X11/lib/Xfixes/AUTHORS1
-rw-r--r--nx-X11/lib/Xfixes/COPYING22
-rw-r--r--nx-X11/lib/Xfixes/ChangeLog102
-rw-r--r--nx-X11/lib/Xfixes/INSTALL8
-rw-r--r--nx-X11/lib/Xfixes/Imakefile12
-rw-r--r--nx-X11/lib/Xfixes/NEWS0
-rw-r--r--nx-X11/lib/Xfixes/README10
-rwxr-xr-xnx-X11/lib/Xfixes/autogen.sh3
-rw-r--r--nx-X11/lib/Xfixes/configure.ac99
-rw-r--r--nx-X11/lib/Xfixes/xfixes.pc.in10
-rw-r--r--nx-X11/lib/Xrender/AUTHORS3
-rw-r--r--nx-X11/lib/Xrender/COPYING22
-rw-r--r--nx-X11/lib/Xrender/ChangeLog456
-rw-r--r--nx-X11/lib/Xrender/Color.c6
-rw-r--r--nx-X11/lib/Xrender/INSTALL8
-rw-r--r--nx-X11/lib/Xrender/Imakefile11
-rw-r--r--nx-X11/lib/Xrender/NEWS0
-rw-r--r--nx-X11/lib/Xrender/README0
-rwxr-xr-xnx-X11/lib/Xrender/autogen.sh3
-rw-r--r--nx-X11/lib/Xrender/config-subst10
-rw-r--r--nx-X11/lib/Xrender/configure.ac113
-rw-r--r--nx-X11/lib/Xrender/xrender.pc.in11
-rw-r--r--nx-X11/lib/Xxf86dga/Imakefile63
-rw-r--r--nx-X11/lib/Xxf86dga/XDGA.man673
-rw-r--r--nx-X11/lib/Xxf86dga/XF86DGA.c722
-rw-r--r--nx-X11/lib/Xxf86dga/XF86DGA2.c968
-rw-r--r--nx-X11/lib/Xxf86dga/Xxf86dga-def.cpp16
-rw-r--r--nx-X11/lib/Xxf86misc/Imakefile40
-rw-r--r--nx-X11/lib/Xxf86misc/XF86Misc.c406
-rw-r--r--nx-X11/lib/Xxf86misc/XF86Misc.man217
-rw-r--r--nx-X11/lib/Xxf86misc/Xxf86misc-def.cpp14
-rw-r--r--nx-X11/lib/Xxf86rush/Imakefile30
-rw-r--r--nx-X11/lib/Xxf86rush/XF86Rush.c291
-rw-r--r--nx-X11/lib/Xxf86vm/Imakefile40
-rw-r--r--nx-X11/lib/Xxf86vm/XF86VM.man425
-rw-r--r--nx-X11/lib/Xxf86vm/XF86VMode.c1231
-rw-r--r--nx-X11/lib/Xxf86vm/Xxf86vm-def.cpp16
-rw-r--r--nx-X11/lib/xkbui/Imakefile25
-rw-r--r--nx-X11/lib/xkbui/XKBui.c666
-rw-r--r--nx-X11/lib/xkbui/XKBui.h194
-rw-r--r--nx-X11/lib/xkbui/XKBuiPriv.h71
-rw-r--r--nx-X11/lib/xkbui/xkbui-def.cpp16
92 files changed, 4 insertions, 11774 deletions
diff --git a/nx-X11/lib/GL/GL/GL-def.cpp b/nx-X11/lib/GL/GL/GL-def.cpp
deleted file mode 100644
index 74549ebed..000000000
--- a/nx-X11/lib/GL/GL/GL-def.cpp
+++ /dev/null
@@ -1,493 +0,0 @@
-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
deleted file mode 100644
index 8c3ac0af4..000000000
--- a/nx-X11/lib/GL/GL/Imakefile
+++ /dev/null
@@ -1,244 +0,0 @@
-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
diff --git a/nx-X11/lib/GL/Imakefile b/nx-X11/lib/GL/Imakefile
deleted file mode 100644
index 6b350203c..000000000
--- a/nx-X11/lib/GL/Imakefile
+++ /dev/null
@@ -1,133 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/Imakefile,v 1.43 2003/06/30 01:45:10 torrey Exp $
-
-XCOMM
-XCOMM Imake tokens which are significant to building libGL:
-XCOMM
-XCOMM BuildGLXLibrary - if defined, build libs in xc/lib/GL and xc/lib/GLw
-XCOMM
-XCOMM BuildXF86DRI - if defined, build libGL with DRI capability
-XCOMM
-XCOMM Only zero or one of the following can be defined at once:
-XCOMM GlxBuiltInGamma - if defined, build gamma_dri.so driver into libGL
-XCOMM GlxBuiltInTdfx - if defined, build tdfx_dri.so driver into libGL
-XCOMM GlxBuiltInMga - if defined, build mga_dri.so driver into libGL
-XCOMM GlxBuiltInI810 - if defined, build i810_dri.so driver into libGL
-XCOMM GlxBuiltInR128 - if defined, build r128_dri.so driver into libGL
-XCOMM GlxBuiltInRadeon - if defined, build radeon_dri.so driver into libGL
-XCOMM GlxBuiltInR200 - if defined, build r200_dri.so driver into libGL
-XCOMM GlxBuiltInFfb - if defined, build ffb_dri.so driver into libGL
-XCOMM GlxBuiltInSIS - if defined, build sis_dri.so driver into libGL
-XCOMM
-XCOMM GlxUseBuiltInDRIDriver - automatically defined if any of the
-XCOMM GlxBuiltIn[Gamma,Tdfx,Mga,I810,R128,Radeon,R200,Ffb,SIS] tokens is
-XCOMM defined
-XCOMM
-XCOMM GlxBuiltInXMesa - if defined, build XMesa (Xlib Mesa driver) into libGL
-XCOMM to enable rendering to displays that lack the GLX extension.
-XCOMM
-XCOMM GlxDriverUsesMesa - will be defined if building a DRI driver into
-XCOMM libGL and it uses Mesa.
-XCOMM
-XCOMM GlxUseSGISI - if defined, use the SGI OpenGL Sample Implementation
-XCOMM to build the GLX server extension (not fully implemented yet).
-XCOMM
-XCOMM NormalLibGlx - if defined, build static libGL.a library
-XCOMM
-XCOMM SharedLibGlx - if defined, build dynamic libGL.so library
-XCOMM
-XCOMM DebugLibGlx - if defined, build libGL with debug info
-XCOMM
-XCOMM ProfileLibGlx - if defined, build libGL with profiling info
-XCOMM
-XCOMM SharedGlxRev - dynamic library version, currently defined to be "1.2"
-XCOMM
-XCOMM GlxSoProf - if defined, build dynamic libGL for profiling with soprof
-XCOMM
-XCOMM GlxStubLib - purpose???
-XCOMM
-XCOMM
-XCOMM Server-side tokens:
-XCOMM BuildGlxExt
-XCOMM GlxUseSGISI
-
-NULL =
-
-#include <Threads.tmpl>
-
-#define IHaveSubdirs
-
-#define PassCDebugFlags
-
-LIBGLBUILDDIR = GL
- GLXDIRS = glx
-
-/*
- * Need to build the Mesa + XMesa source in the following cases:
- * BuildXF86DRI && defined(DriDrivers)
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- */
-#if BuildOSMesaLib || \
- (BuildXF86DRI && \
- (defined(DriDrivers) || GlxDriverUsesMesa || GlxBuiltInXMesa))
- MESADIRS = mesa
-#endif
-
-/*
- * Only need the OSmesa code in the following case:
- * BuildOSMesaLib
- */
-#if BuildOSMesaLib
- OSMESADIRS = mesa/drivers/osmesa
-#endif
-
-/*
- * Need to build the DRI code in the following cases:
- * BuildXF86DRI
- */
-#if BuildXF86DRI
- DRIDIRS = dri/drm
-#endif
-
-/*
- * Need to build the DRI drivers in the following cases:
- * BuildXF86DRI && defined(DriDrivers)
- */
-#if BuildXF86DRI && defined(DriDrivers)
- DRIVERDIRS = mesa/drivers/dri
-#endif
-
-#if defined(DarwinArchitecture) && BuildAppleDRI
- DRIDIRS = apple
-#endif
-
-/*
- * The build order depends on whether the drivers are loaded into libGL or
- * built-in to libGL. In the former case, libGL needs to be built before
- * the drivers, and in the latter case, it needs to be built after the driver.
- */
-#if BuildXF86DRI && GlxUseBuiltInDRIDriver
-SUBDIRS = \
- $(MESADIRS) \
- $(DRIDIRS) \
- $(DRIVERDIRS) \
- $(GLXDIRS) \
- $(LIBGLBUILDDIR) \
- $(OSMESADIRS) \
- $(NULL)
-#else
-SUBDIRS = \
- $(MESADIRS) \
- $(GLXDIRS) \
- $(DRIDIRS) \
- $(LIBGLBUILDDIR) \
- $(OSMESADIRS) \
- $(DRIVERDIRS) \
- $(NULL)
-#endif
-
-MakeSubdirs($(SUBDIRS))
-
-DependSubdirs($(SUBDIRS))
-
diff --git a/nx-X11/lib/GL/glx/Imakefile b/nx-X11/lib/GL/glx/Imakefile
deleted file mode 100644
index 97d3b3224..000000000
--- a/nx-X11/lib/GL/glx/Imakefile
+++ /dev/null
@@ -1,233 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/glx/Imakefile,v 1.22 2003/11/12 00:10:24 dawes Exp $
-XCOMM The contents of this file are subject to the GLX Public License Version 1.0
-XCOMM (the "License"). You may not use this file except in compliance with the
-XCOMM License. You may obtain a copy of the License at Silicon Graphics, Inc.,
-XCOMM attn: Legal Services, 2011 N. Shoreline Blvd., Mountain View, CA 94043
-XCOMM or at http://www.sgi.com/software/opensource/glx/license.html.
-XCOMM
-XCOMM Software distributed under the License is distributed on an "AS IS"
-XCOMM basis. ALL WARRANTIES ARE DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY
-XCOMM IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR
-XCOMM PURPOSE OR OF NON- INFRINGEMENT. See the License for the specific
-XCOMM language governing rights and limitations under the License.
-XCOMM
-XCOMM The Original Software is GLX version 1.2 source code, released February,
-XCOMM 1999. The developer of the Original Software is Silicon Graphics, Inc.
-XCOMM Those portions of the Subject Software created by Silicon Graphics, Inc.
-XCOMM are Copyright (c) 1991-9 Silicon Graphics, Inc. All Rights Reserved.
-
-XCOMM $XdotOrg: xc/lib/GL/glx/Imakefile,v 1.12 2005/08/23 04:03:51 airlied Exp $
-
-#include <Threads.tmpl>
-
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-XCOMM #define IHaveSubdirs
-XCOMM #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
-XCOMM
-XCOMM SUBDIRS = \
-XCOMM glu \
-XCOMM glw
-
-/* Files from Mesa */
-
-LinkSourceFile(glapi.c, $(MESASRCDIR)/src/mesa/glapi)
-LinkSourceFile(glthread.c, $(MESASRCDIR)/src/mesa/glapi)
-LinkSourceFile(glcontextmodes.c, $(MESASRCDIR)/src/mesa/drivers/dri/common)
-LinkSourceFile(glcontextmodes.h, $(MESASRCDIR)/src/mesa/drivers/dri/common)
-LinkSourceFile(dispatch.c, $(MESASRCDIR)/src/mesa/main)
-
-#ifdef i386Architecture
-LinkSourceFile(glapi_x86.S, $(MESASRCDIR)/src/mesa/x86)
-#endif
-#ifdef SparcArchitecture
-LinkSourceFile(glapi_sparc.S, $(MESASRCDIR)/src/mesa/sparc)
-#endif
-
-LinkSourceFile(XF86dri.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(clientattrib.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(compsize.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(dri_glx.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(dri_glx.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(eval.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(glx_pbuffer.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(glx_query.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(glx_texture_compression.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(glxclient.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(glxcmds.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(glxext.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(glxextensions.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(glxextensions.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_init.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_init.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_size.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_size.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_transpose_matrix.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_va_private.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_vertex_array.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_vertex_array.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_vertex_program.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(indirect_window_pos.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(packrender.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(packsingle.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(pixel.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(pixelstore.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(render2.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(renderpix.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(single2.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(singlepix.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(vertarr.c, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(xf86dri.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(xf86dristr.h, $(MESASRCDIR)/src/glx/x11)
-LinkSourceFile(xfont.c, $(MESASRCDIR)/src/glx/x11)
-
-/*
- * Maybe some of these could come from
- * xc/extras/ogl-sample/main/glx/lib at some point.
- */
- GLX_SRCS = \
- clientattrib.c \
- compsize.c \
- dispatch.c \
- eval.c \
- glapi.c \
- glthread.c \
- glx_pbuffer.c \
- glx_query.c \
- glx_texture_compression.c \
- glxcmds.c \
- glxext.c \
- glxextensions.c \
- glcontextmodes.c \
- indirect.c \
- indirect_init.c \
- indirect_size.c \
- indirect_transpose_matrix.c \
- indirect_vertex_array.c \
- indirect_vertex_program.c \
- indirect_window_pos.c \
- pixel.c \
- pixelstore.c \
- render2.c \
- renderpix.c \
- single2.c \
- singlepix.c \
- vertarr.c \
- xfont.c
-
- GLX_OBJS = \
- clientattrib.o \
- compsize.o \
- eval.o \
- dispatch.o \
- glapi.o \
- glthread.o \
- glx_pbuffer.o \
- glx_query.o \
- glx_texture_compression.o \
- glxcmds.o \
- glxext.o \
- glxextensions.o \
- glcontextmodes.o \
- indirect.o \
- indirect_init.o \
- indirect_size.o \
- indirect_transpose_matrix.o \
- indirect_vertex_array.o \
- indirect_vertex_program.o \
- indirect_window_pos.o \
- pixel.o \
- pixelstore.o \
- render2.o \
- renderpix.o \
- single2.o \
- singlepix.o \
- vertarr.o \
- xfont.o
-
- GLX_DEFS = GlxDefines VidModeExtensionDefines \
- -DDEFAULT_DRIVER_DIR=\"$(MODULEDIR)/dri\"
-
-#ifdef i386Architecture
- ASM_DIR = x86
-#endif
-#ifdef SparcArchitecture
- ASM_DIR = sparc
-#endif
-
-#if BuildXF86DRI
- DRI_SRCS = dri_glx.c XF86dri.c
- DRI_OBJS = dri_glx.o XF86dri.o
-
- DRI_INCS = -I$(SERVERSRC)/GL/dri
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_SRCS = glapi_x86.S
- ASM_OBJS = glapi_x86.o
- ASM_DEFS = -DUSE_X86_ASM
-#endif
-#if defined(SparcArchitecture)
- ASM_SRCS = glapi_sparc.S
- ASM_OBJS = glapi_sparc.o
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#if GlxBuiltInXMesa
- XMESA_DEFINES = -DGLX_BUILT_IN_XMESA
-#endif
-#endif
-
-#if defined(DarwinArchitecture) || defined(OS2Architecture) || \
-defined(LynxOSArchitecture)
-ALIAS_DEFINES = -DGLX_ALIAS_UNSUPPORTED
-#endif
-#if defined(DarwinArchitecture) && BuildAppleDRI
- DRI_SRCS = XF86dri.c
- DRI_OBJS = XF86dri.o
-
- DRI_INCS = -I$(SERVERSRC)/GL/dri
-#endif
-
- SRCS = $(GLX_SRCS) $(ASM_SRCS) $(DRI_SRCS)
- OBJS = $(GLX_OBJS) $(ASM_OBJS) $(DRI_OBJS)
- DEFINES = $(GLX_DEFS) $(ASM_DEFS) $(XMESA_DEFINES) $(ALIAS_DEFINES) \
- $(THREADS_DEFINES)
-
- INCLUDES = -I$(XINCLUDESRC) \
- -I$(MESASRCDIR)/include \
- -I$(EXTINCSRC) \
- -I$(GLXLIBSRC)/glx \
- -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/drivers/x11 \
- -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
- -I$(XF86OSSRC) \
- -I$(DRMSRCDIR)/shared-core \
- $(DRI_INCS)
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-#if BuildXF86DRI && defined(i386Architecture) && MesaUseX86Asm
-ObjectFromAsmSource(glapi_x86, NullParameter)
-#endif
-#if BuildXF86DRI && defined(SparcArchitecture)
-STD_CPP_DEFINES = StandardDefines $(PROJECT_DEFINES)
-ObjectFromAsmSource(glapi_sparc, NullParameter)
-#endif
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/Imakefile b/nx-X11/lib/GL/mesa/Imakefile
deleted file mode 100644
index 9e1db00a0..000000000
--- a/nx-X11/lib/GL/mesa/Imakefile
+++ /dev/null
@@ -1,84 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile,v 1.30tsi Exp $
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-NULL =
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
-#define MesaX86BuildDir /**/
-ASM_SUBDIRS = x86
-#endif
-#ifdef SparcArchitecture
-#define MesaSparcBuildDir /**/
-ASM_SUBDIRS = sparc
-#endif
-#define MesaBuildDir /**/
-#define NeedToLinkMesaSrc
-
-#ifdef UseCompaqMathLibrary
- MATH_DEFINES = -DCCPML
-#endif
-
- DEFINES = $(ALLOC_DEFINES) GlxDefines \
- $(MESA_ASM_DEFINES) $(MATH_DEFINES)
- INCLUDES = -I$(INCLUDESRC) -I$(XINCLUDESRC) -I$(EXTINCSRC) \
- -I$(GLXLIBSRC)/dri \
- -I$(MESASRCDIR)/include -I$(GLXLIBSRC)/include
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-#define IHaveSubdirs
-#define PassCDebugFlags
-
-SUBDIRS = \
- $(ASM_SUBDIRS) \
- array_cache \
- main \
- math \
- swrast \
- swrast_setup \
- tnl \
- tnl_dd \
- shader \
- $(NULL)
-
-MakeSubdirs($(SUBDIRS))
-DependSubdirs($(SUBDIRS))
-
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/Imakefile.inc b/nx-X11/lib/GL/mesa/Imakefile.inc
deleted file mode 100644
index 03a7971f8..000000000
--- a/nx-X11/lib/GL/mesa/Imakefile.inc
+++ /dev/null
@@ -1,57 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile.inc,v 1.7tsi Exp $
-
-#ifndef MesaBuildDir
-#define MesaBuildDir $(GLXLIBSRC)/mesa/
-#endif
-
-MESABUILDDIR = MesaBuildDir
-
-COREMESASRCS = $(COREMESABASESRCS) \
- $(MESA_AC_SRCS) \
- $(MESA_MATH_SRCS) \
- $(MESA_SWRAST_SRCS) \
- $(MESA_SWR_SETUP_SRCS) \
- $(MESA_TNL_SRCS) \
- $(MESA_SHADER_SRCS) \
- $(MESA_GRAMMAR_SRCS) \
- $(MESA_SLANG_SRCS)
-
-COREMESAOBJS = $(COREMESABASEOBJS) \
- $(MESA_AC_OBJS) \
- $(MESA_MATH_OBJS) \
- $(MESA_SWRAST_OBJS) \
- $(MESA_SWR_SETUP_OBJS) \
- $(MESA_TNL_OBJS) \
- $(MESA_SHADER_OBJS) \
- $(MESA_GRAMMAR_OBJS) \
- $(MESA_SLANG_OBJS)
-
-COREMESAUOBJS = $(COREMESABASEUOBJS) \
- $(MESA_AC_UOBJS) \
- $(MESA_MATH_UOBJS) \
- $(MESA_SWRAST_UOBJS) \
- $(MESA_SWR_SETUP_UOBJS) \
- $(MESA_TNL_UOBJS) \
- $(MESA_SHADER_UOBJS) \
- $(MESA_GRAMMAR_UOBJS) \
- $(MESA_SLANG_UOBJS)
-
-COREMESADOBJS = $(COREMESABASEDOBJS) \
- $(MESA_AC_DOBJS) \
- $(MESA_MATH_DOBJS) \
- $(MESA_SWRAST_DOBJS) \
- $(MESA_SWR_SETUP_DOBJS) \
- $(MESA_TNL_DOBJS) \
- $(MESA_SHADER_DOBJS) \
- $(MESA_GRAMMAR_DOBJS) \
- $(MESA_SLANG_DOBJS)
-
-COREMESAPOBJS = $(COREMESABASEPOBJS) \
- $(MESA_AC_POBJS) \
- $(MESA_MATH_POBJS) \
- $(MESA_SWRAST_POBJS) \
- $(MESA_SWR_SETUP_POBJS) \
- $(MESA_TNL_POBJS) \
- $(MESA_SHADER_POBJS) \
- $(MESA_GRAMMAR_POBJS) \
- $(MESA_SLANG_POBJS)
diff --git a/nx-X11/lib/GL/mesa/array_cache/Imakefile b/nx-X11/lib/GL/mesa/array_cache/Imakefile
deleted file mode 100644
index 40c9c6b52..000000000
--- a/nx-X11/lib/GL/mesa/array_cache/Imakefile
+++ /dev/null
@@ -1,91 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/array_cache/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-
-#define MesaACBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/array_cache \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = $(MESA_AC_SRCS)
- OBJS = $(MESA_AC_OBJS)
-
-
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_SRCS =
- ASM_OBJS =
-#if MesaUseMMX
- MMX_DEFS = -DUSE_MMX_ASM
-#endif
-#if MesaUse3DNow
- 3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-#if MesaUseSSE
- SSE_DEFS = -DUSE_SSE_ASM
-#endif
- ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
-#endif
-
-#ifdef SparcArchitecture
- ASM_SRCS =
- ASM_OBJS =
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/array_cache/Imakefile.inc b/nx-X11/lib/GL/mesa/array_cache/Imakefile.inc
deleted file mode 100644
index 9a5044791..000000000
--- a/nx-X11/lib/GL/mesa/array_cache/Imakefile.inc
+++ /dev/null
@@ -1,34 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/array_cache/Imakefile.inc,v 1.1tsi Exp $
-
-#ifndef MesaACBuildDir
-#define MesaACBuildDir $(GLXLIBSRC)/mesa/array_cache/
-#endif
-
-MESAACBUILDDIR = MesaACBuildDir
-
- MESA_AC_SRCS = $(MESAACBUILDDIR)ac_context.c \
- $(MESAACBUILDDIR)ac_import.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(acache.h, $(MESASRCDIR)/src/mesa/array_cache)
-LinkSourceFile(ac_context.c, $(MESASRCDIR)/src/mesa/array_cache)
-LinkSourceFile(ac_context.h, $(MESASRCDIR)/src/mesa/array_cache)
-LinkSourceFile(ac_import.c, $(MESASRCDIR)/src/mesa/array_cache)
-#endif
-
- MESA_AC_OBJS = $(MESAACBUILDDIR)ac_context.o \
- $(MESAACBUILDDIR)ac_import.o
-
-#if defined(DoSharedLib) && DoSharedLib
- MESA_AC_UOBJS = $(MESAACBUILDDIR)unshared/ac_context.o \
- $(MESAACBUILDDIR)unshared/ac_import.o
-#else
- MESA_AC_UOBJS = $(MESA_AC_OBJS)
-#endif
-
- MESA_AC_DOBJS = $(MESAACBUILDDIR)debugger/ac_context.o \
- $(MESAACBUILDDIR)debugger/ac_import.o
-
- MESA_AC_POBJS = $(MESAACBUILDDIR)profiled/ac_context.o \
- $(MESAACBUILDDIR)profiled/ac_import.o
-
diff --git a/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile
deleted file mode 100644
index 5c910489f..000000000
--- a/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile
+++ /dev/null
@@ -1,44 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/common/Imakefile,v 1.6 2001/04/03 02:29:34 dawes Exp $
-
-#include <Threads.tmpl>
-
-#if GlxUseBuiltInDRIDriver
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtrasLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
-#include "../../../x86/Imakefile.inc"
-#endif
-#ifdef SparcArchitecture
-#include "../../../sparc/Imakefile.inc"
-#endif
-
-#define NeedToLinkMesaSrc
-#define MesaDrvCommonBuildDir /**/
-#include "Imakefile.inc"
-
- DEFINES = $(ALLOC_DEFINES) $(COMMON_DRI_DEFINES) $(MESA_ASM_DEFINES)
- INCLUDES = $(COMMON_X_INCLUDES) $(COMMON_MESA_INCLUDES) \
- $(COMMON_DRI_INCLUDES)
-
- SRCS = $(COMMONSRCS)
- OBJS = $(COMMONOBJS)
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile.inc
deleted file mode 100644
index 388b724b2..000000000
--- a/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile.inc
+++ /dev/null
@@ -1,105 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/common/Imakefile.inc,v 1.3 2003/05/27 16:34:32 tsi Exp $
-
-#ifndef MesaDrvSrcDir
-#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri
-#endif
-
-MESADRVSRCDIR = MesaDrvSrcDir
-
-#ifndef MesaDrvCommonBuildDir
-#define MesaDrvCommonBuildDir $(MESADRVSRCDIR)/common/
-#endif
-
-MESADRVCOMMONBUILDDIR = MesaDrvCommonBuildDir
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- COMMON_DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=$(X_BYTE_ORDER) -DIN_DRI_DRIVER
- COMMON_DRI_INCLUDES = -I$(GLXLIBSRC)/dri \
- -I$(XINCLUDESRC) \
- -I$(GLXLIBSRC)/glx \
- -I$(GLXLIBSRC)/include \
- -I$(SERVERSRC)/GL/dri \
- -I$(XF86OSSRC) \
- -I$(XF86COMSRC) \
- -I$(GLXLIBSRC)/dri/drm \
- -I$(GLXLIBSRC)/include \
- -I$(DRMSRCDIR)/shared-core \
- -I$(MESASRCDIR)/include/GL/internal
-#endif
-
-COMMON_MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/shader \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESADRVSRCDIR)/common \
- -I$(MESADRVSRCDIR)/../common \
- -I$(MESASRCDIR)/include
- COMMON_X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC)
-
- COMMONSRCS = $(MESADRVCOMMONBUILDDIR)utils.c \
- $(MESADRVCOMMONBUILDDIR)vblank.c \
- $(MESADRVCOMMONBUILDDIR)texmem.c \
- $(MESADRVCOMMONBUILDDIR)xmlconfig.c \
- $(MESADRVCOMMONBUILDDIR)driverfuncs.c \
- $(MESADRVCOMMONBUILDDIR)dri_util.c \
- $(MESADRVCOMMONBUILDDIR)glcontextmodes.c \
- $(MESADRVCOMMONBUILDDIR)drirenderbuffer.c
-
- COMMONOBJS = $(MESADRVCOMMONBUILDDIR)utils.o \
- $(MESADRVCOMMONBUILDDIR)vblank.o \
- $(MESADRVCOMMONBUILDDIR)texmem.o \
- $(MESADRVCOMMONBUILDDIR)xmlconfig.o \
- $(MESADRVCOMMONBUILDDIR)driverfuncs.o \
- $(MESADRVCOMMONBUILDDIR)dri_util.o \
- $(MESADRVCOMMONBUILDDIR)glcontextmodes.o \
- $(MESADRVCOMMONBUILDDIR)drirenderbuffer.o
-
- COMMONUOBJS = $(MESADRVCOMMONBUILDDIR)unshared/utils.o \
- $(MESADRVCOMMONBUILDDIR)unshared/vblank.o \
- $(MESADRVCOMMONBUILDDIR)unshared/texmem.o \
- $(MESADRVCOMMONBUILDDIR)unshared/xmlconfig.o \
- $(MESADRVCOMMONBUILDDIR)unshared/driverfuncs.o \
- $(MESADRVCOMMONBUILDDIR)unshared/dri_util.o \
- $(MESADRVCOMMONBUILDDIR)unshared/glcontextmodes.o \
- $(MESADRVCOMMONBUILDDIR)unshared/drirenderbuffer.o
-
- COMMONDOBJS = $(MESADRVCOMMONBUILDDIR)debugger/utils.o \
- $(MESADRVCOMMONBUILDDIR)debugger/vblank.o \
- $(MESADRVCOMMONBUILDDIR)debugger/texmem.o \
- $(MESADRVCOMMONBUILDDIR)debugger/xmlconfig.o \
- $(MESADRVCOMMONBUILDDIR)debugger/driverfuncs.o \
- $(MESADRVCOMMONBUILDDIR)debugger/dri_util.o \
- $(MESADRVCOMMONBUILDDIR)debugger/glcontextmodes.o \
- $(MESADRVCOMMONBUILDDIR)debugger/drirenderbuffer.o
-
- COMMONPOBJS = $(MESADRVCOMMONBUILDDIR)profiled/utils.o \
- $(MESADRVCOMMONBUILDDIR)profiled/vblank.o \
- $(MESADRVCOMMONBUILDDIR)profiled/texmem.o \
- $(MESADRVCOMMONBUILDDIR)profiled/xmlconfig.o \
- $(MESADRVCOMMONBUILDDIR)profiled/driverfuncs.o \
- $(MESADRVCOMMONBUILDDIR)profiled/dri_util.o \
- $(MESADRVCOMMONBUILDDIR)profiled/glcontextmodes.o \
- $(MESADRVCOMMONBUILDDIR)profiled/drirenderbuffer.o
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(texmem.c, $(MESADRVSRCDIR)/common)
-LinkSourceFile(texmem.h, $(MESADRVSRCDIR)/common)
-LinkSourceFile(utils.c, $(MESADRVSRCDIR)/common)
-LinkSourceFile(utils.h, $(MESADRVSRCDIR)/common)
-LinkSourceFile(vblank.c, $(MESADRVSRCDIR)/common)
-LinkSourceFile(vblank.h, $(MESADRVSRCDIR)/common)
-LinkSourceFile(xmlconfig.c, $(MESADRVSRCDIR)/common)
-LinkSourceFile(xmlconfig.h, $(MESADRVSRCDIR)/common)
-LinkSourceFile(driverfuncs.c, $(MESADRVSRCDIR)/../common)
-LinkSourceFile(driverfuncs.h, $(MESADRVSRCDIR)/../common)
-LinkSourceFile(dri_util.c, $(MESADRVSRCDIR)/common)
-LinkSourceFile(dri_util.h, $(MESADRVSRCDIR)/common)
-LinkSourceFile(glcontextmodes.c, $(MESADRVSRCDIR)/common)
-LinkSourceFile(glcontextmodes.h, $(MESADRVSRCDIR)/common)
-LinkSourceFile(drirenderbuffer.c, $(MESADRVSRCDIR)/common)
-LinkSourceFile(drirenderbuffer.h, $(MESADRVSRCDIR)/common)
-#endif
diff --git a/nx-X11/lib/GL/mesa/drivers/osmesa/Imakefile b/nx-X11/lib/GL/mesa/drivers/osmesa/Imakefile
deleted file mode 100644
index 014945699..000000000
--- a/nx-X11/lib/GL/mesa/drivers/osmesa/Imakefile
+++ /dev/null
@@ -1,111 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/OSmesa/Imakefile,v 1.16 2002/11/25 14:04:50 eich Exp $
-
-#include <Threads.tmpl>
-
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#include "../../array_cache/Imakefile.inc"
-#include "../../math/Imakefile.inc"
-#include "../../main/Imakefile.inc"
-#include "../../shader/Imakefile.inc"
-#include "../../shader/grammar/Imakefile.inc"
-#include "../../shader/slang/Imakefile.inc"
-#include "../../swrast/Imakefile.inc"
-#include "../../swrast_setup/Imakefile.inc"
-#include "../../tnl/Imakefile.inc"
-#include "../../tnl_dd/Imakefile.inc"
-#include "../../Imakefile.inc"
-#if defined(i386Architecture) && !SystemV4 && MesaUseX86Asm
-#include "../../x86/Imakefile.inc"
-#endif
-#ifdef SparcArchitecture
-#include "../../sparc/Imakefile.inc"
-#endif
-
-LinkSourceFile(osmesa.c, $(MESASRCDIR)/src/mesa/drivers/osmesa)
-LinkSourceFile(driverfuncs.c, $(MESASRCDIR)/src/mesa/drivers/common)
-LinkSourceFile(driverfuncs.h, $(MESASRCDIR)/src/mesa/drivers/common)
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/shader \
- -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/include
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES)
- INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) $(MESA_INCLUDES) \
- $(DRI_INCLUDES) -I$(GLXLIBSRC)/include
-
- MESAOBJS = $(COREMESAOBJS) $(MESA_ASM_OBJS)
- MESAUOBJS = $(COREMESAUOBJS) $(MESA_ASM_UOBJS)
- MESADOBJS = $(COREMESADOBJS) $(MESA_ASM_DOBJS)
- MESAPOBJS = $(COREMESAPOBJS) $(MESA_ASM_POBJS)
-
- SRCS = osmesa.c driverfuncs.c
- OBJS = osmesa.o driverfuncs.o $(MESAOBJS)
-#if DoSharedLib
- UOBJS = unshared/osmesa.o unshared/driverfuncs.o $(MESAUOBJS)
-#else
- UOBJS = $(OBJS)
-#endif
- DOBJS = debugger/osmesa.o debugger/driverfuncs.o $(MESADOBJS)
- POBJS = profiled/osmesa.o profiled/driverfuncs.o $(MESAPOBJS)
-
-#if LocalThreads
- THREADOBJS = $(THREADS_LIBS)
-#endif
-
-#if !GlxUseBuiltInDRIDriver
-# ifdef SharedOSMesaReqs
- REQUIREDLIBS = SharedOSMesaReqs
-# else
- REQUIREDLIBS = MathLibrary $(LDPRELIB) $(XLIB) $(GLXLIB)
-# endif
-#endif
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-LIBNAME = OSMesa
-SOREV = 4.0
-
-
-#if DoNormalLib
-NormalLibraryTarget($(LIBNAME), $(UOBJS))
-InstallLibrary($(LIBNAME),$(USRLIBDIR))
-#endif
-
-#if SharedLibGlx
-SharedLibraryTarget($(LIBNAME),$(SOREV), $(OBJS), ., .)
-InstallSharedLibrary($(LIBNAME),$(SOREV),$(SHLIBDIR))
-#endif
-
-#if DoDebugLib
-DebuggedLibraryTarget($(LIBNAME),$(DOBJS))
-InstallLibrary($(LIBNAME_d,$(USRLIBDIR))
-#endif
-
-#if DoProfileLib
-ProfiledLibraryTarget($(LIBNAME), $(POBJS))
-InstallLibrary($(LIBNAME)_p,$(USRLIBDIR))
-#endif
-
-DependTarget()
-
diff --git a/nx-X11/lib/GL/mesa/drivers/osmesa/OSMesa-def.cpp b/nx-X11/lib/GL/mesa/drivers/osmesa/OSMesa-def.cpp
deleted file mode 100644
index e69de29bb..000000000
--- a/nx-X11/lib/GL/mesa/drivers/osmesa/OSMesa-def.cpp
+++ /dev/null
diff --git a/nx-X11/lib/GL/mesa/drivers/x11/Imakefile b/nx-X11/lib/GL/mesa/drivers/x11/Imakefile
deleted file mode 100644
index ab9a91970..000000000
--- a/nx-X11/lib/GL/mesa/drivers/x11/Imakefile
+++ /dev/null
@@ -1,70 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.12tsi Exp $
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-
-#define MesaXBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src \
- -I$(MESASRCDIR)/src/X \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
-#if BuildXF86DRI && GlxBuiltInXMesa
- XMESA_DEFINES = -DGLX_BUILT_IN_XMESA
-#endif
-
- SRCS = $(XMESA_SRCS)
- OBJS = $(XMESA_OBJS)
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MATHDEF) $(XMESA_DEFINES)
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(XMESA_OBJS))
-NormalLintTarget($(XMESA_SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/drivers/x11/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/x11/Imakefile.inc
deleted file mode 100644
index d62800e7d..000000000
--- a/nx-X11/lib/GL/mesa/drivers/x11/Imakefile.inc
+++ /dev/null
@@ -1,104 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile.inc,v 1.3tsi Exp $
-
-#ifndef MesaXBuildDir
-#define MesaXBuildDir $(GLXLIBSRC)/src/mesa/drivers/x11/
-#endif
-
-MESAXBUILDDIR = MesaXBuildDir
-
-#ifndef MesaInXServer
-XMESA_GLX_SRCS = $(MESAXBUILDDIR)fakeglx.c \
- $(MESAXBUILDDIR)glxapi.c \
- $(MESAXBUILDDIR)realglx.c \
- $(MESAXBUILDDIR)xfonts.c
-#endif
-
- XMESA_SRCS = $(XMESA_GLX_SRCS) \
- $(MESAXBUILDDIR)xm_api.c \
- $(MESAXBUILDDIR)xm_buffer.c \
- $(MESAXBUILDDIR)xm_dd.c \
- $(MESAXBUILDDIR)xm_line.c \
- $(MESAXBUILDDIR)xm_span.c \
- $(MESAXBUILDDIR)xm_tri.c
-
-#ifdef NeedToLinkMesaSrc
-#ifndef MesaInXServer
-LinkSourceFile(fakeglx.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-LinkSourceFile(glxapi.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-LinkSourceFile(glxapi.h, $(MESASRCDIR)/src/mesa/drivers/x11)
-LinkSourceFile(realglx.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-LinkSourceFile(xfonts.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-#endif
-LinkSourceFile(xm_api.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-LinkSourceFile(xm_buffer.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-LinkSourceFile(xm_dd.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-LinkSourceFile(xm_line.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-LinkSourceFile(xm_span.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-LinkSourceFile(xm_tri.c, $(MESASRCDIR)/src/mesa/drivers/x11)
-#endif
-
-#ifndef MesaInXServer
-XMESA_GLX_OBJS = $(MESAXBUILDDIR)fakeglx.o \
- $(MESAXBUILDDIR)glxapi.o \
- $(MESAXBUILDDIR)realglx.o \
- $(MESAXBUILDDIR)xfonts.o
-#endif
-
- XMESA_OBJS = $(XMESA_GLX_OBJS) \
- $(MESAXBUILDDIR)xm_api.o \
- $(MESAXBUILDDIR)xm_buffer.o \
- $(MESAXBUILDDIR)xm_dd.o \
- $(MESAXBUILDDIR)xm_line.o \
- $(MESAXBUILDDIR)xm_span.o \
- $(MESAXBUILDDIR)xm_tri.o
-
-#if defined(DoSharedLib) && DoSharedLib
-#ifndef MesaInXServer
-XMESA_GLX_UOBJS = $(MESAXBUILDDIR)unshared/fakeglx.o \
- $(MESAXBUILDDIR)unshared/glxapi.o \
- $(MESAXBUILDDIR)unshared/realglx.o \
- $(MESAXBUILDDIR)unshared/xfonts.o
-#endif
-
- XMESA_UOBJS = $(XMESA_GLX_UOBJS) \
- $(MESAXBUILDDIR)unshared/xm_api.o \
- $(MESAXBUILDDIR)unshared/xm_buffer.o \
- $(MESAXBUILDDIR)unshared/xm_dd.o \
- $(MESAXBUILDDIR)unshared/xm_line.o \
- $(MESAXBUILDDIR)unshared/xm_span.o \
- $(MESAXBUILDDIR)unshared/xm_tri.o
-#else
-XMESA_GLX_UOBJS = $(XMESA_GLX_OBJS)
- XMESA_UOBJS = $(XMESA_OBJS)
-#endif
-
-#ifndef MesaInXServer
-XMESA_GLX_DOBJS = $(MESAXBUILDDIR)debugger/fakeglx.o \
- $(MESAXBUILDDIR)debugger/glxapi.o \
- $(MESAXBUILDDIR)debugger/realglx.o \
- $(MESAXBUILDDIR)debugger/xfonts.o
-#endif
-
- XMESA_DOBJS = $(XMESA_GLX_DOBJS) \
- $(MESAXBUILDDIR)debugger/xm_api.o \
- $(MESAXBUILDDIR)debugger/xm_buffer.o \
- $(MESAXBUILDDIR)debugger/xm_dd.o \
- $(MESAXBUILDDIR)debugger/xm_line.o \
- $(MESAXBUILDDIR)debugger/xm_span.o \
- $(MESAXBUILDDIR)debugger/xm_tri.o
-
-#ifndef MesaInXServer
-XMESA_GLX_POBJS = $(MESAXBUILDDIR)profiled/fakeglx.o \
- $(MESAXBUILDDIR)profiled/glxapi.o \
- $(MESAXBUILDDIR)profiled/realglx.o \
- $(MESAXBUILDDIR)profiled/xfonts.o
-#endif
-
- XMESA_POBJS = $(XMESA_GLX_POBJS) \
- $(MESAXBUILDDIR)profiled/xm_api.o \
- $(MESAXBUILDDIR)profiled/xm_buffer.o \
- $(MESAXBUILDDIR)profiled/xm_dd.o \
- $(MESAXBUILDDIR)profiled/xm_line.o \
- $(MESAXBUILDDIR)profiled/xm_span.o \
- $(MESAXBUILDDIR)profiled/xm_tri.o
-
diff --git a/nx-X11/lib/GL/mesa/main/Imakefile b/nx-X11/lib/GL/mesa/main/Imakefile
deleted file mode 100644
index 3093cedd1..000000000
--- a/nx-X11/lib/GL/mesa/main/Imakefile
+++ /dev/null
@@ -1,66 +0,0 @@
-XCOMM $XdotOrg: xc/lib/GL/mesa/main/Imakefile,v 1.3 2005/12/20 22:30:49 alanc Exp $
-XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile,v 1.30tsi Exp $
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris/SPARC builds */
-#if defined(SunArchitecture) && defined(SparcArchitecture) && defined(LargePositionIndependentCFlags)
-# define LargePICTable YES
-#endif
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#define MesaBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-#ifdef UseCompaqMathLibrary
- MATH_DEFINES = -DCCPML
-#endif
-
- DEFINES = $(ALLOC_DEFINES) GlxDefines -DIN_DRI_DRIVER \
- $(MESA_ASM_DEFINES) $(MATH_DEFINES)
- INCLUDES = /*-I$(INCLUDESRC) -I$(EXTINCSRC) */ -I$(XINCLUDESRC) \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa/shader \
- -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa -I$(GLXLIBSRC)/dri \
- -I$(MESASRCDIR)/include -I$(GLXLIBSRC)/include
- SRCS = $(COREMESABASESRCS)
- OBJS = $(COREMESABASEOBJS)
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/main/Imakefile.inc b/nx-X11/lib/GL/mesa/main/Imakefile.inc
deleted file mode 100644
index 80b3aef07..000000000
--- a/nx-X11/lib/GL/mesa/main/Imakefile.inc
+++ /dev/null
@@ -1,487 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile.inc,v 1.7tsi Exp $
-
-/* gcc on ppc64 defines this, causes macro recursion with pixel below */
-#undef pixel
-
-#ifndef MesaBuildDir
-#define MesaBuildDir $(GLXLIBSRC)/mesa/main/
-#endif
-
-MESABUILDDIR = MesaBuildDir
-
-#ifdef NeedAllMesaSrc
- DISPATCHSRCS = $(MESABUILDDIR)dispatch.c
- GLAPISRCS = $(MESABUILDDIR)glapi.c
- GLTHREADSRCS = $(MESABUILDDIR)glthread.c
-#endif
-
-MESA_CORE_INCLUDES = -I$(MESASRCDIR)/src/array_cache \
- -I$(MESASRCDIR)/src/math -I$(MESASRCDIR)/src/shader \
- -I$(MESASRCDIR)/src/swrast -I$(MESASRCDIR)/src/swrast_setup \
- -I$(MESASRCDIR)/src/tnl -I$(MESASRCDIR)/src/tnl_dd
-
-COREMESABASESRCS = \
- $(MESABUILDDIR)api_arrayelt.c \
- $(MESABUILDDIR)api_loopback.c \
- $(MESABUILDDIR)api_noop.c \
- $(MESABUILDDIR)api_validate.c \
- $(MESABUILDDIR)accum.c \
- $(MESABUILDDIR)attrib.c \
- $(MESABUILDDIR)blend.c \
- $(MESABUILDDIR)bufferobj.c \
- $(MESABUILDDIR)buffers.c \
- $(MESABUILDDIR)clip.c \
- $(MESABUILDDIR)colortab.c \
- $(MESABUILDDIR)context.c \
- $(MESABUILDDIR)convolve.c \
- $(MESABUILDDIR)debug.c \
- $(MESABUILDDIR)depth.c \
- $(MESABUILDDIR)dlist.c \
- $(MESABUILDDIR)drawpix.c \
- $(MESABUILDDIR)enable.c \
- $(MESABUILDDIR)enums.c \
- $(MESABUILDDIR)eval.c \
- $(MESABUILDDIR)execmem.c \
- $(MESABUILDDIR)extensions.c \
- $(MESABUILDDIR)feedback.c \
- $(MESABUILDDIR)fbobject.c \
- $(MESABUILDDIR)fog.c \
- $(MESABUILDDIR)framebuffer.c \
- $(MESABUILDDIR)get.c \
- $(MESABUILDDIR)getstring.c \
- $(MESABUILDDIR)hash.c \
- $(MESABUILDDIR)hint.c \
- $(MESABUILDDIR)histogram.c \
- $(MESABUILDDIR)image.c \
- $(MESABUILDDIR)imports.c \
- $(MESABUILDDIR)light.c \
- $(MESABUILDDIR)lines.c \
- $(MESABUILDDIR)matrix.c \
- $(MESABUILDDIR)mm.c \
- $(MESABUILDDIR)occlude.c \
- $(MESABUILDDIR)pixel.c \
- $(MESABUILDDIR)points.c \
- $(MESABUILDDIR)polygon.c \
- $(MESABUILDDIR)rastpos.c \
- $(MESABUILDDIR)renderbuffer.c \
- $(MESABUILDDIR)state.c \
- $(MESABUILDDIR)stencil.c \
- $(MESABUILDDIR)texcompress.c \
- $(MESABUILDDIR)texcompress_fxt1.c \
- $(MESABUILDDIR)texcompress_s3tc.c \
- $(MESABUILDDIR)texenvprogram.c \
- $(MESABUILDDIR)texformat.c \
- $(MESABUILDDIR)teximage.c \
- $(MESABUILDDIR)texobj.c \
- $(MESABUILDDIR)texrender.c \
- $(MESABUILDDIR)texstate.c \
- $(MESABUILDDIR)texstore.c \
- $(MESABUILDDIR)varray.c \
- $(MESABUILDDIR)vtxfmt.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(api_arrayelt.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(api_arrayelt.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(api_eval.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(api_loopback.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(api_loopback.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(api_noop.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(api_noop.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(api_validate.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(api_validate.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(accum.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(accum.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(attrib.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(attrib.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(blend.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(blend.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(bufferobj.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(bufferobj.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(buffers.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(buffers.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(clip.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(clip.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(colormac.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(colortab.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(colortab.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(config.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(context.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(context.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(convolve.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(convolve.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(dd.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(debug.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(debug.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(depth.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(depth.h, $(MESASRCDIR)/src/mesa/main)
-#ifdef NeedAllMesaSrc
-LinkSourceFile(dispatch.c, $(MESASRCDIR)/src/mesa/main)
-#endif
-LinkSourceFile(dlist.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(dlist.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(drawpix.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(drawpix.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(enable.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(enable.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(enums.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(enums.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(eval.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(eval.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(execmem.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(extensions.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(extensions.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(fbobject.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(fbobject.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(feedback.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(feedback.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(fog.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(fog.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(framebuffer.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(framebuffer.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(get.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(get.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(getstring.c, $(MESASRCDIR)/src/mesa/main)
-#ifdef NeedAllMesaSrc
-LinkSourceFile(glapi.c, $(MESASRCDIR)/src/mesa/glapi)
-LinkSourceFile(glthread.c, $(MESASRCDIR)/src/mesa/glapi)
-#endif
-LinkSourceFile(glheader.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(hash.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(hash.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(hint.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(hint.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(histogram.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(histogram.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(image.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(image.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(imports.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(imports.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(light.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(light.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(lines.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(lines.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(macros.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(matrix.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(matrix.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(mm.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(mm.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(mtypes.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(occlude.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(occlude.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(pixel.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(pixel.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(points.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(points.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(polygon.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(polygon.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(rastpos.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(rastpos.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(renderbuffer.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(renderbuffer.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(simple_list.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(state.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(state.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(stencil.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(stencil.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texcompress.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texcompress_fxt1.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texcompress_s3tc.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texcompress.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texenvprogram.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texenvprogram.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texformat.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texformat.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texformat_tmp.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(teximage.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(teximage.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texobj.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texobj.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texrender.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texrender.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texstate.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texstate.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texstore.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(texstore.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(varray.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(varray.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(version.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(vtxfmt.c, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(vtxfmt.h, $(MESASRCDIR)/src/mesa/main)
-LinkSourceFile(vtxfmt_tmp.h, $(MESASRCDIR)/src/mesa/main)
-#endif
-
-#ifdef NeedAllMesaSrc
- DISPATCHOBJS = $(MESABUILDDIR)dispatch.o
- GLAPIOBJS = $(MESABUILDDIR)glapi.o
- GLTHREADOBJS = $(MESABUILDDIR)glthread.o
-#endif
-
-COREMESABASEOBJS = \
- $(DISPATCHOBJS) \
- $(GLAPIOBJS) \
- $(GLTHREADOBJS) \
- $(MESABUILDDIR)api_arrayelt.o \
- $(MESABUILDDIR)api_loopback.o \
- $(MESABUILDDIR)api_noop.o \
- $(MESABUILDDIR)api_validate.o \
- $(MESABUILDDIR)accum.o \
- $(MESABUILDDIR)attrib.o \
- $(MESABUILDDIR)blend.o \
- $(MESABUILDDIR)bufferobj.o \
- $(MESABUILDDIR)buffers.o \
- $(MESABUILDDIR)clip.o \
- $(MESABUILDDIR)colortab.o \
- $(MESABUILDDIR)context.o \
- $(MESABUILDDIR)convolve.o \
- $(MESABUILDDIR)debug.o \
- $(MESABUILDDIR)depth.o \
- $(MESABUILDDIR)dlist.o \
- $(MESABUILDDIR)drawpix.o \
- $(MESABUILDDIR)enable.o \
- $(MESABUILDDIR)enums.o \
- $(MESABUILDDIR)eval.o \
- $(MESABUILDDIR)execmem.o \
- $(MESABUILDDIR)extensions.o \
- $(MESABUILDDIR)fbobject.o \
- $(MESABUILDDIR)feedback.o \
- $(MESABUILDDIR)fog.o \
- $(MESABUILDDIR)framebuffer.o \
- $(MESABUILDDIR)get.o \
- $(MESABUILDDIR)getstring.o \
- $(MESABUILDDIR)hash.o \
- $(MESABUILDDIR)hint.o \
- $(MESABUILDDIR)histogram.o \
- $(MESABUILDDIR)image.o \
- $(MESABUILDDIR)imports.o \
- $(MESABUILDDIR)light.o \
- $(MESABUILDDIR)lines.o \
- $(MESABUILDDIR)matrix.o \
- $(MESABUILDDIR)mm.o \
- $(MESABUILDDIR)occlude.o \
- $(MESABUILDDIR)pixel.o \
- $(MESABUILDDIR)points.o \
- $(MESABUILDDIR)polygon.o \
- $(MESABUILDDIR)rastpos.o \
- $(MESABUILDDIR)renderbuffer.o \
- $(MESABUILDDIR)state.o \
- $(MESABUILDDIR)stencil.o \
- $(MESABUILDDIR)texcompress.o \
- $(MESABUILDDIR)texcompress_fxt1.o \
- $(MESABUILDDIR)texcompress_s3tc.o \
- $(MESABUILDDIR)texenvprogram.o \
- $(MESABUILDDIR)texformat.o \
- $(MESABUILDDIR)teximage.o \
- $(MESABUILDDIR)texrender.o \
- $(MESABUILDDIR)texobj.o \
- $(MESABUILDDIR)texstate.o \
- $(MESABUILDDIR)texstore.o \
- $(MESABUILDDIR)varray.o \
- $(MESABUILDDIR)vtxfmt.o
-
-#ifdef NeedAllMesaSrc
- DISPATCHUOBJS = $(MESABUILDDIR)unshared/dispatch.o
- GLAPIUOBJS = $(MESABUILDDIR)unshared/glapi.o
- GLTHREADUOBJS = $(MESABUILDDIR)unshared/glthread.o
-#endif
-
-#if defined(DoSharedLib) && DoSharedLib
-COREMESABASEUOBJS = \
- $(DISPATCHUOBJS) \
- $(GLAPIUOBJS) \
- $(GLTHREADUOBJS) \
- $(MESABUILDDIR)unshared/api_arrayelt.o \
- $(MESABUILDDIR)unshared/api_loopback.o \
- $(MESABUILDDIR)unshared/api_noop.o \
- $(MESABUILDDIR)unshared/api_validate.o \
- $(MESABUILDDIR)unshared/accum.o \
- $(MESABUILDDIR)unshared/attrib.o \
- $(MESABUILDDIR)unshared/blend.o \
- $(MESABUILDDIR)unshared/bufferobj.o \
- $(MESABUILDDIR)unshared/buffers.o \
- $(MESABUILDDIR)unshared/clip.o \
- $(MESABUILDDIR)unshared/colortab.o \
- $(MESABUILDDIR)unshared/context.o \
- $(MESABUILDDIR)unshared/convolve.o \
- $(MESABUILDDIR)unshared/debug.o \
- $(MESABUILDDIR)unshared/depth.o \
- $(MESABUILDDIR)unshared/dlist.o \
- $(MESABUILDDIR)unshared/drawpix.o \
- $(MESABUILDDIR)unshared/enable.o \
- $(MESABUILDDIR)unshared/enums.o \
- $(MESABUILDDIR)unshared/eval.o \
- $(MESABUILDDIR)unshared/execmem.o \
- $(MESABUILDDIR)unshared/extensions.o \
- $(MESABUILDDIR)unshared/fbobject.o \
- $(MESABUILDDIR)unshared/feedback.o \
- $(MESABUILDDIR)unshared/fog.o \
- $(MESABUILDDIR)unshared/framebuffer.o \
- $(MESABUILDDIR)unshared/get.o \
- $(MESABUILDDIR)unshared/getstring.o \
- $(MESABUILDDIR)unshared/hash.o \
- $(MESABUILDDIR)unshared/hint.o \
- $(MESABUILDDIR)unshared/histogram.o \
- $(MESABUILDDIR)unshared/image.o \
- $(MESABUILDDIR)unshared/imports.o \
- $(MESABUILDDIR)unshared/light.o \
- $(MESABUILDDIR)unshared/lines.o \
- $(MESABUILDDIR)unshared/matrix.o \
- $(MESABUILDDIR)unshared/mm.o \
- $(MESABUILDDIR)unshared/occlude.o \
- $(MESABUILDDIR)unshared/pixel.o \
- $(MESABUILDDIR)unshared/points.o \
- $(MESABUILDDIR)unshared/polygon.o \
- $(MESABUILDDIR)unshared/rastpos.o \
- $(MESABUILDDIR)unshared/renderbuffer.o \
- $(MESABUILDDIR)unshared/state.o \
- $(MESABUILDDIR)unshared/stencil.o \
- $(MESABUILDDIR)unshared/texcompress.o \
- $(MESABUILDDIR)unshared/texcompress_fxt1.o \
- $(MESABUILDDIR)unshared/texcompress_s3tc.o \
- $(MESABUILDDIR)unshared/texenvprogram.o \
- $(MESABUILDDIR)unshared/texformat.o \
- $(MESABUILDDIR)unshared/teximage.o \
- $(MESABUILDDIR)unshared/texobj.o \
- $(MESABUILDDIR)unshared/texrender.o \
- $(MESABUILDDIR)unshared/texstate.o \
- $(MESABUILDDIR)unshared/texstore.o \
- $(MESABUILDDIR)unshared/varray.o \
- $(MESABUILDDIR)unshared/vtxfmt.o
-#else
-COREMESABASEUOBJS = $(COREMESABASEOBJS)
-#endif
-
-#ifdef NeedAllMesaSrc
- DISPATCHDOBJS = $(MESABUILDDIR)debugger/dispatch.o
- GLAPIDOBJS = $(MESABUILDDIR)debugger/glapi.o
- GLTHREADDOBJS = $(MESABUILDDIR)debugger/glthread.o
-#endif
-
-COREMESABASEDOBJS = \
- $(DISPATCHDOBJS) \
- $(GLAPIDOBJS) \
- $(GLTHREADDOBJS) \
- $(MESABUILDDIR)debugger/api_arrayelt.o \
- $(MESABUILDDIR)debugger/api_loopback.o \
- $(MESABUILDDIR)debugger/api_noop.o \
- $(MESABUILDDIR)debugger/api_validate.o \
- $(MESABUILDDIR)debugger/accum.o \
- $(MESABUILDDIR)debugger/attrib.o \
- $(MESABUILDDIR)debugger/blend.o \
- $(MESABUILDDIR)debugger/bufferobj.o \
- $(MESABUILDDIR)debugger/buffers.o \
- $(MESABUILDDIR)debugger/clip.o \
- $(MESABUILDDIR)debugger/colortab.o \
- $(MESABUILDDIR)debugger/context.o \
- $(MESABUILDDIR)debugger/convolve.o \
- $(MESABUILDDIR)debugger/debug.o \
- $(MESABUILDDIR)debugger/depth.o \
- $(MESABUILDDIR)debugger/dlist.o \
- $(MESABUILDDIR)debugger/drawpix.o \
- $(MESABUILDDIR)debugger/enable.o \
- $(MESABUILDDIR)debugger/enums.o \
- $(MESABUILDDIR)debugger/eval.o \
- $(MESABUILDDIR)debugger/execmem.o \
- $(MESABUILDDIR)debugger/extensions.o \
- $(MESABUILDDIR)debugger/fbobject.o \
- $(MESABUILDDIR)debugger/feedback.o \
- $(MESABUILDDIR)debugger/fog.o \
- $(MESABUILDDIR)debugger/framebuffer.o \
- $(MESABUILDDIR)debugger/get.o \
- $(MESABUILDDIR)debugger/getstring.o \
- $(MESABUILDDIR)debugger/hash.o \
- $(MESABUILDDIR)debugger/hint.o \
- $(MESABUILDDIR)debugger/histogram.o \
- $(MESABUILDDIR)debugger/image.o \
- $(MESABUILDDIR)debugger/imports.o \
- $(MESABUILDDIR)debugger/light.o \
- $(MESABUILDDIR)debugger/lines.o \
- $(MESABUILDDIR)debugger/matrix.o \
- $(MESABUILDDIR)debugger/mm.o \
- $(MESABUILDDIR)debugger/occlude.o \
- $(MESABUILDDIR)debugger/pixel.o \
- $(MESABUILDDIR)debugger/points.o \
- $(MESABUILDDIR)debugger/polygon.o \
- $(MESABUILDDIR)debugger/rastpos.o \
- $(MESABUILDDIR)debugger/renderbuffer.o \
- $(MESABUILDDIR)debugger/state.o \
- $(MESABUILDDIR)debugger/stencil.o \
- $(MESABUILDDIR)debugger/texcompress.o \
- $(MESABUILDDIR)debugger/texcompress_fxt1.o \
- $(MESABUILDDIR)debugger/texcompress_s3tc.o \
- $(MESABUILDDIR)debugger/texenvprogram.o \
- $(MESABUILDDIR)debugger/texformat.o \
- $(MESABUILDDIR)debugger/teximage.o \
- $(MESABUILDDIR)debugger/texobj.o \
- $(MESABUILDDIR)debugger/texrender.o \
- $(MESABUILDDIR)debugger/texstate.o \
- $(MESABUILDDIR)debugger/texstore.o \
- $(MESABUILDDIR)debugger/varray.o \
- $(MESABUILDDIR)debugger/vtxfmt.o
-
-#ifdef NeedAllMesaSrc
- DISPATCHPOBJS = $(MESABUILDDIR)profiled/dispatch.o
- GLAPIPOBJS = $(MESABUILDDIR)profiled/glapi.o
- GLTHREADPOBJS = $(MESABUILDDIR)profiled/glthread.o
-#endif
-
-COREMESABASEPOBJS = \
- $(DISPATCHPOBJS) \
- $(GLAPIPOBJS) \
- $(GLTHREADPOBJS) \
- $(MESABUILDDIR)profiled/api_arrayelt.o \
- $(MESABUILDDIR)profiled/api_loopback.o \
- $(MESABUILDDIR)profiled/api_noop.o \
- $(MESABUILDDIR)profiled/api_validate.o \
- $(MESABUILDDIR)profiled/accum.o \
- $(MESABUILDDIR)profiled/attrib.o \
- $(MESABUILDDIR)profiled/blend.o \
- $(MESABUILDDIR)profiled/bufferobj.o \
- $(MESABUILDDIR)profiled/buffers.o \
- $(MESABUILDDIR)profiled/clip.o \
- $(MESABUILDDIR)profiled/colortab.o \
- $(MESABUILDDIR)profiled/context.o \
- $(MESABUILDDIR)profiled/convolve.o \
- $(MESABUILDDIR)profiled/debug.o \
- $(MESABUILDDIR)profiled/depth.o \
- $(MESABUILDDIR)profiled/dlist.o \
- $(MESABUILDDIR)profiled/drawpix.o \
- $(MESABUILDDIR)profiled/enable.o \
- $(MESABUILDDIR)profiled/enums.o \
- $(MESABUILDDIR)profiled/eval.o \
- $(MESABUILDDIR)profiled/execmem.o \
- $(MESABUILDDIR)profiled/extensions.o \
- $(MESABUILDDIR)profiled/fbobject.o \
- $(MESABUILDDIR)profiled/feedback.o \
- $(MESABUILDDIR)profiled/fog.o \
- $(MESABUILDDIR)profiled/framebuffer.o \
- $(MESABUILDDIR)profiled/get.o \
- $(MESABUILDDIR)profiled/getstring.o \
- $(MESABUILDDIR)profiled/hash.o \
- $(MESABUILDDIR)profiled/hint.o \
- $(MESABUILDDIR)profiled/histogram.o \
- $(MESABUILDDIR)profiled/image.o \
- $(MESABUILDDIR)profiled/imports.o \
- $(MESABUILDDIR)profiled/light.o \
- $(MESABUILDDIR)profiled/lines.o \
- $(MESABUILDDIR)profiled/matrix.o \
- $(MESABUILDDIR)profiled/mm.o \
- $(MESABUILDDIR)profiled/occlude.o \
- $(MESABUILDDIR)profiled/pixel.o \
- $(MESABUILDDIR)profiled/points.o \
- $(MESABUILDDIR)profiled/polygon.o \
- $(MESABUILDDIR)profiled/rastpos.o \
- $(MESABUILDDIR)profiled/renderbuffer.o \
- $(MESABUILDDIR)profiled/state.o \
- $(MESABUILDDIR)profiled/stencil.o \
- $(MESABUILDDIR)profiled/texcompress.o \
- $(MESABUILDDIR)profiled/texcompress_fxt1.o \
- $(MESABUILDDIR)profiled/texcompress_s3tc.o \
- $(MESABUILDDIR)profiled/texenvprogram.o \
- $(MESABUILDDIR)profiled/texformat.o \
- $(MESABUILDDIR)profiled/teximage.o \
- $(MESABUILDDIR)profiled/texobj.o \
- $(MESABUILDDIR)profiled/texrender.o \
- $(MESABUILDDIR)profiled/texstate.o \
- $(MESABUILDDIR)profiled/texstore.o \
- $(MESABUILDDIR)profiled/varray.o \
- $(MESABUILDDIR)profiled/vtxfmt.o
diff --git a/nx-X11/lib/GL/mesa/math/Imakefile b/nx-X11/lib/GL/mesa/math/Imakefile
deleted file mode 100644
index ab00ae76f..000000000
--- a/nx-X11/lib/GL/mesa/math/Imakefile
+++ /dev/null
@@ -1,98 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/math/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-
-#define MesaMathBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_DIR = x86
- ASM_SRCS =
- ASM_OBJS =
-#if MesaUseMMX
- MMX_DEFS = -DUSE_MMX_ASM
-#endif
-#if MesaUse3DNow
- 3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-#if MesaUseSSE
- SSE_DEFS = -DUSE_SSE_ASM
-#endif
- ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
-#endif
-
-#ifdef SparcArchitecture
- ASM_DIR = sparc
- ASM_SRCS =
- ASM_OBJS =
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = $(MESA_MATH_SRCS)
- OBJS = $(MESA_MATH_OBJS)
-
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/math/Imakefile.inc b/nx-X11/lib/GL/mesa/math/Imakefile.inc
deleted file mode 100644
index cd1dcc427..000000000
--- a/nx-X11/lib/GL/mesa/math/Imakefile.inc
+++ /dev/null
@@ -1,82 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/math/Imakefile.inc,v 1.1tsi Exp $
-
-#ifndef MesaMathBuildDir
-#define MesaMathBuildDir $(GLXLIBSRC)/mesa/math/
-#endif
-
-MESAMATHBUILDDIR = MesaMathBuildDir
-
- MESA_MATH_SRCS = $(MESAMATHBUILDDIR)m_debug_clip.c \
- $(MESAMATHBUILDDIR)m_debug_norm.c \
- $(MESAMATHBUILDDIR)m_debug_xform.c \
- $(MESAMATHBUILDDIR)m_eval.c \
- $(MESAMATHBUILDDIR)m_matrix.c \
- $(MESAMATHBUILDDIR)m_translate.c \
- $(MESAMATHBUILDDIR)m_vector.c \
- $(MESAMATHBUILDDIR)m_xform.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(mathmod.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_clip_tmp.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_copy_tmp.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_debug_clip.c, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_debug.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_debug_util.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_debug_norm.c, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_debug_xform.c, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_dotprod_tmp.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_eval.c, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_eval.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_matrix.c, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_matrix.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_norm_tmp.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_translate.c, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_translate.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_trans_tmp.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_vector.c, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_vector.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_xform.c, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_xform.h, $(MESASRCDIR)/src/mesa/math)
-LinkSourceFile(m_xform_tmp.h, $(MESASRCDIR)/src/mesa/math)
-#endif
-
- MESA_MATH_OBJS = $(MESAMATHBUILDDIR)m_debug_clip.o \
- $(MESAMATHBUILDDIR)m_debug_norm.o \
- $(MESAMATHBUILDDIR)m_debug_xform.o \
- $(MESAMATHBUILDDIR)m_eval.o \
- $(MESAMATHBUILDDIR)m_matrix.o \
- $(MESAMATHBUILDDIR)m_translate.o \
- $(MESAMATHBUILDDIR)m_vector.o \
- $(MESAMATHBUILDDIR)m_xform.o
-
-#if defined(DoSharedLib) && DoSharedLib
- MESA_MATH_UOBJS = $(MESAMATHBUILDDIR)unshared/m_debug_clip.o \
- $(MESAMATHBUILDDIR)unshared/m_debug_norm.o \
- $(MESAMATHBUILDDIR)unshared/m_debug_xform.o \
- $(MESAMATHBUILDDIR)unshared/m_eval.o \
- $(MESAMATHBUILDDIR)unshared/m_matrix.o \
- $(MESAMATHBUILDDIR)unshared/m_translate.o \
- $(MESAMATHBUILDDIR)unshared/m_vector.o \
- $(MESAMATHBUILDDIR)unshared/m_xform.o
-#else
- MATH_MESA_UOBJS = $(MESA_MATH_OBJS)
-#endif
-
- MESA_MATH_DOBJS = $(MESAMATHBUILDDIR)debugger/m_debug_clip.o \
- $(MESAMATHBUILDDIR)debugger/m_debug_norm.o \
- $(MESAMATHBUILDDIR)debugger/m_debug_xform.o \
- $(MESAMATHBUILDDIR)debugger/m_eval.o \
- $(MESAMATHBUILDDIR)debugger/m_matrix.o \
- $(MESAMATHBUILDDIR)debugger/m_translate.o \
- $(MESAMATHBUILDDIR)debugger/m_vector.o \
- $(MESAMATHBUILDDIR)debugger/m_xform.o
-
- MESA_MATH_POBJS = $(MESAMATHBUILDDIR)profiled/m_debug_clip.o \
- $(MESAMATHBUILDDIR)profiled/m_debug_norm.o \
- $(MESAMATHBUILDDIR)profiled/m_debug_xform.o \
- $(MESAMATHBUILDDIR)profiled/m_eval.o \
- $(MESAMATHBUILDDIR)profiled/m_matrix.o \
- $(MESAMATHBUILDDIR)profiled/m_translate.o \
- $(MESAMATHBUILDDIR)profiled/m_vector.o \
- $(MESAMATHBUILDDIR)profiled/m_xform.o
-
diff --git a/nx-X11/lib/GL/mesa/shader/Imakefile b/nx-X11/lib/GL/mesa/shader/Imakefile
deleted file mode 100644
index d46834740..000000000
--- a/nx-X11/lib/GL/mesa/shader/Imakefile
+++ /dev/null
@@ -1,107 +0,0 @@
-XCOMM $XFree86$
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#define MesaShaderBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_DIR = x86
- ASM_SRCS =
- ASM_OBJS =
-#if MesaUseMMX
- MMX_DEFS = -DUSE_MMX_ASM
-#endif
-#if MesaUse3DNow
- 3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-#if MesaUseSSE
- SSE_DEFS = -DUSE_SSE_ASM
-#endif
- ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
-#endif
-
-#ifdef SparcArchitecture
- ASM_DIR = sparc
- ASM_SRCS =
- ASM_OBJS =
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/shader/grammar \
- -I$(MESASRCDIR)/src/mesa/shader/slang \
- -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = $(MESA_SHADER_SRCS)
- OBJS = $(MESA_SHADER_OBJS)
-
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-#define IHaveSubdirs
-#define PassCDebugFlags
-
-SUBDIRS = grammar slang
-
-MakeSubdirs($(SUBDIRS))
-DependSubdirs($(SUBDIRS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/shader/Imakefile.inc b/nx-X11/lib/GL/mesa/shader/Imakefile.inc
deleted file mode 100644
index 7d0032e56..000000000
--- a/nx-X11/lib/GL/mesa/shader/Imakefile.inc
+++ /dev/null
@@ -1,106 +0,0 @@
-XCOMM $XFree86:$
-
-#ifndef MesaShaderBuildDir
-#define MesaShaderBuildDir $(GLXLIBSRC)/mesa/shader/
-#endif
-
-MESASHADERBUILDDIR = MesaShaderBuildDir
-
- MESA_SHADER_SRCS = $(MESASHADERBUILDDIR)arbprogparse.c \
- $(MESASHADERBUILDDIR)arbprogram.c \
- $(MESASHADERBUILDDIR)arbfragparse.c \
- $(MESASHADERBUILDDIR)arbvertparse.c \
- $(MESASHADERBUILDDIR)atifragshader.c \
- $(MESASHADERBUILDDIR)nvprogram.c \
- $(MESASHADERBUILDDIR)nvfragparse.c \
- $(MESASHADERBUILDDIR)nvvertexec.c \
- $(MESASHADERBUILDDIR)nvvertparse.c \
- $(MESASHADERBUILDDIR)program.c \
- $(MESASHADERBUILDDIR)shaderobjects.c \
- $(MESASHADERBUILDDIR)shaderobjects_3dlabs.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(arbprogparse.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(arbprogram.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(arbfragparse.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(arbvertparse.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(arbfragparse.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(arbprogparse.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(arbprogram.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(arbprogram_syn.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(arbvertparse.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(atifragshader.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(atifragshader.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvfragparse.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvfragprog.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvprogram.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvprogram.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvfragparse.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvvertexec.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvvertexec.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvvertparse.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvvertparse.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(nvvertprog.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(program.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(program.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(shaderobjects.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(shaderobjects.h, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(shaderobjects_3dlabs.c, $(MESASRCDIR)/src/mesa/shader)
-LinkSourceFile(shaderobjects_3dlabs.h, $(MESASRCDIR)/src/mesa/shader)
-#endif
-
- MESA_SHADER_OBJS = $(MESASHADERBUILDDIR)arbprogparse.o \
- $(MESASHADERBUILDDIR)arbprogram.o \
- $(MESASHADERBUILDDIR)arbfragparse.o \
- $(MESASHADERBUILDDIR)arbvertparse.o \
- $(MESASHADERBUILDDIR)atifragshader.o \
- $(MESASHADERBUILDDIR)nvprogram.o \
- $(MESASHADERBUILDDIR)nvfragparse.o \
- $(MESASHADERBUILDDIR)nvvertexec.o \
- $(MESASHADERBUILDDIR)nvvertparse.o \
- $(MESASHADERBUILDDIR)program.o \
- $(MESASHADERBUILDDIR)shaderobjects.o \
- $(MESASHADERBUILDDIR)shaderobjects_3dlabs.o
-
-#if defined(DoSharedLib) && DoSharedLib
- MESA_SHADER_UOBJS = $(MESASHADERBUILDDIR)unshared/arbprogparse.o \
- $(MESASHADERBUILDDIR)unshared/arbprogram.o \
- $(MESASHADERBUILDDIR)unshared/arbfragparse.o \
- $(MESASHADERBUILDDIR)unshared/arbvertparse.o \
- $(MESASHADERBUILDDIR)unshared/atifragshader.o \
- $(MESASHADERBUILDDIR)unshared/nvprogram.o \
- $(MESASHADERBUILDDIR)unshared/nvfragparse.o \
- $(MESASHADERBUILDDIR)unshared/nvvertexec.o \
- $(MESASHADERBUILDDIR)unshared/nvvertparse.o \
- $(MESASHADERBUILDDIR)unshared/program.o \
- $(MESASHADERBUILDDIR)unshared/shaderobjects.o \
- $(MESASHADERBUILDDIR)unshared/shaderobjects_3dlabs.o
-#else
- MESA_SHADER_UOBJS = $(MESA_SHADER_OBJS)
-#endif
-
- MESA_SHADER_DOBJS = $(MESASHADERBUILDDIR)debugger/arbprogparse.o \
- $(MESASHADERBUILDDIR)debugger/arbprogram.o \
- $(MESASHADERBUILDDIR)debugger/arbfragparse.o \
- $(MESASHADERBUILDDIR)debugger/arbvertparse.o \
- $(MESASHADERBUILDDIR)debugger/atifragshader.o \
- $(MESASHADERBUILDDIR)debugger/nvprogram.o \
- $(MESASHADERBUILDDIR)debugger/nvfragparse.o \
- $(MESASHADERBUILDDIR)debugger/nvvertexec.o \
- $(MESASHADERBUILDDIR)debugger/nvvertparse.o \
- $(MESASHADERBUILDDIR)debugger/program.o \
- $(MESASHADERBUILDDIR)debugger/shaderobjects.o \
- $(MESASHADERBUILDDIR)debugger/shaderobjects_3dlabs.o
-
- MESA_SHADER_POBJS = $(MESASHADERBUILDDIR)profiled/arbprogparse.o \
- $(MESASHADERBUILDDIR)profiled/arbprogram.o \
- $(MESASHADERBUILDDIR)profiled/arbfragparse.o \
- $(MESASHADERBUILDDIR)profiled/arbvertparse.o \
- $(MESASHADERBUILDDIR)profiled/atifragshader.o \
- $(MESASHADERBUILDDIR)profiled/nvprogram.o \
- $(MESASHADERBUILDDIR)profiled/nvfragparse.o \
- $(MESASHADERBUILDDIR)profiled/nvvertexec.o \
- $(MESASHADERBUILDDIR)profiled/nvvertparse.o \
- $(MESASHADERBUILDDIR)profiled/program.o \
- $(MESASHADERBUILDDIR)profiled/shaderobjects.o \
- $(MESASHADERBUILDDIR)profiled/shaderobjects_3dlabs.o
diff --git a/nx-X11/lib/GL/mesa/shader/grammar/Imakefile b/nx-X11/lib/GL/mesa/shader/grammar/Imakefile
deleted file mode 100644
index bbdec9764..000000000
--- a/nx-X11/lib/GL/mesa/shader/grammar/Imakefile
+++ /dev/null
@@ -1,98 +0,0 @@
-XCOMM $XFree86$
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#define MesaGrammarBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_DIR = x86
- ASM_SRCS =
- ASM_OBJS =
-#if MesaUseMMX
- MMX_DEFS = -DUSE_MMX_ASM
-#endif
-#if MesaUse3DNow
- 3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-#if MesaUseSSE
- SSE_DEFS = -DUSE_SSE_ASM
-#endif
- ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
-#endif
-
-#ifdef SparcArchitecture
- ASM_DIR = sparc
- ASM_SRCS =
- ASM_OBJS =
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/shader/grammar \
- -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = $(MESA_GRAMMAR_SRCS)
- OBJS = $(MESA_GRAMMAR_OBJS)
-
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/shader/grammar/Imakefile.inc b/nx-X11/lib/GL/mesa/shader/grammar/Imakefile.inc
deleted file mode 100644
index b2e885f89..000000000
--- a/nx-X11/lib/GL/mesa/shader/grammar/Imakefile.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-XCOMM $XFree86$
-
-#ifndef MesaGrammarBuildDir
-#define MesaGrammarBuildDir $(GLXLIBSRC)/mesa/shader/grammar/
-#endif
-
-MESAGRAMMARBUILDDIR=MesaGrammarBuildDir
-
- MESA_GRAMMAR_SRCS = $(MESAGRAMMARBUILDDIR)grammar_mesa.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(grammar.c, $(MESASRCDIR)/src/mesa/shader/grammar)
-LinkSourceFile(grammar.h, $(MESASRCDIR)/src/mesa/shader/grammar)
-LinkSourceFile(grammar_syn.h, $(MESASRCDIR)/src/mesa/shader/grammar)
-LinkSourceFile(grammar_mesa.c, $(MESASRCDIR)/src/mesa/shader/grammar)
-LinkSourceFile(grammar_mesa.h, $(MESASRCDIR)/src/mesa/shader/grammar)
-#endif
-
- MESA_GRAMMAR_OBJS = $(MESAGRAMMARBUILDDIR)grammar_mesa.o
-
-#if defined(DoSharedLib) && DoSharedLib
- MESA_GRAMMAR_UOBJS = $(MESAGRAMMARBUILDDIR)unshared/grammar_mesa.o
-#else
- MESA_GRAMMAR_UOBJS = $(MESA_GRAMMAR_OBJS)
-#endif
-
- MESA_GRAMMAR_DOBJS = $(MESAGRAMMARBUILDDIR)debugger/grammar_mesa.o
-
- MESA_GRAMMAR_POBJS = $(MESAGRAMMARBUILDDIR)profiled/grammar_mesa.o
diff --git a/nx-X11/lib/GL/mesa/shader/slang/Imakefile b/nx-X11/lib/GL/mesa/shader/slang/Imakefile
deleted file mode 100644
index 096a8ea63..000000000
--- a/nx-X11/lib/GL/mesa/shader/slang/Imakefile
+++ /dev/null
@@ -1,108 +0,0 @@
-XCOMM $XFree86$
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#define MesaSlangBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_DIR = x86
- ASM_SRCS =
- ASM_OBJS =
-#if MesaUseMMX
- MMX_DEFS = -DUSE_MMX_ASM
-#endif
-#if MesaUse3DNow
- 3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-#if MesaUseSSE
- SSE_DEFS = -DUSE_SSE_ASM
-#endif
- ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
-#endif
-
-#ifdef SparcArchitecture
- ASM_DIR = sparc
- ASM_SRCS =
- ASM_OBJS =
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/shader/grammar \
- -I$(MESASRCDIR)/src/mesa/shader/slang \
- -I$(MESASRCDIR)/src/mesa/shader/slang/library \
- -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = $(MESA_SLANG_SRCS)
- OBJS = $(MESA_SLANG_OBJS)
-
-
-#include <Library.tmpl>
-
-#define IHaveSubdirs
-#define PassCDebugFlags
-
-SUBDIRS = library
-
-MakeSubdirs($(SUBDIRS))
-DependSubdirs($(SUBDIRS))
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/shader/slang/Imakefile.inc b/nx-X11/lib/GL/mesa/shader/slang/Imakefile.inc
deleted file mode 100644
index d824ca797..000000000
--- a/nx-X11/lib/GL/mesa/shader/slang/Imakefile.inc
+++ /dev/null
@@ -1,90 +0,0 @@
-XCOMM $XFree86$
-
-#ifndef MesaSlangBuildDir
-#define MesaSlangBuildDir $(GLXLIBSRC)/mesa/shader/slang/
-#endif
-
-MESASLANGBUILDDIR=MesaSlangBuildDir
-
- MESA_SLANG_SRCS = $(MESASLANGBUILDDIR)slang_assemble_assignment.c \
- $(MESASLANGBUILDDIR)slang_assemble.c \
- $(MESASLANGBUILDDIR)slang_assemble_conditional.c \
- $(MESASLANGBUILDDIR)slang_assemble_constructor.c \
- $(MESASLANGBUILDDIR)slang_assemble_typeinfo.c \
- $(MESASLANGBUILDDIR)slang_compile.c \
- $(MESASLANGBUILDDIR)slang_execute.c \
- $(MESASLANGBUILDDIR)slang_preprocess.c \
- $(MESASLANGBUILDDIR)slang_storage.c \
- $(MESASLANGBUILDDIR)slang_utility.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(slang_assemble_assignment.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_assemble_assignment.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_assemble.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_assemble.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_assemble_conditional.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_assemble_conditional.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_assemble_constructor.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_assemble_constructor.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_assemble_typeinfo.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_assemble_typeinfo.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_compile.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_compile.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_execute.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_execute.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_preprocess.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_preprocess.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_storage.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_storage.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_utility.c, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(slang_utility.h, $(MESASRCDIR)/src/mesa/shader/slang)
-LinkSourceFile(traverse_wrap.h, $(MESASRCDIR)/src/mesa/shader/slang)
-#endif
-
- MESA_SLANG_OBJS = $(MESASLANGBUILDDIR)slang_assemble_assignment.o \
- $(MESASLANGBUILDDIR)slang_assemble.o \
- $(MESASLANGBUILDDIR)slang_assemble_conditional.o \
- $(MESASLANGBUILDDIR)slang_assemble_constructor.o \
- $(MESASLANGBUILDDIR)slang_assemble_typeinfo.o \
- $(MESASLANGBUILDDIR)slang_compile.o \
- $(MESASLANGBUILDDIR)slang_execute.o \
- $(MESASLANGBUILDDIR)slang_preprocess.o \
- $(MESASLANGBUILDDIR)slang_storage.o \
- $(MESASLANGBUILDDIR)slang_utility.o
-
-#if defined(DoSharedLib) && DoSharedLib
- MESA_SLANG_UOBJS = $(MESASLANGBUILDDIR)unshared/slang_assemble_assignment.o \
- $(MESASLANGBUILDDIR)unshared/slang_assemble.o \
- $(MESASLANGBUILDDIR)unshared/slang_assemble_conditional.o \
- $(MESASLANGBUILDDIR)unshared/slang_assemble_constructor.o \
- $(MESASLANGBUILDDIR)unshared/slang_assemble_typeinfo.o \
- $(MESASLANGBUILDDIR)unshared/slang_compile.o \
- $(MESASLANGBUILDDIR)unshared/slang_execute.o \
- $(MESASLANGBUILDDIR)unshared/slang_preprocess.o \
- $(MESASLANGBUILDDIR)unshared/slang_storage.o \
- $(MESASLANGBUILDDIR)unshared/slang_utility.o
-#else
- MESA_SLANG_UOBJS = $(MESA_SLANG_OBJS)
-#endif
-
- MESA_SLANG_DOBJS = $(MESASLANGBUILDDIR)debuggerslang_assemble_assignment.o \
- $(MESASLANGBUILDDIR)debuggerslang_assemble.o \
- $(MESASLANGBUILDDIR)debuggerslang_assemble_conditional.o \
- $(MESASLANGBUILDDIR)debuggerslang_assemble_constructor.o \
- $(MESASLANGBUILDDIR)debuggerslang_assemble_typeinfo.o \
- $(MESASLANGBUILDDIR)debuggerslang_compile.o \
- $(MESASLANGBUILDDIR)debuggerslang_execute.o \
- $(MESASLANGBUILDDIR)debuggerslang_preprocess.o \
- $(MESASLANGBUILDDIR)debuggerslang_storage.o \
- $(MESASLANGBUILDDIR)debuggerslang_utility.o
-
- MESA_SLANG_POBJS = $(MESASLANGBUILDDIR)profiled/slang_assemble_assignment.o \
- $(MESASLANGBUILDDIR)profiled/slang_assemble.o \
- $(MESASLANGBUILDDIR)profiled/slang_assemble_conditional.o \
- $(MESASLANGBUILDDIR)profiled/slang_assemble_constructor.o \
- $(MESASLANGBUILDDIR)profiled/slang_assemble_typeinfo.o \
- $(MESASLANGBUILDDIR)profiled/slang_compile.o \
- $(MESASLANGBUILDDIR)profiled/slang_execute.o \
- $(MESASLANGBUILDDIR)profiled/slang_preprocess.o \
- $(MESASLANGBUILDDIR)profiled/slang_storage.o \
- $(MESASLANGBUILDDIR)profiled/slang_utility.o
diff --git a/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile b/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile
deleted file mode 100644
index de32171ae..000000000
--- a/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile
+++ /dev/null
@@ -1,97 +0,0 @@
-XCOMM $XFree86$
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#define MesaShaderBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_DIR = x86
- ASM_SRCS =
- ASM_OBJS =
-#if MesaUseMMX
- MMX_DEFS = -DUSE_MMX_ASM
-#endif
-#if MesaUse3DNow
- 3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-#if MesaUseSSE
- SSE_DEFS = -DUSE_SSE_ASM
-#endif
- ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
-#endif
-
-#ifdef SparcArchitecture
- ASM_DIR = sparc
- ASM_SRCS =
- ASM_OBJS =
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/shader/slang \
- -I$(MESASRCDIR)/src/mesa/shader/slang/library \
- -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = $(MESA_SLANG_SRCS)
- OBJS = $(MESA_SLANG_OBJS)
-
-
-#include <Library.tmpl>
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile.inc b/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile.inc
deleted file mode 100644
index 3489b7a28..000000000
--- a/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-XCOMM $XFree86:$
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(slang_common_builtin_gc_bin.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-LinkSourceFile(slang_common_builtin_gc.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-LinkSourceFile(slang_core_gc_bin.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-LinkSourceFile(slang_core_gc.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-LinkSourceFile(slang_fragment_builtin_gc_bin.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-LinkSourceFile(slang_fragment_builtin_gc.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-LinkSourceFile(slang_shader_syn.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-LinkSourceFile(slang_version_syn.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-LinkSourceFile(slang_vertex_builtin_gc_bin.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-LinkSourceFile(slang_vertex_builtin_gc.h, $(MESASRCDIR)/src/mesa/shader/slang/library)
-#endif
diff --git a/nx-X11/lib/GL/mesa/sparc/Imakefile b/nx-X11/lib/GL/mesa/sparc/Imakefile
deleted file mode 100644
index 8cd9c9f8b..000000000
--- a/nx-X11/lib/GL/mesa/sparc/Imakefile
+++ /dev/null
@@ -1,68 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/SPARC/Imakefile,v 1.3 2002/11/22 22:55:58 tsi Exp $
-XCOMM $XdotOrg: xc/lib/GL/mesa/sparc/Imakefile,v 1.3 2004/11/13 04:39:16 gisburn Exp $
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#define MesaSPARCBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
- DEFINES = $(ALLOC_DEFINES) GlxDefines $(MESA_ASM_DEFINES)
- INCLUDES = -I$(INCLUDESRC) -I$(EXTINCSRC) -I$(MESASRCDIR)/src \
- -I$(MESASRCDIR)/src/SPARC \
- -I../../../include \
- -I$(MESASRCDIR)/include \
- -I$(GLXLIBSRC)/include \
- -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/sparc \
- -I$(MESASRCDIR)/src/mesa/glapi
-
- SRCS = $(MESA_ASM_SRCS)
- OBJS = $(MESA_ASM_OBJS)
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-STD_CPP_DEFINES = StandardDefines $(PROJECT_DEFINES)
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-ObjectFromAsmSource(xform, NullParameter)
-ObjectFromAsmSource(clip, NullParameter)
-ObjectFromAsmSource(norm, NullParameter)
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/sparc/Imakefile.inc b/nx-X11/lib/GL/mesa/sparc/Imakefile.inc
deleted file mode 100644
index 6bd006749..000000000
--- a/nx-X11/lib/GL/mesa/sparc/Imakefile.inc
+++ /dev/null
@@ -1,58 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/SPARC/Imakefile.inc,v 1.2 2002/11/14 21:01:16 tsi Exp $
-
-#ifndef MesaSPARCBuildDir
-#define MesaSPARCBuildDir $(GLXLIBSRC)/mesa/sparc/
-#endif
-
-MESASPARCBUILDDIR = MesaSPARCBuildDir
-
-MESA_SPARC_SRCS = $(MESASPARCBUILDDIR)sparc.c \
- $(MESASPARCBUILDDIR)xform.S \
- $(MESASPARCBUILDDIR)clip.S
-
-#ifdef NeedToLinkMesaSrc
-/* If $(MESASRCDIR)/src/mesa/sparc isn't in the INCLUDES, it should be. */
-LinkSourceFile(sparc.c, $(MESASRCDIR)/src/mesa/sparc)
-LinkSourceFile(xform.S, $(MESASRCDIR)/src/mesa/sparc)
-LinkSourceFile(clip.S, $(MESASRCDIR)/src/mesa/sparc)
-LinkSourceFile(norm.S, $(MESASRCDIR)/src/mesa/sparc)
-#endif
-
-MESA_SPARC_OBJS = $(MESASPARCBUILDDIR)sparc.o \
- $(MESASPARCBUILDDIR)xform.o \
- $(MESASPARCBUILDDIR)clip.o \
- $(MESASPARCBUILDDIR)norm.o
-
-#if defined(DoSharedLib) && DoSharedLib
-MESA_SPARC_UOBJS = $(MESASPARCBUILDDIR)unshared/sparc.o \
- $(MESASPARCBUILDDIR)xform.o \
- $(MESASPARCBUILDDIR)clip.o \
- $(MESASPARCBUILDDIR)norm.o
-#else
-MESA_SPARC_UOBJS = $(MESA_SPARC_OBJS)
-#endif
-
-MESA_SPARC_DOBJS = $(MESASPARCBUILDDIR)debugger/sparc.o \
- $(MESASPARCBUILDDIR)xform.o \
- $(MESASPARCBUILDDIR)clip.o \
- $(MESASPARCBUILDDIR)norm.o
-
-MESA_SPARC_POBJS = $(MESAX86BUILDDIR)profiled/sparc.o \
- $(MESAX86BUILDDIR)xform.o \
- $(MESAX86BUILDDIR)clip.o \
- $(MESAX86BUILDDIR)norm.o
-
-MESA_SPARC_DEFS = -DUSE_SPARC_ASM
-
-MESA_ASM_SRCS = $(MESA_SPARC_SRCS)
-
-MESA_ASM_OBJS = $(MESA_SPARC_OBJS)
-
-MESA_ASM_UOBJS = $(MESA_SPARC_UOBJS)
-
-MESA_ASM_DOBJS = $(MESA_SPARC_DOBJS)
-
-MESA_ASM_POBJS = $(MESA_SPARC_POBJS)
-
-MESA_ASM_DEFINES = $(MESA_SPARC_DEFS)
-
diff --git a/nx-X11/lib/GL/mesa/swrast/Imakefile b/nx-X11/lib/GL/mesa/swrast/Imakefile
deleted file mode 100644
index 105615b82..000000000
--- a/nx-X11/lib/GL/mesa/swrast/Imakefile
+++ /dev/null
@@ -1,100 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/swrast/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#define MesaSwrastBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_DIR = x86
- ASM_SRCS =
- ASM_OBJS =
-#if MesaUseMMX
- MMX_DEFS = -DUSE_MMX_ASM
-#endif
-#if MesaUse3DNow
- 3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-#if MesaUseSSE
- SSE_DEFS = -DUSE_SSE_ASM
-#endif
- ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
-#endif
-
-#ifdef SparcArchitecture
- ASM_DIR = sparc
- ASM_SRCS =
- ASM_OBJS =
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/array_cache \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/swrast \
- -I$(MESASRCDIR)/src/mesa/shader \
- -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = $(MESA_SWRAST_SRCS)
- OBJS = $(MESA_SWRAST_OBJS)
-
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/swrast/Imakefile.inc b/nx-X11/lib/GL/mesa/swrast/Imakefile.inc
deleted file mode 100644
index 683b8f0a7..000000000
--- a/nx-X11/lib/GL/mesa/swrast/Imakefile.inc
+++ /dev/null
@@ -1,218 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/swrast/Imakefile.inc,v 1.1tsi Exp $
-
-#ifndef MesaSwrastBuildDir
-#define MesaSwrastBuildDir $(GLXLIBSRC)/mesa/swrast/
-#endif
-
-MESASWRASTBUILDDIR = MesaSwrastBuildDir
-
- MESA_SWRAST_SRCS = $(MESASWRASTBUILDDIR)s_aaline.c \
- $(MESASWRASTBUILDDIR)s_aatriangle.c \
- $(MESASWRASTBUILDDIR)s_accum.c \
- $(MESASWRASTBUILDDIR)s_alpha.c \
- $(MESASWRASTBUILDDIR)s_atifragshader.c \
- $(MESASWRASTBUILDDIR)s_bitmap.c \
- $(MESASWRASTBUILDDIR)s_blend.c \
- $(MESASWRASTBUILDDIR)s_buffers.c \
- $(MESASWRASTBUILDDIR)s_context.c \
- $(MESASWRASTBUILDDIR)s_copypix.c \
- $(MESASWRASTBUILDDIR)s_depth.c \
- $(MESASWRASTBUILDDIR)s_drawpix.c \
- $(MESASWRASTBUILDDIR)s_feedback.c \
- $(MESASWRASTBUILDDIR)s_fog.c \
- $(MESASWRASTBUILDDIR)s_imaging.c \
- $(MESASWRASTBUILDDIR)s_lines.c \
- $(MESASWRASTBUILDDIR)s_logic.c \
- $(MESASWRASTBUILDDIR)s_masking.c \
- $(MESASWRASTBUILDDIR)s_nvfragprog.c \
- $(MESASWRASTBUILDDIR)s_pixeltex.c \
- $(MESASWRASTBUILDDIR)s_points.c \
- $(MESASWRASTBUILDDIR)s_readpix.c \
- $(MESASWRASTBUILDDIR)s_span.c \
- $(MESASWRASTBUILDDIR)s_stencil.c \
- $(MESASWRASTBUILDDIR)s_texstore.c \
- $(MESASWRASTBUILDDIR)s_texture.c \
- $(MESASWRASTBUILDDIR)s_triangle.c \
- $(MESASWRASTBUILDDIR)s_zoom.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(s_aaline.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_aaline.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_aalinetemp.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_aatriangle.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_aatriangle.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_aatritemp.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_accum.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_accum.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_alpha.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_alpha.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_atifragshader.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_atifragshader.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_bitmap.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_blend.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_blend.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_buffers.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_context.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_context.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_copypix.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_depth.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_depth.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_drawpix.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_drawpix.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_feedback.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_feedback.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_fog.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_fog.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_imaging.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_lines.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_lines.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_linetemp.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_logic.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_logic.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_masking.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_masking.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_nvfragprog.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_nvfragprog.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_pixeltex.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_pixeltex.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_points.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_points.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_pointtemp.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_readpix.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_span.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_span.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_spantemp.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_stencil.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_stencil.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_texstore.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_texture.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_texture.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_triangle.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_triangle.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_trispan.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_tritemp.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_zoom.c, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(s_zoom.h, $(MESASRCDIR)/src/mesa/swrast)
-LinkSourceFile(swrast.h, $(MESASRCDIR)/src/mesa/swrast)
-#endif
-
- MESA_SWRAST_OBJS = $(MESASWRASTBUILDDIR)s_aaline.o \
- $(MESASWRASTBUILDDIR)s_aatriangle.o \
- $(MESASWRASTBUILDDIR)s_accum.o \
- $(MESASWRASTBUILDDIR)s_alpha.o \
- $(MESASWRASTBUILDDIR)s_atifragshader.o \
- $(MESASWRASTBUILDDIR)s_bitmap.o \
- $(MESASWRASTBUILDDIR)s_blend.o \
- $(MESASWRASTBUILDDIR)s_buffers.o \
- $(MESASWRASTBUILDDIR)s_context.o \
- $(MESASWRASTBUILDDIR)s_copypix.o \
- $(MESASWRASTBUILDDIR)s_depth.o \
- $(MESASWRASTBUILDDIR)s_drawpix.o \
- $(MESASWRASTBUILDDIR)s_feedback.o \
- $(MESASWRASTBUILDDIR)s_fog.o \
- $(MESASWRASTBUILDDIR)s_imaging.o \
- $(MESASWRASTBUILDDIR)s_lines.o \
- $(MESASWRASTBUILDDIR)s_logic.o \
- $(MESASWRASTBUILDDIR)s_masking.o \
- $(MESASWRASTBUILDDIR)s_nvfragprog.o \
- $(MESASWRASTBUILDDIR)s_pixeltex.o \
- $(MESASWRASTBUILDDIR)s_points.o \
- $(MESASWRASTBUILDDIR)s_readpix.o \
- $(MESASWRASTBUILDDIR)s_span.o \
- $(MESASWRASTBUILDDIR)s_stencil.o \
- $(MESASWRASTBUILDDIR)s_texstore.o \
- $(MESASWRASTBUILDDIR)s_texture.o \
- $(MESASWRASTBUILDDIR)s_triangle.o \
- $(MESASWRASTBUILDDIR)s_zoom.o
-
-#if defined(DoSharedLib) && DoSharedLib
- MESA_SWRAST_UOBJS = $(MESASWRASTBUILDDIR)unshared/s_aaline.o \
- $(MESASWRASTBUILDDIR)unshared/s_aatriangle.o \
- $(MESASWRASTBUILDDIR)unshared/s_accum.o \
- $(MESASWRASTBUILDDIR)unshared/s_alpha.o \
- $(MESASWRASTBUILDDIR)unshared/s_atifragshader.o \
- $(MESASWRASTBUILDDIR)unshared/s_bitmap.o \
- $(MESASWRASTBUILDDIR)unshared/s_blend.o \
- $(MESASWRASTBUILDDIR)unshared/s_buffers.o \
- $(MESASWRASTBUILDDIR)unshared/s_context.o \
- $(MESASWRASTBUILDDIR)unshared/s_copypix.o \
- $(MESASWRASTBUILDDIR)unshared/s_depth.o \
- $(MESASWRASTBUILDDIR)unshared/s_drawpix.o \
- $(MESASWRASTBUILDDIR)unshared/s_feedback.o \
- $(MESASWRASTBUILDDIR)unshared/s_fog.o \
- $(MESASWRASTBUILDDIR)unshared/s_imaging.o \
- $(MESASWRASTBUILDDIR)unshared/s_lines.o \
- $(MESASWRASTBUILDDIR)unshared/s_logic.o \
- $(MESASWRASTBUILDDIR)unshared/s_masking.o \
- $(MESASWRASTBUILDDIR)unshared/s_nvfragprog.o \
- $(MESASWRASTBUILDDIR)unshared/s_pixeltex.o \
- $(MESASWRASTBUILDDIR)unshared/s_points.o \
- $(MESASWRASTBUILDDIR)unshared/s_readpix.o \
- $(MESASWRASTBUILDDIR)unshared/s_span.o \
- $(MESASWRASTBUILDDIR)unshared/s_stencil.o \
- $(MESASWRASTBUILDDIR)unshared/s_texstore.o \
- $(MESASWRASTBUILDDIR)unshared/s_texture.o \
- $(MESASWRASTBUILDDIR)unshared/s_triangle.o \
- $(MESASWRASTBUILDDIR)unshared/s_zoom.o
-#else
- MESA_SWRAST_UOBJS = $(MESA_SWRAST_OBJS)
-#endif
-
- MESA_SWRAST_DOBJS = $(MESASWRASTBUILDDIR)debugger/s_aaline.o \
- $(MESASWRASTBUILDDIR)debugger/s_aatriangle.o \
- $(MESASWRASTBUILDDIR)debugger/s_accum.o \
- $(MESASWRASTBUILDDIR)debugger/s_alpha.o \
- $(MESASWRASTBUILDDIR)debugger/s_atifragshader.o \
- $(MESASWRASTBUILDDIR)debugger/s_bitmap.o \
- $(MESASWRASTBUILDDIR)debugger/s_blend.o \
- $(MESASWRASTBUILDDIR)debugger/s_buffers.o \
- $(MESASWRASTBUILDDIR)debugger/s_context.o \
- $(MESASWRASTBUILDDIR)debugger/s_copypix.o \
- $(MESASWRASTBUILDDIR)debugger/s_depth.o \
- $(MESASWRASTBUILDDIR)debugger/s_drawpix.o \
- $(MESASWRASTBUILDDIR)debugger/s_feedback.o \
- $(MESASWRASTBUILDDIR)debugger/s_fog.o \
- $(MESASWRASTBUILDDIR)debugger/s_imaging.o \
- $(MESASWRASTBUILDDIR)debugger/s_lines.o \
- $(MESASWRASTBUILDDIR)debugger/s_logic.o \
- $(MESASWRASTBUILDDIR)debugger/s_masking.o \
- $(MESASWRASTBUILDDIR)debugger/s_nvfragprog.o \
- $(MESASWRASTBUILDDIR)debugger/s_pixeltex.o \
- $(MESASWRASTBUILDDIR)debugger/s_points.o \
- $(MESASWRASTBUILDDIR)debugger/s_readpix.o \
- $(MESASWRASTBUILDDIR)debugger/s_span.o \
- $(MESASWRASTBUILDDIR)debugger/s_stencil.o \
- $(MESASWRASTBUILDDIR)debugger/s_texstore.o \
- $(MESASWRASTBUILDDIR)debugger/s_texture.o \
- $(MESASWRASTBUILDDIR)debugger/s_triangle.o \
- $(MESASWRASTBUILDDIR)debugger/s_zoom.o
-
- MESA_SWRAST_POBJS = $(MESASWRASTBUILDDIR)profiled/s_aaline.o \
- $(MESASWRASTBUILDDIR)profiled/s_aatriangle.o \
- $(MESASWRASTBUILDDIR)profiled/s_accum.o \
- $(MESASWRASTBUILDDIR)profiled/s_alpha.o \
- $(MESASWRASTBUILDDIR)profiled/s_atifragshader.o \
- $(MESASWRASTBUILDDIR)profiled/s_bitmap.o \
- $(MESASWRASTBUILDDIR)profiled/s_blend.o \
- $(MESASWRASTBUILDDIR)profiled/s_buffers.o \
- $(MESASWRASTBUILDDIR)profiled/s_context.o \
- $(MESASWRASTBUILDDIR)profiled/s_copypix.o \
- $(MESASWRASTBUILDDIR)profiled/s_depth.o \
- $(MESASWRASTBUILDDIR)profiled/s_drawpix.o \
- $(MESASWRASTBUILDDIR)profiled/s_feedback.o \
- $(MESASWRASTBUILDDIR)profiled/s_fog.o \
- $(MESASWRASTBUILDDIR)profiled/s_imaging.o \
- $(MESASWRASTBUILDDIR)profiled/s_lines.o \
- $(MESASWRASTBUILDDIR)profiled/s_logic.o \
- $(MESASWRASTBUILDDIR)profiled/s_masking.o \
- $(MESASWRASTBUILDDIR)profiled/s_nvfragprog.o \
- $(MESASWRASTBUILDDIR)profiled/s_pixeltex.o \
- $(MESASWRASTBUILDDIR)profiled/s_points.o \
- $(MESASWRASTBUILDDIR)profiled/s_readpix.o \
- $(MESASWRASTBUILDDIR)profiled/s_span.o \
- $(MESASWRASTBUILDDIR)profiled/s_stencil.o \
- $(MESASWRASTBUILDDIR)profiled/s_texstore.o \
- $(MESASWRASTBUILDDIR)profiled/s_texture.o \
- $(MESASWRASTBUILDDIR)profiled/s_triangle.o \
- $(MESASWRASTBUILDDIR)profiled/s_zoom.o
-
diff --git a/nx-X11/lib/GL/mesa/swrast_setup/Imakefile b/nx-X11/lib/GL/mesa/swrast_setup/Imakefile
deleted file mode 100644
index 58766149d..000000000
--- a/nx-X11/lib/GL/mesa/swrast_setup/Imakefile
+++ /dev/null
@@ -1,99 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/swrast_setup/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-
-#define MesaSwrastSetupBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_DIR = x86
- ASM_SRCS =
- ASM_OBJS =
-#if MesaUseMMX
- MMX_DEFS = -DUSE_MMX_ASM
-#endif
-#if MesaUse3DNow
- 3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-#if MesaUseSSE
- SSE_DEFS = -DUSE_SSE_ASM
-#endif
- ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
-#endif
-
-#ifdef SparcArchitecture
- ASM_DIR = sparc
- ASM_SRCS =
- ASM_OBJS =
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/swrast_setup \
- -I$(MESASRCDIR)/src/mesa/tnl \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = $(MESA_SWR_SETUP_SRCS)
- OBJS = $(MESA_SWR_SETUP_OBJS)
-
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/swrast_setup/Imakefile.inc b/nx-X11/lib/GL/mesa/swrast_setup/Imakefile.inc
deleted file mode 100644
index 8d32aedb3..000000000
--- a/nx-X11/lib/GL/mesa/swrast_setup/Imakefile.inc
+++ /dev/null
@@ -1,36 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/swrast_setup/Imakefile.inc,v 1.1tsi Exp $
-
-#ifndef MesaSwrastSetupBuildDir
-#define MesaSwrastSetupBuildDir $(GLXLIBSRC)/mesa/swrast_setup/
-#endif
-
-MESASWRSETUPDIR = MesaSwrastSetupBuildDir
-
- MESA_SWR_SETUP_SRCS = $(MESASWRSETUPDIR)ss_context.c \
- $(MESASWRSETUPDIR)ss_triangle.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(ss_context.c, $(MESASRCDIR)/src/mesa/swrast_setup)
-LinkSourceFile(ss_context.h, $(MESASRCDIR)/src/mesa/swrast_setup)
-LinkSourceFile(ss_triangle.c, $(MESASRCDIR)/src/mesa/swrast_setup)
-LinkSourceFile(ss_triangle.h, $(MESASRCDIR)/src/mesa/swrast_setup)
-LinkSourceFile(ss_tritmp.h, $(MESASRCDIR)/src/mesa/swrast_setup)
-LinkSourceFile(swrast_setup.h, $(MESASRCDIR)/src/mesa/swrast_setup)
-#endif
-
- MESA_SWR_SETUP_OBJS = $(MESASWRSETUPDIR)ss_context.o \
- $(MESASWRSETUPDIR)ss_triangle.o
-
-#if defined(DoSharedLib) && DoSharedLib
-MESA_SWR_SETUP_UOBJS = $(MESASWRSETUPDIR)unshared/ss_context.o \
- $(MESASWRSETUPDIR)unshared/ss_triangle.o
-#else
-MESA_SWR_SETUP_UOBJS = $(MESA_SWR_SETUP_OBJS)
-#endif
-
-MESA_SWR_SETUP_DOBJS = $(MESASWRSETUPDIR)debugger/ss_context.o \
- $(MESASWRSETUPDIR)debugger/ss_triangle.o
-
-MESA_SWR_SETUP_POBJS = $(MESASWRSETUPDIR)profiled/ss_context.o \
- $(MESASWRSETUPDIR)profiled/ss_triangle.o
-
diff --git a/nx-X11/lib/GL/mesa/tnl/Imakefile b/nx-X11/lib/GL/mesa/tnl/Imakefile
deleted file mode 100644
index 99ec7525c..000000000
--- a/nx-X11/lib/GL/mesa/tnl/Imakefile
+++ /dev/null
@@ -1,101 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/tnl/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#define MesaTnlBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-#if defined(i386Architecture) && MesaUseX86Asm
- ASM_DIR = x86
- ASM_SRCS =
- ASM_OBJS =
-#if MesaUseMMX
- MMX_DEFS = -DUSE_MMX_ASM
-#endif
-#if MesaUse3DNow
- 3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-#if MesaUseSSE
- SSE_DEFS = -DUSE_SSE_ASM
-#endif
- ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
-#endif
-
-#ifdef SparcArchitecture
- ASM_DIR = sparc
- ASM_SRCS =
- ASM_OBJS =
- ASM_DEFS = -DUSE_SPARC_ASM
-#endif
-
-#ifdef UseCompaqMathLibrary
- MATHDEF = -DCCPML
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
- -I$(MESASRCDIR)/src/mesa/array_cache \
- -I$(MESASRCDIR)/src/mesa/math \
- -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/glapi \
- -I$(MESASRCDIR)/src/mesa/swrast_setup \
- -I$(MESASRCDIR)/src/mesa/shader \
- -I$(MESASRCDIR)/src/mesa/tnl \
- -I$(MESASRCDIR)/include \
- -I../../../include -I$(XINCLUDESRC)
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = $(MESA_TNL_SRCS)
- OBJS = $(MESA_TNL_OBJS)
-
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/tnl/Imakefile.inc b/nx-X11/lib/GL/mesa/tnl/Imakefile.inc
deleted file mode 100644
index a294a6fbf..000000000
--- a/nx-X11/lib/GL/mesa/tnl/Imakefile.inc
+++ /dev/null
@@ -1,225 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/tnl/Imakefile.inc,v 1.1tsi Exp $
-
-#ifndef MesaTnlBuildDir
-#define MesaTnlBuildDir $(GLXLIBSRC)/mesa/tnl/
-#endif
-
-MESATNLBUILDDIR = MesaTnlBuildDir
-
- MESA_TNL_SRCS = $(MESATNLBUILDDIR)t_array_api.c \
- $(MESATNLBUILDDIR)t_array_import.c \
- $(MESATNLBUILDDIR)t_context.c \
- $(MESATNLBUILDDIR)t_pipeline.c \
- $(MESATNLBUILDDIR)t_save_api.c \
- $(MESATNLBUILDDIR)t_save_loopback.c \
- $(MESATNLBUILDDIR)t_save_playback.c \
- $(MESATNLBUILDDIR)t_vb_arbprogram.c \
- $(MESATNLBUILDDIR)t_vb_arbprogram_sse.c \
- $(MESATNLBUILDDIR)t_vb_fog.c \
- $(MESATNLBUILDDIR)t_vb_cull.c \
- $(MESATNLBUILDDIR)t_vb_light.c \
- $(MESATNLBUILDDIR)t_vb_normals.c \
- $(MESATNLBUILDDIR)t_vb_points.c \
- $(MESATNLBUILDDIR)t_vb_program.c \
- $(MESATNLBUILDDIR)t_vb_render.c \
- $(MESATNLBUILDDIR)t_vb_texgen.c \
- $(MESATNLBUILDDIR)t_vb_texmat.c \
- $(MESATNLBUILDDIR)t_vb_vertex.c \
- $(MESATNLBUILDDIR)t_vertex.c \
- $(MESATNLBUILDDIR)t_vertex_generic.c \
- $(MESATNLBUILDDIR)t_vertex_sse.c \
- $(MESATNLBUILDDIR)t_vp_build.c \
- $(MESATNLBUILDDIR)t_vtx_api.c \
- $(MESATNLBUILDDIR)t_vtx_eval.c \
- $(MESATNLBUILDDIR)t_vtx_exec.c \
- $(MESATNLBUILDDIR)t_vtx_generic.c
-
-#if defined(i386Architecture) && MesaUseX86Asm
- MESA_TNL_SRCS += MesaTnlAsmSrcs $(MESATNLBUILDDIR)t_vtx_x86.c \
- $(MESATNLBUILDDIR)t_vtx_x86_gcc.S
-#endif
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(t_array_api.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_array_api.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_array_import.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_array_import.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_context.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_context.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(tnl.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_pipeline.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_pipeline.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_save_api.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_save_api.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_save_loopback.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_save_playback.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_arbprogram.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_arbprogram.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_arbprogram_sse.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_cliptmp.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_fog.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_cull.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_light.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_lighttmp.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_normals.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_points.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_program.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_render.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_rendertmp.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_texgen.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_texmat.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vb_vertex.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vertex.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vertex.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vertex_generic.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vertex_sse.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vp_build.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vp_build.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vtx_api.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vtx_api.h, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vtx_eval.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vtx_exec.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vtx_generic.c, $(MESASRCDIR)/src/mesa/tnl)
-#if defined(i386Architecture) && MesaUseX86Asm
-LinkSourceFile(t_vtx_x86.c, $(MESASRCDIR)/src/mesa/tnl)
-LinkSourceFile(t_vtx_x86_gcc.S, $(MESASRCDIR)/src/mesa/tnl)
-#endif
-#endif
-
- MESA_TNL_OBJS = $(MESATNLBUILDDIR)t_array_api.o \
- $(MESATNLBUILDDIR)t_array_import.o \
- $(MESATNLBUILDDIR)t_context.o \
- $(MESATNLBUILDDIR)t_pipeline.o \
- $(MESATNLBUILDDIR)t_save_api.o \
- $(MESATNLBUILDDIR)t_save_loopback.o \
- $(MESATNLBUILDDIR)t_save_playback.o \
- $(MESATNLBUILDDIR)t_vb_arbprogram.o \
- $(MESATNLBUILDDIR)t_vb_arbprogram_sse.o \
- $(MESATNLBUILDDIR)t_vb_fog.o \
- $(MESATNLBUILDDIR)t_vb_cull.o \
- $(MESATNLBUILDDIR)t_vb_light.o \
- $(MESATNLBUILDDIR)t_vb_normals.o \
- $(MESATNLBUILDDIR)t_vb_points.o \
- $(MESATNLBUILDDIR)t_vb_program.o \
- $(MESATNLBUILDDIR)t_vb_render.o \
- $(MESATNLBUILDDIR)t_vb_texgen.o \
- $(MESATNLBUILDDIR)t_vb_texmat.o \
- $(MESATNLBUILDDIR)t_vb_vertex.o \
- $(MESATNLBUILDDIR)t_vertex.o \
- $(MESATNLBUILDDIR)t_vertex_generic.o \
- $(MESATNLBUILDDIR)t_vertex_sse.o \
- $(MESATNLBUILDDIR)t_vp_build.o \
- $(MESATNLBUILDDIR)t_vtx_api.o \
- $(MESATNLBUILDDIR)t_vtx_eval.o \
- $(MESATNLBUILDDIR)t_vtx_exec.o \
- $(MESATNLBUILDDIR)t_vtx_generic.o
-
-#if defined(i386Architecture) && MesaUseX86Asm
- MESA_TNL_OBJS += $(MESATNLBUILDDIR)t_vtx_x86.o \
- $(MESATNLBUILDDIR)t_vtx_x86_gcc.o
-#endif
-
-#if defined(DoSharedLib) && DoSharedLib
- MESA_TNL_UOBJS = $(MESATNLBUILDDIR)unshared/t_array_api.o \
- $(MESATNLBUILDDIR)unshared/t_array_import.o \
- $(MESATNLBUILDDIR)unshared/t_context.o \
- $(MESATNLBUILDDIR)unshared/t_pipeline.o \
- $(MESATNLBUILDDIR)unshared/t_save_api.o \
- $(MESATNLBUILDDIR)unshared/t_save_loopback.o \
- $(MESATNLBUILDDIR)unshared/t_save_playback.o \
- $(MESATNLBUILDDIR)unshared/t_vb_arbprogram.o \
- $(MESATNLBUILDDIR)unshared/t_vb_arbprogram_sse.o \
- $(MESATNLBUILDDIR)unshared/t_vb_fog.o \
- $(MESATNLBUILDDIR)unshared/t_vb_cull.o \
- $(MESATNLBUILDDIR)unshared/t_vb_light.o \
- $(MESATNLBUILDDIR)unshared/t_vb_normals.o \
- $(MESATNLBUILDDIR)unshared/t_vb_points.o \
- $(MESATNLBUILDDIR)unshared/t_vb_program.o \
- $(MESATNLBUILDDIR)unshared/t_vb_render.o \
- $(MESATNLBUILDDIR)unshared/t_vb_texgen.o \
- $(MESATNLBUILDDIR)unshared/t_vb_texmat.o \
- $(MESATNLBUILDDIR)unshared/t_vb_vertex.o \
- $(MESATNLBUILDDIR)unshared/t_vertex.o \
- $(MESATNLBUILDDIR)unshared/t_vertex_generic.o \
- $(MESATNLBUILDDIR)unshared/t_vertex_sse.o \
- $(MESATNLBUILDDIR)unshared/t_vp_build.o \
- $(MESATNLBUILDDIR)unshared/t_vtx_api.o \
- $(MESATNLBUILDDIR)unshared/t_vtx_eval.o \
- $(MESATNLBUILDDIR)unshared/t_vtx_exec.o \
- $(MESATNLBUILDDIR)unshared/t_vtx_generic.o
-
-#if defined(i386Architecture) && MesaUseX86Asm
- MESA_TNL_UOBJS += $(MESATNLBUILDDIR)unshared/t_vtx_x86.o \
- $(MESATNLBUILDDIR)t_vtx_x86_gcc.o
-#endif
-
-#else
- MESA_TNL_UOBJS = $(MESA_TNL_OBJS)
-#endif
-
- MESA_TNL_DOBJS = $(MESATNLBUILDDIR)debugger/t_array_api.o \
- $(MESATNLBUILDDIR)debugger/t_array_import.o \
- $(MESATNLBUILDDIR)debugger/t_context.o \
- $(MESATNLBUILDDIR)debugger/t_pipeline.o \
- $(MESATNLBUILDDIR)debugger/t_save_api.o \
- $(MESATNLBUILDDIR)debugger/t_save_loopback.o \
- $(MESATNLBUILDDIR)debugger/t_save_playback.o \
- $(MESATNLBUILDDIR)debugger/t_vb_arbprogram.o \
- $(MESATNLBUILDDIR)debugger/t_vb_arbprogram_sse.o \
- $(MESATNLBUILDDIR)debugger/t_vb_fog.o \
- $(MESATNLBUILDDIR)debugger/t_vb_cull.o \
- $(MESATNLBUILDDIR)debugger/t_vb_light.o \
- $(MESATNLBUILDDIR)debugger/t_vb_normals.o \
- $(MESATNLBUILDDIR)debugger/t_vb_points.o \
- $(MESATNLBUILDDIR)debugger/t_vb_program.o \
- $(MESATNLBUILDDIR)debugger/t_vb_render.o \
- $(MESATNLBUILDDIR)debugger/t_vb_texgen.o \
- $(MESATNLBUILDDIR)debugger/t_vb_texmat.o \
- $(MESATNLBUILDDIR)debugger/t_vb_vertex.o \
- $(MESATNLBUILDDIR)debugger/t_vertex.o \
- $(MESATNLBUILDDIR)debugger/t_vertex_generic.o \
- $(MESATNLBUILDDIR)debugger/t_vertex_sse.o \
- $(MESATNLBUILDDIR)debugger/t_vp_build.o \
- $(MESATNLBUILDDIR)debugger/t_vtx_api.o \
- $(MESATNLBUILDDIR)debugger/t_vtx_eval.o \
- $(MESATNLBUILDDIR)debugger/t_vtx_exec.o \
- $(MESATNLBUILDDIR)debugger/t_vtx_generic.o
-
-#if defined(i386Architecture) && MesaUseX86Asm
- MESA_TNL_DOBJS += $(MESATNLBUILDDIR)debugger/t_vtx_x86.o \
- $(MESATNLBUILDDIR)debugger/t_vtx_x86_gcc.o
-#endif
-
- MESA_TNL_POBJS = $(MESATNLBUILDDIR)profiled/t_array_api.o \
- $(MESATNLBUILDDIR)profiled/t_array_import.o \
- $(MESATNLBUILDDIR)profiled/t_context.o \
- $(MESATNLBUILDDIR)profiled/t_pipeline.o \
- $(MESATNLBUILDDIR)profiled/t_save_api.o \
- $(MESATNLBUILDDIR)profiled/t_save_loopback.o \
- $(MESATNLBUILDDIR)profiled/t_save_playback.o \
- $(MESATNLBUILDDIR)profiled/t_vb_arbprogram.o \
- $(MESATNLBUILDDIR)profiled/t_vb_arbprogram_sse.o \
- $(MESATNLBUILDDIR)profiled/t_vb_fog.o \
- $(MESATNLBUILDDIR)profiled/t_vb_cull.o \
- $(MESATNLBUILDDIR)profiled/t_vb_light.o \
- $(MESATNLBUILDDIR)profiled/t_vb_normals.o \
- $(MESATNLBUILDDIR)profiled/t_vb_points.o \
- $(MESATNLBUILDDIR)profiled/t_vb_program.o \
- $(MESATNLBUILDDIR)profiled/t_vb_render.o \
- $(MESATNLBUILDDIR)profiled/t_vb_texgen.o \
- $(MESATNLBUILDDIR)profiled/t_vb_texmat.o \
- $(MESATNLBUILDDIR)profiled/t_vb_vertex.o \
- $(MESATNLBUILDDIR)profiled/t_vertex.o \
- $(MESATNLBUILDDIR)profiled/t_vertex_generic.o \
- $(MESATNLBUILDDIR)profiled/t_vertex_sse.o \
- $(MESATNLBUILDDIR)profiled/t_vp_build.o \
- $(MESATNLBUILDDIR)profiled/t_vtx_api.o \
- $(MESATNLBUILDDIR)profiled/t_vtx_eval.o \
- $(MESATNLBUILDDIR)profiled/t_vtx_exec.o \
- $(MESATNLBUILDDIR)profiled/t_vtx_generic.o
-
-#if defined(i386Architecture) && MesaUseX86Asm
- MESA_TNL_POBJS += $(MESATNLBUILDDIR)profiled/t_vtx_x86.o \
- $(MESATNLBUILDDIR)profiled/t_vtx_x86_gcc.o
-#endif
-
diff --git a/nx-X11/lib/GL/mesa/tnl_dd/Imakefile b/nx-X11/lib/GL/mesa/tnl_dd/Imakefile
deleted file mode 100644
index 93b8c8877..000000000
--- a/nx-X11/lib/GL/mesa/tnl_dd/Imakefile
+++ /dev/null
@@ -1,63 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/tnl_dd/Imakefile,v 1.6 2002/11/25 12:58:55 tsi Exp $
-
-#include <Threads.tmpl>
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-/* Large PIC tables needed for Solaris SPARC builds */
-#if (defined(SunArchitecture) && defined(SparcArchitecture))
-# define LargePICTable YES
-#endif
-
-#define MesaTnlDdBuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if BuildXF86DRI
- DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER
- DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(XINCLUDESRC) -I$(INCLUDESRC)/GL \
- -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
-#endif
-
-MESA_INCLUDES = -I$(MESASRCDIR)/src \
- -I$(MESASRCDIR)/src/math \
- -I$(MESASRCDIR)/src/tnl_dd \
- -I$(MESASRCDIR)/include \
- -I../../../include
-
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
-
- DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/tnl_dd/Imakefile.inc b/nx-X11/lib/GL/mesa/tnl_dd/Imakefile.inc
deleted file mode 100644
index 8d5d3da2d..000000000
--- a/nx-X11/lib/GL/mesa/tnl_dd/Imakefile.inc
+++ /dev/null
@@ -1,40 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/tnl_dd/Imakefile.inc,v 1.1tsi Exp $
-
-#ifndef MesaTnlDdBuildDir
-#define MesaTnlDdBuildDir $(GLXLIBSRC)/mesa/tnl_dd/
-#endif
-
-MESATNLDDBUILDDIR = MesaTnlDdBuildDir
-
- MESA_TNL_DD_SRCS = $(MESATNLDDBUILDDIR)t_dd.c \
- $(MESATNLDDBUILDDIR)t_dd_vb.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(t_dd.c, $(MESASRCDIR)/src/mesa/tnl_dd)
-LinkSourceFile(t_dd_vb.c, $(MESASRCDIR)/src/mesa/tnl_dd)
-LinkSourceFile(t_dd_dmatmp2.h, $(MESASRCDIR)/src/mesa/tnl_dd)
-LinkSourceFile(t_dd_dmatmp.h, $(MESASRCDIR)/src/mesa/tnl_dd)
-LinkSourceFile(t_dd_rendertmp.h, $(MESASRCDIR)/src/mesa/tnl_dd)
-LinkSourceFile(t_dd_triemit.h, $(MESASRCDIR)/src/mesa/tnl_dd)
-LinkSourceFile(t_dd_tritmp.h, $(MESASRCDIR)/src/mesa/tnl_dd)
-LinkSourceFile(t_dd_unfilled.h, $(MESASRCDIR)/src/mesa/tnl_dd)
-LinkSourceFile(t_dd_vbtmp.h, $(MESASRCDIR)/src/mesa/tnl_dd)
-LinkSourceFile(t_dd_vertex.h, $(MESASRCDIR)/src/mesa/tnl_dd)
-#endif
-
- MESA_TNL_DD_OBJS = $(MESATNLDDBUILDDIR)t_dd.o \
- $(MESATNLDDBUILDDIR)t_dd_vb.o
-
-#if defined(DoSharedLib) && DoSharedLib
-MESA_TNL_DD_UOBJS = $(MESATNLDDBUILDDIR)unshared/t_dd.o \
- $(MESATNLDDBUILDDIR)unshared/t_dd_vb.o
-#else
-MESA_TNL_DD_UOBJS = $(MESA_TNL_DD_OBJS)
-#endif
-
-MESA_TNL_DD_DOBJS = $(MESATNLDDBUILDDIR)debugger/t_dd.o \
- $(MESATNLDDBUILDDIR)debugger/t_dd_vb.o
-
-MESA_TNL_DD_POBJS = $(MESATNLDDBUILDDIR)profiled/t_dd.o \
- $(MESATNLDDBUILDDIR)profiled/t_dd_vb.o
-
diff --git a/nx-X11/lib/GL/mesa/x86/Imakefile b/nx-X11/lib/GL/mesa/x86/Imakefile
deleted file mode 100644
index 543c05143..000000000
--- a/nx-X11/lib/GL/mesa/x86/Imakefile
+++ /dev/null
@@ -1,108 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X86/Imakefile,v 1.23 2002/07/14 17:08:16 alanh Exp $
-
-/*
- * Need both shared and unshared Mesa objects in the following cases:
- * GlxDriverUsesMesa
- * GlxBuiltInXMesa
- * BuildOSMesaLib
- *
- * In other cases, only the shared version is needed to link in to loadable
- * driver modules.
- */
-
-#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
-#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
-#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
-#define DoExtraLib SharedLibGlx
-#define DoDebugLib DebugLibGlx
-#define DoProfileLib ProfileLibGlx
-#else
-#define DoNormalLib SharedLibGlxWithoutPIC
-#define DoSharedLib !SharedLibGlxWithoutPIC
-#define DoExtraLib NO
-#define DoDebugLib NO
-#define DoProfileLib NO
-#endif
-
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#define MesaX86BuildDir /**/
-#define NeedToLinkMesaSrc
-#include "Imakefile.inc"
-
- DEFINES = $(ALLOC_DEFINES) GlxDefines -DIN_DRI_DRIVER $(MESA_ASM_DEFINES)
- INCLUDES = /*-I$(INCLUDESRC) -I$(EXTINCSRC)*/ -I$(MESASRCDIR)/src/mesa \
- -I$(MESASRCDIR)/include \
- -I$(GLXLIBSRC)/include \
- -I$(MESASRCDIR)/src/mesa/main \
- -I$(MESASRCDIR)/src/mesa/x86 \
- -I$(MESASRCDIR)/src/mesa/glapi
-
- SRCS = $(MESA_ASM_SRCS) gen_matypes.c
- OBJS = $(MESA_ASM_OBJS)
-
-#include <Library.tmpl>
-
-LibraryObjectRule()
-
-STD_CPP_DEFINES = StandardDefines $(PROJECT_DEFINES)
-
-SubdirLibraryRule($(OBJS))
-NormalLintTarget($(SRCS))
-
-ObjectFromAsmSource(common_x86_asm, NullParameter)
-ObjectFromAsmSource(read_rgba_span_x86, NullParameter)
-ObjectFromAsmSource(x86_cliptest, NullParameter)
-ObjectFromAsmSource(x86_xform2, NullParameter)
-ObjectFromAsmSource(x86_xform3, NullParameter)
-ObjectFromAsmSource(x86_xform4, NullParameter)
-
-#if MesaUseMMX
-ObjectFromAsmSource(mmx_blend, NullParameter)
-#endif
-
-#if MesaUse3DNow
-ObjectFromAsmSource(3dnow_normal, NullParameter)
-ObjectFromAsmSource(3dnow_xform1, NullParameter)
-ObjectFromAsmSource(3dnow_xform2, NullParameter)
-ObjectFromAsmSource(3dnow_xform3, NullParameter)
-ObjectFromAsmSource(3dnow_xform4, NullParameter)
-#endif
-
-#if MesaUseSSE
-ObjectFromAsmSource(sse_normal, NullParameter)
-ObjectFromAsmSource(sse_xform1, NullParameter)
-ObjectFromAsmSource(sse_xform2, NullParameter)
-ObjectFromAsmSource(sse_xform3, NullParameter)
-ObjectFromAsmSource(sse_xform4, NullParameter)
-#endif
-
-LinkSourceFile(gen_matypes.c, $(MESASRCDIR)/src/mesa/x86)
-
-#if CrossCompiling
-HOST_CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS) \
- $(CROSSCOMPILEDEFINES) $(CROSSCOMPILEBOOTSTRAPDEFINES)
-#else
-HOST_CFLAGS=$(CFLAGS)
-#endif
-
-MATYPES = ./gen_matypes
-
-matypes.h: gen_matypes.c
- RemoveFiles($@ HostProgramTargetName(gen_matypes))
- -HostLinkRule(HostProgramTargetName(gen_matypes),$(HOST_CFLAGS) $(LOCAL_LDFLAGS),gen_matypes.c,$(LDLIBS))
- RunProgram(MATYPES,> matypes_h)
- $(MV) matypes_h $@
- RemoveFiles(HostProgramTargetName(gen_matypes))
-
-includes:: matypes.h
-
-depend:: matypes.h
-
-clean::
- RemoveFiles(matypes.h HostProgramTargetName(gen_matypes))
-
-DependTarget()
diff --git a/nx-X11/lib/GL/mesa/x86/Imakefile.inc b/nx-X11/lib/GL/mesa/x86/Imakefile.inc
deleted file mode 100644
index b21c6f659..000000000
--- a/nx-X11/lib/GL/mesa/x86/Imakefile.inc
+++ /dev/null
@@ -1,217 +0,0 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X86/Imakefile.inc,v 1.5 2002/11/14 21:01:16 tsi Exp $
-
-#ifndef MesaX86BuildDir
-#define MesaX86BuildDir $(GLXLIBSRC)/mesa/x86/
-#endif
-
-MESAX86BUILDDIR = MesaX86BuildDir
-
-MESA_X86_SRCS = $(MESAX86BUILDDIR)common_x86.c \
- $(MESAX86BUILDDIR)common_x86_asm.S \
- $(MESAX86BUILDDIR)glapi_x86.S \
- $(MESAX86BUILDDIR)read_rgba_span_x86.S \
- $(MESAX86BUILDDIR)x86.c \
- $(MESAX86BUILDDIR)x86_cliptest.S \
- $(MESAX86BUILDDIR)x86_xform2.S \
- $(MESAX86BUILDDIR)x86_xform3.S \
- $(MESAX86BUILDDIR)x86_xform4.S \
- $(MESAX86BUILDDIR)x86sse.c
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(common_x86.c, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(common_x86_asm.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(glapi_x86.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(read_rgba_span_x86.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(read_rgba_span_x86.h, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(x86.c, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(x86_cliptest.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(x86_xform2.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(x86_xform3.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(x86_xform4.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(x86sse.c, $(MESASRCDIR)/src/mesa/x86/rtasm)
-LinkSourceFile(x86sse.h, $(MESASRCDIR)/src/mesa/x86/rtasm)
-#endif
-
-MESA_X86_OBJS = $(MESAX86BUILDDIR)common_x86.o \
- $(MESAX86BUILDDIR)common_x86_asm.o \
- $(MESAX86BUILDDIR)read_rgba_span_x86.o \
- $(MESAX86BUILDDIR)x86.o \
- $(MESAX86BUILDDIR)x86_cliptest.o \
- $(MESAX86BUILDDIR)x86_xform2.o \
- $(MESAX86BUILDDIR)x86_xform3.o \
- $(MESAX86BUILDDIR)x86_xform4.o \
- $(MESAX86BUILDDIR)x86sse.o
-
-#if defined(DoSharedLib) && DoSharedLib
-MESA_X86_UOBJS = $(MESAX86BUILDDIR)unshared/common_x86.o \
- $(MESAX86BUILDDIR)common_x86_asm.o \
- $(MESAX86BUILDDIR)read_rgba_span_x86.o \
- $(MESAX86BUILDDIR)unshared/x86.o \
- $(MESAX86BUILDDIR)x86_cliptest.o \
- $(MESAX86BUILDDIR)x86_xform2.o \
- $(MESAX86BUILDDIR)x86_xform3.o \
- $(MESAX86BUILDDIR)x86_xform4.o \
- $(MESAX86BUILDDIR)x86sse.o
-#else
-MESA_X86_UOBJS = $(MESA_X86_OBJS)
-#endif
-
-MESA_X86_DOBJS = $(MESAX86BUILDDIR)debugger/common_x86.o \
- $(MESAX86BUILDDIR)common_x86_asm.o \
- $(MESAX86BUILDDIR)read_rgba_span_x86.o \
- $(MESAX86BUILDDIR)debugger/x86.o \
- $(MESAX86BUILDDIR)x86_cliptest.o \
- $(MESAX86BUILDDIR)x86_xform2.o \
- $(MESAX86BUILDDIR)x86_xform3.o \
- $(MESAX86BUILDDIR)x86_xform4.o \
- $(MESAX86BUILDDIR)x86sse.o
-
-MESA_X86_POBJS = $(MESAX86BUILDDIR)profiled/common_x86.o \
- $(MESAX86BUILDDIR)common_x86_asm.o \
- $(MESAX86BUILDDIR)read_rgba_span_x86.o \
- $(MESAX86BUILDDIR)profiled/x86.o \
- $(MESAX86BUILDDIR)x86_cliptest.o \
- $(MESAX86BUILDDIR)x86_xform2.o \
- $(MESAX86BUILDDIR)x86_xform3.o \
- $(MESAX86BUILDDIR)x86_xform4.o \
- $(MESAX86BUILDDIR)x86sse.o
-
-MESA_X86_DEFS = -DUSE_X86_ASM
-
-
-#if MesaUseMMX
-MESA_MMX_SRCS = $(MESAX86BUILDDIR)mmx_blend.S
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(mmx_blend.S, $(MESASRCDIR)/src/mesa/x86)
-#endif
-
-MESA_MMX_OBJS = $(MESAX86BUILDDIR)mmx_blend.o
-
-MESA_MMX_UOBJS = $(MESA_MMX_OBJS)
-MESA_MMX_DOBJS = $(MESA_MMX_OBJS)
-MESA_MMX_POBJS = $(MESA_MMX_OBJS)
-
-MESA_MMX_DEFS = -DUSE_MMX_ASM
-#endif
-
-#if MesaUse3DNow
-MESA_3DNOW_SRCS = $(MESAX86BUILDDIR)3dnow.c \
- $(MESAX86BUILDDIR)3dnow_normal.S \
- $(MESAX86BUILDDIR)3dnow_xform1.S \
- $(MESAX86BUILDDIR)3dnow_xform2.S \
- $(MESAX86BUILDDIR)3dnow_xform3.S \
- $(MESAX86BUILDDIR)3dnow_xform4.S
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(3dnow.c, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(3dnow_normal.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(3dnow_xform1.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(3dnow_xform2.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(3dnow_xform3.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(3dnow_xform4.S, $(MESASRCDIR)/src/mesa/x86)
-#endif
-MESA_3DNOW_OBJS = $(MESAX86BUILDDIR)3dnow.o \
- $(MESAX86BUILDDIR)3dnow_normal.o \
- $(MESAX86BUILDDIR)3dnow_xform1.o \
- $(MESAX86BUILDDIR)3dnow_xform2.o \
- $(MESAX86BUILDDIR)3dnow_xform3.o \
- $(MESAX86BUILDDIR)3dnow_xform4.o
-
-#if defined(DoSharedLib) && DoSharedLib
-MESA_3DNOW_UOBJS = $(MESAX86BUILDDIR)unshared/3dnow.o \
- $(MESAX86BUILDDIR)3dnow_normal.o \
- $(MESAX86BUILDDIR)3dnow_xform1.o \
- $(MESAX86BUILDDIR)3dnow_xform2.o \
- $(MESAX86BUILDDIR)3dnow_xform3.o \
- $(MESAX86BUILDDIR)3dnow_xform4.o
-#else
-MESA_3DNOW_UOBJS = $(MESA_3DNOW_OBJS)
-#endif
-
-MESA_3DNOW_DOBJS = $(MESAX86BUILDDIR)debugger/3dnow.o \
- $(MESAX86BUILDDIR)3dnow_normal.o \
- $(MESAX86BUILDDIR)3dnow_xform1.o \
- $(MESAX86BUILDDIR)3dnow_xform2.o \
- $(MESAX86BUILDDIR)3dnow_xform3.o \
- $(MESAX86BUILDDIR)3dnow_xform4.o
-
-MESA_3DNOW_POBJS = $(MESAX86BUILDDIR)profiled/3dnow.o \
- $(MESAX86BUILDDIR)3dnow_normal.o \
- $(MESAX86BUILDDIR)3dnow_xform1.o \
- $(MESAX86BUILDDIR)3dnow_xform2.o \
- $(MESAX86BUILDDIR)3dnow_xform3.o \
- $(MESAX86BUILDDIR)3dnow_xform4.o
-
-MESA_3DNOW_DEFS = -DUSE_3DNOW_ASM
-#endif
-
-#if MesaUseSSE
-MESA_SSE_SRCS = $(MESAX86BUILDDIR)sse.c \
- $(MESAX86BUILDDIR)sse_normal.S \
- $(MESAX86BUILDDIR)sse_xform1.S \
- $(MESAX86BUILDDIR)sse_xform2.S \
- $(MESAX86BUILDDIR)sse_xform3.S \
- $(MESAX86BUILDDIR)sse_xform4.S
-
-#ifdef NeedToLinkMesaSrc
-LinkSourceFile(sse.c, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(sse_normal.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(sse_xform1.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(sse_xform2.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(sse_xform3.S, $(MESASRCDIR)/src/mesa/x86)
-LinkSourceFile(sse_xform4.S, $(MESASRCDIR)/src/mesa/x86)
-#endif
-
-MESA_SSE_OBJS = $(MESAX86BUILDDIR)sse.o \
- $(MESAX86BUILDDIR)sse_normal.o \
- $(MESAX86BUILDDIR)sse_xform1.o \
- $(MESAX86BUILDDIR)sse_xform2.o \
- $(MESAX86BUILDDIR)sse_xform3.o \
- $(MESAX86BUILDDIR)sse_xform4.o
-
-#if defined(DoSharedLib) && DoSharedLib
-MESA_SSE_UOBJS = $(MESAX86BUILDDIR)unshared/sse.o \
- $(MESAX86BUILDDIR)sse_normal.o \
- $(MESAX86BUILDDIR)sse_xform1.o \
- $(MESAX86BUILDDIR)sse_xform2.o \
- $(MESAX86BUILDDIR)sse_xform3.o \
- $(MESAX86BUILDDIR)sse_xform4.o
-#else
-MESA_SSE_UOBJS = $(MESA_SSE_OBJS)
-#endif
-
-MESA_SSE_DOBJS = $(MESAX86BUILDDIR)debugger/sse.o \
- $(MESAX86BUILDDIR)sse_normal.o \
- $(MESAX86BUILDDIR)sse_xform1.o \
- $(MESAX86BUILDDIR)sse_xform2.o \
- $(MESAX86BUILDDIR)sse_xform3.o \
- $(MESAX86BUILDDIR)sse_xform4.o
-
-MESA_SSE_POBJS = $(MESAX86BUILDDIR)profiled/sse.o \
- $(MESAX86BUILDDIR)sse_normal.o \
- $(MESAX86BUILDDIR)sse_xform1.o \
- $(MESAX86BUILDDIR)sse_xform2.o \
- $(MESAX86BUILDDIR)sse_xform3.o \
- $(MESAX86BUILDDIR)sse_xform4.o
-
-MESA_SSE_DEFS = -DUSE_SSE_ASM
-#endif
-
-MESA_ASM_SRCS = $(MESA_X86_SRCS) $(MESA_MMX_SRCS) $(MESA_3DNOW_SRCS) \
- $(MESA_SSE_SRCS)
-
-MESA_ASM_OBJS = $(MESA_X86_OBJS) $(MESA_MMX_OBJS) $(MESA_3DNOW_OBJS) \
- $(MESA_SSE_OBJS)
-
-MESA_ASM_UOBJS = $(MESA_X86_UOBJS) $(MESA_MMX_UOBJS) $(MESA_3DNOW_UOBJS) \
- $(MESA_SSE_UOBJS)
-
-MESA_ASM_DOBJS = $(MESA_X86_DOBJS) $(MESA_MMX_DOBJS) $(MESA_3DNOW_DOBJS) \
- $(MESA_SSE_DOBJS)
-
-MESA_ASM_POBJS = $(MESA_X86_POBJS) $(MESA_MMX_POBJS) $(MESA_3DNOW_POBJS) \
- $(MESA_SSE_POBJS)
-
-MESA_ASM_DEFINES = $(MESA_X86_DEFS) $(MESA_MMX_DEFS) $(MESA_3DNOW_DEFS) $(MESA_SSE_DEFS)
-
diff --git a/nx-X11/lib/Imakefile b/nx-X11/lib/Imakefile
index 76dfb8359..20c68f97e 100644
--- a/nx-X11/lib/Imakefile
+++ b/nx-X11/lib/Imakefile
@@ -15,34 +15,10 @@ NULL =
XKBLIBDIR = xkbfile
#endif
-#if BuildXKBuilib
-XKBUILIBDIR = xkbui
-#endif
-
-#if BuildXF86MiscLibrary
-XF86MISCLIBDIR = Xxf86misc
-#endif
-
-#if BuildXF86VidModeLibrary
-XF86VMLIBDIR = Xxf86vm
-#endif
-
-#if BuildXF86DGALibrary
-XF86DGALIBDIR = Xxf86dga
-#endif
-
-#if BuildXF86RushLibrary
-XF86RUSHLIBDIR = Xxf86rush
-#endif
-
#if BuildXineramaLibrary
XINERAMADIR=Xinerama
#endif
-#if BuildGLXLibrary
-GLXLIBDIR = GL
-#endif
-
#if BuildRenderLibrary
RENDERLIBDIR = Xrender
#endif
@@ -55,13 +31,6 @@ XFIXESLIBDIR = Xfixes
COMPOSITELIBDIR = Xcomposite
#endif
-XF86EXTLIBS = \
- $(XF86MISCLIBDIR) \
- $(XF86VMLIBDIR) \
- $(XF86DGALIBDIR) \
- $(XF86RUSHLIBDIR) \
- $(NULL)
-
#if BuildXauLib
XAULIBDIR = Xau
#endif
@@ -85,14 +54,8 @@ LINTSUBDIRS = \
$(X11LIBDIR) \
$(OLDXLIBDIR) \
$(XEXTLIBDIR) \
- $(XF86MISCLIBDIR) \
- $(XF86VMLIBDIR) \
- $(XF86DGALIBDIR) \
- $(XF86RUSHLIBDIR) \
$(XTSTLIBDIR) \
$(XKBLIBDIR) \
- $(XKBUILIBDIR) \
- $(GLXLIBDIR) \
$(XINERAMADIR) \
$(RENDERLIBDIR) \
$(XFIXESLIBDIR) \
diff --git a/nx-X11/lib/X11/Imakefile b/nx-X11/lib/X11/Imakefile
index e00351169..212216f46 100644
--- a/nx-X11/lib/X11/Imakefile
+++ b/nx-X11/lib/X11/Imakefile
@@ -27,7 +27,7 @@ XCOMM $XFree86: xc/lib/X11/Imakefile,v 3.52 2003/05/27 16:53:15 tsi Exp $
HEADERS = Xlib.h Xresource.h Xutil.h cursorfont.h Xlibint.h \
Xcms.h Xlocale.h XKBlib.h XlibConf.h Xregion.h ImUtil.h
-#if BuildServersOnly && !BuildGLXLibrary && !BuildClients && !NXAgentServer
+#if BuildServersOnly && !BuildClients && !NXAgentServer
all::
BuildIncludes($(HEADERS),IncSubdir,..)
diff --git a/nx-X11/lib/Xcomposite/AUTHORS b/nx-X11/lib/Xcomposite/AUTHORS
deleted file mode 100644
index 8e18f9b42..000000000
--- a/nx-X11/lib/Xcomposite/AUTHORS
+++ /dev/null
@@ -1 +0,0 @@
-Keith Packard, HP
diff --git a/nx-X11/lib/Xcomposite/COPYING b/nx-X11/lib/Xcomposite/COPYING
deleted file mode 100644
index e85d981e7..000000000
--- a/nx-X11/lib/Xcomposite/COPYING
+++ /dev/null
@@ -1,22 +0,0 @@
-$Id: COPYING,v 1.1 2004/07/31 05:50:39 anholt Exp $
-
-Copyright © 2001,2003 Keith Packard
-
-Permission to use, copy, modify, distribute, and sell this software and its
-documentation for any purpose is hereby granted without fee, provided that
-the above copyright notice appear in all copies and that both that
-copyright notice and this permission notice appear in supporting
-documentation, and that the name of Keith Packard not be used in
-advertising or publicity pertaining to distribution of the software without
-specific, written prior permission. Keith Packard makes no
-representations about the suitability of this software for any purpose. It
-is provided "as is" without express or implied warranty.
-
-KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
-INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
-CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
-TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-
diff --git a/nx-X11/lib/Xcomposite/ChangeLog b/nx-X11/lib/Xcomposite/ChangeLog
deleted file mode 100644
index f70ce6605..000000000
--- a/nx-X11/lib/Xcomposite/ChangeLog
+++ /dev/null
@@ -1,19 +0,0 @@
-2004-07-08 Keith Packard <keithp@keithp.com>
-
- * Makefile.am:
- * Xcomposite.c: (XCompositeVersion), (XCompositeNameWindowPixmap):
- * Xcomposite.h:
- * configure.ac:
- Add library API for Composite 0.2 changes
- Add XCompositeVersion to get the run-time library version number
- Fix package version number in configure.ac and Xcomposite.h
-
-2004-02-03 Jim Gettys <jg@handhelds.org>
-
- * AUTHORS: Add authors to AUTHORS file
-
-2004-01-15 Daniel Stone <daniel@fooishbar.org>
- * Tag release 1.0 for first freedesktop.org clientside lib release.
-
-2004-01-15 Harold L Hunt II <huntharo@msu.edu>
- * Makefile.am: Pass -no-undefined to libtool via LDFLAGS.
diff --git a/nx-X11/lib/Xcomposite/INSTALL b/nx-X11/lib/Xcomposite/INSTALL
deleted file mode 100644
index 25a014e2e..000000000
--- a/nx-X11/lib/Xcomposite/INSTALL
+++ /dev/null
@@ -1,8 +0,0 @@
-Xcomposite is built with the traditional configure script:
-
- $ ./configure --prefix=/usr/X11R6
-
-This should generate valid Makefiles, then:
-
- $ make
- $ make install
diff --git a/nx-X11/lib/Xcomposite/Imakefile b/nx-X11/lib/Xcomposite/Imakefile
index 0f3c44da4..a8e4077fa 100644
--- a/nx-X11/lib/Xcomposite/Imakefile
+++ b/nx-X11/lib/Xcomposite/Imakefile
@@ -54,15 +54,3 @@ SUBSTVARS=prefix="$(PROJECTROOT)" \
#include <Library.tmpl>
DependTarget()
-
-all:: xcomposite.pc
-
-xcomposite.pc: xcomposite.pc.in
- RemoveFile($@)
- sh ../Xrender/config-subst $(SUBSTVARS) < xcomposite.pc.in > $@
-
-InstallNonExecFile(xcomposite.pc,$(USRLIBDIR)/pkgconfig)
-
-clean::
- RemoveFile(xcomposite.pc)
-
diff --git a/nx-X11/lib/Xcomposite/NEWS b/nx-X11/lib/Xcomposite/NEWS
deleted file mode 100644
index e69de29bb..000000000
--- a/nx-X11/lib/Xcomposite/NEWS
+++ /dev/null
diff --git a/nx-X11/lib/Xcomposite/README b/nx-X11/lib/Xcomposite/README
deleted file mode 100644
index 9968c6bdf..000000000
--- a/nx-X11/lib/Xcomposite/README
+++ /dev/null
@@ -1,10 +0,0 @@
- RandR
- X RandR Extension
- Version 1.0
- 2002-10-4
-
-This package contains header files and documentation for the X RandR
-extension. Library and server implementations are separate.
-
-Keith Packard
-keithp@keithp.com
diff --git a/nx-X11/lib/Xcomposite/autogen.sh b/nx-X11/lib/Xcomposite/autogen.sh
deleted file mode 100755
index b1376df5a..000000000
--- a/nx-X11/lib/Xcomposite/autogen.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-autoreconf -v --install || exit 1
-./configure --enable-maintainer-mode "$@"
diff --git a/nx-X11/lib/Xcomposite/configure.ac b/nx-X11/lib/Xcomposite/configure.ac
deleted file mode 100644
index 8e8848194..000000000
--- a/nx-X11/lib/Xcomposite/configure.ac
+++ /dev/null
@@ -1,102 +0,0 @@
-dnl
-dnl $Id: configure.ac,v 1.1 2004/07/31 05:50:39 anholt Exp $
-dnl
-dnl Copyright © 2003 Keith Packard, Noah Levitt
-dnl
-dnl Permission to use, copy, modify, distribute, and sell this software and its
-dnl documentation for any purpose is hereby granted without fee, provided that
-dnl the above copyright notice appear in all copies and that both that
-dnl copyright notice and this permission notice appear in supporting
-dnl documentation, and that the name of Keith Packard not be used in
-dnl advertising or publicity pertaining to distribution of the software without
-dnl specific, written prior permission. Keith Packard makes no
-dnl representations about the suitability of this software for any purpose. It
-dnl is provided "as is" without express or implied warranty.
-dnl
-dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
-dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
-dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
-dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-dnl PERFORMANCE OF THIS SOFTWARE.
-dnl
-dnl Process this file with autoconf to create configure.
-
-AC_PREREQ([2.57])
-
-dnl
-dnl Version should match the current XComposite version. XCompositeQueryVersion
-dnl returns the version from xcompositewire.h, NOT the version we set here. But we
-dnl try to keep these the same. Note that the library has an extra
-dnl digit in the version number to track changes which don't affect the
-dnl protocol, so Xcomposite version l.n.m corresponds to protocol version l.n
-dnl that 'revision' number appears in Xcomposite.h and has to be manually
-dnl synchronized.
-dnl
-AC_INIT(libXcomposite, 0.2.0, [keithp@keithp.com], libXcomposite)
-AM_INIT_AUTOMAKE([dist-bzip2])
-AM_MAINTAINER_MODE
-
-AM_CONFIG_HEADER(config.h)
-AC_CONFIG_AUX_DIR(.)
-
-# Check for progs
-AC_PROG_CC
-AC_PROG_LIBTOOL
-
-# Check for X
-PKG_CHECK_MODULES(X, x11,
- [x_found_with_pkgconfig=yes],
- [x_found_with_pkgconfig=no])
-AC_SUBST(X_CFLAGS)
-AC_SUBST(X_LIBS)
-
-if test "$x_found_with_pkgconfig" = "no"
-then
- AC_PATH_XTRA
- X_LIBS="$X_LIBS -lX11"
-
- if test "x$no_x" = "xyes"
- then
- AC_MSG_ERROR([X is required, but it was either disabled or not found.])
- fi
-
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $X_CFLAGS"
- LIBS="$LIBS $X_LIBS"
-
- AC_MSG_CHECKING([for XTHREADS in Xlib])
- AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([[#include <X11/Xlib.h>]],
- [[return XInitThreads() == 0 ? 0 : 1;]])],
- [xthreads=no],
- [xthreads=yes],
- [xthreads=yes])
-
- AC_MSG_RESULT($xthreads)
-
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-
- if test "x$xthreads" = "xyes"
- then
- X_CFLAGS="$X_CFLAGS -DXTHREADS"
- fi
-fi
-
-# Check compositeext configuration, strip extra digits from package version to
-# find the required protocol version
-
-if test "$VERSION" = "" ; then
- VERSION=$PACKAGE_VERSION;
-fi
-COMPOSITEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
-PKG_CHECK_MODULES(XCOMPOSITE, [compositeext >= $COMPOSITEEXT_VERSION] xfixes)
-AC_SUBST(XCOMPOSITE_CFLAGS)
-AC_SUBST(XCOMPOSITE_LIBS)
-
-AC_OUTPUT([Makefile
- xcomposite.pc])
-
diff --git a/nx-X11/lib/Xcomposite/xcomposite.pc.in b/nx-X11/lib/Xcomposite/xcomposite.pc.in
deleted file mode 100644
index c319694f1..000000000
--- a/nx-X11/lib/Xcomposite/xcomposite.pc.in
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: Xcomposite
-Description: X Composite Library
-Version: @VERSION@
-Cflags: -I${includedir} @XCOMPOSITE_CFLAGS@ @X_CFLAGS@
-Libs: -L${libdir} -lNX_Xcomposite @XCOMPOSITE_LIBS@ @X_LIBS@
diff --git a/nx-X11/lib/Xfixes/AUTHORS b/nx-X11/lib/Xfixes/AUTHORS
deleted file mode 100644
index ab0e01b06..000000000
--- a/nx-X11/lib/Xfixes/AUTHORS
+++ /dev/null
@@ -1 +0,0 @@
-Keith Packard, HP and XFree86.
diff --git a/nx-X11/lib/Xfixes/COPYING b/nx-X11/lib/Xfixes/COPYING
deleted file mode 100644
index e85d981e7..000000000
--- a/nx-X11/lib/Xfixes/COPYING
+++ /dev/null
@@ -1,22 +0,0 @@
-$Id: COPYING,v 1.1 2004/07/31 05:50:39 anholt Exp $
-
-Copyright © 2001,2003 Keith Packard
-
-Permission to use, copy, modify, distribute, and sell this software and its
-documentation for any purpose is hereby granted without fee, provided that
-the above copyright notice appear in all copies and that both that
-copyright notice and this permission notice appear in supporting
-documentation, and that the name of Keith Packard not be used in
-advertising or publicity pertaining to distribution of the software without
-specific, written prior permission. Keith Packard makes no
-representations about the suitability of this software for any purpose. It
-is provided "as is" without express or implied warranty.
-
-KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
-INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
-CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
-TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-
diff --git a/nx-X11/lib/Xfixes/ChangeLog b/nx-X11/lib/Xfixes/ChangeLog
deleted file mode 100644
index cf2da5a94..000000000
--- a/nx-X11/lib/Xfixes/ChangeLog
+++ /dev/null
@@ -1,102 +0,0 @@
-Tue May 17 13:00:21 2005 Søren Sandmann <sandmann@redhat.com>
-
- * *.c: Conditionally include <config.h>
-
-2004-07-26 Keith Packard <keithp@keithp.com>
-
- * Makefile.am:
- * Region.c: (XFixesFetchRegion), (XFixesFetchRegionAndBounds),
- (XFixesExpandRegion):
- * Xfixes.c: (XFixesVersion):
- * Xfixes.h:
- * configure.ac:
- Add XFixesExpandRegion and XFixesFetchRegionAndBounds
-
-2004-04-13 Daniel Stone <daniel@freedesktop.org>
-
- * Bump version to 2.0.2 for xlibs 1.0.1; no other changes.
-
-2004-04-01 Keith Packard <keithp@keithp.com>
-
- reviewed by: Bill Haneman
-
- * Region.c: (XFixesFetchRegion):
- Forgot to store the region operand in the protocol request.
- Made this function completely broken.
-
-2004-03-08 Keith Packard <keithp@keithp.com>
-
- * Cursor.c: (XFixesGetCursorImage), (XFixesSetCursorName),
- (XFixesChangeCursorByName):
- * Xfixes.h:
- Use 'const' in API to make C++ happy
-
-2004-02-03 Jim Gettys <jg@freedesktop.org.org>
-
- * AUTHORS: Get a author file with contents.
-
-2004-01-15 Daniel Stone <daniel@fooishbar.org>
- * Tag release 2.0.1 for first freedesktop.org clientside lib release.
-
-2004-01-15 Harold L Hunt II <huntharo@msu.edu>
- * Makefile.am: Pass -no-undefined to libtool via LDFLAGS.
-
-2003-11-21 Keith Packard <keithp@keithp.com>
-
- * Region.c: (XFixesCopyRegion), (XFixesUnionRegion),
- (XFixesIntersectRegion), (XFixesSubtractRegion),
- (XFixesInvertRegion), (XFixesTranslateRegion):
- * Xfixes.h:
- Eliminate offset arguments in combining operators,
- create separate XFixesCopyRegion and XFixesTranslateRegion functions.
-
-2003-11-02 Keith Packard <keithp@keithp.com>
-
- * Cursor.c: (XFixesSelectCursorInput), (XFixesGetCursorImage),
- (XFixesSetCursorName), (XFixesGetCursorName), (XFixesChangeCursor),
- (XFixesChangeCursorByName):
- * Makefile.am:
- * Region.c: (XFixesCreateRegion), (XFixesCreateRegionFromBitmap),
- (XFixesCreateRegionFromWindow), (XFixesCreateRegionFromGC),
- (XFixesCreateRegionFromPicture), (XFixesDestroyRegion),
- (XFixesSetRegion), (XFixesUnionRegion), (XFixesIntersectRegion),
- (XFixesSubtractRegion), (XFixesInvertRegion),
- (XFixesRegionExtents), (XFixesFetchRegion),
- (XFixesSetGCClipRegion), (XFixesSetWindowShapeRegion),
- (XFixesSetPictureClipRegion):
- * SaveSet.c: (XFixesChangeSaveSet):
- * Selection.c: (XFixesSelectSelectionInput):
- * Xfixes.c: (XFixesExtAddDisplay), (XFixesExtRemoveDisplay),
- (XFixesExtFindDisplay), (XFixesFindDisplay), (XFixesCloseDisplay),
- (XFixesWireToEvent), (XFixesEventToWire), (XFixesQueryExtension),
- (XFixesQueryVersion):
- * Xfixes.h:
- * Xfixesint.h:
- * configure.ac:
- * xfixes.pc.in:
- Merge in xfixes_2_branch
-
-2003-10-19 Keith Packard <keithp@keithp.com>
-
- * Cursor.c
- * Region.c
- * Makefile.am
- * SaveSet.c
- * Selection.c
- * Xfixes.c
- * Xfixes.h
- * Xfixesint.h
- * configure.ac
- * xfixes.pc.in
- Eliminate dependency on libXext by in-lining trivial code.
- Switch to Xfixes 2.0, adding region and cursor name functions
-
-2003-09-16 Anders Carlsson <andersca@gnome.org>
-
- * configure.ac:
- * randr-uninstalled.pc.in:
- Add uninstalled pc file.
-
-2003-04-21 Keith Packard <keithp@keithp.com>
-
- + Added ChangeLog
diff --git a/nx-X11/lib/Xfixes/INSTALL b/nx-X11/lib/Xfixes/INSTALL
deleted file mode 100644
index 557b5e871..000000000
--- a/nx-X11/lib/Xfixes/INSTALL
+++ /dev/null
@@ -1,8 +0,0 @@
-Xfixes is built with the traditional configure script:
-
- $ ./configure --prefix=/usr/X11R6
-
-This should generate valid Makefiles, then:
-
- $ make
- $ make install
diff --git a/nx-X11/lib/Xfixes/Imakefile b/nx-X11/lib/Xfixes/Imakefile
index 3dc1bd983..ca1fe046b 100644
--- a/nx-X11/lib/Xfixes/Imakefile
+++ b/nx-X11/lib/Xfixes/Imakefile
@@ -61,15 +61,3 @@ MANSUFFIX=$(LIBMANSUFFIX)
InstallManPage(Xfixes,$(LIBMANDIR))
DependTarget()
-
-all:: xfixes.pc
-
-xfixes.pc: xfixes.pc.in
- RemoveFile($@)
- sh ../Xrender/config-subst $(SUBSTVARS) < xfixes.pc.in > $@
-
-InstallNonExecFile(xfixes.pc,$(USRLIBDIR)/pkgconfig)
-
-clean::
- RemoveFile(xfixes.pc)
-
diff --git a/nx-X11/lib/Xfixes/NEWS b/nx-X11/lib/Xfixes/NEWS
deleted file mode 100644
index e69de29bb..000000000
--- a/nx-X11/lib/Xfixes/NEWS
+++ /dev/null
diff --git a/nx-X11/lib/Xfixes/README b/nx-X11/lib/Xfixes/README
deleted file mode 100644
index 67cf1d8be..000000000
--- a/nx-X11/lib/Xfixes/README
+++ /dev/null
@@ -1,10 +0,0 @@
- Xfixes
- XFIXES Extension
- Version 2.0.1
- 2002-10-4
-
-This package contains header files and documentation for the XFIXES
-extension. Library and server implementations are separate.
-
-Keith Packard
-keithp@keithp.com
diff --git a/nx-X11/lib/Xfixes/autogen.sh b/nx-X11/lib/Xfixes/autogen.sh
deleted file mode 100755
index b1376df5a..000000000
--- a/nx-X11/lib/Xfixes/autogen.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-autoreconf -v --install || exit 1
-./configure --enable-maintainer-mode "$@"
diff --git a/nx-X11/lib/Xfixes/configure.ac b/nx-X11/lib/Xfixes/configure.ac
deleted file mode 100644
index 37b123516..000000000
--- a/nx-X11/lib/Xfixes/configure.ac
+++ /dev/null
@@ -1,99 +0,0 @@
-dnl
-dnl $Id: configure.ac,v 1.1 2004/07/31 05:50:39 anholt Exp $
-dnl
-dnl Copyright © 2003 Keith Packard, Noah Levitt
-dnl
-dnl Permission to use, copy, modify, distribute, and sell this software and its
-dnl documentation for any purpose is hereby granted without fee, provided that
-dnl the above copyright notice appear in all copies and that both that
-dnl copyright notice and this permission notice appear in supporting
-dnl documentation, and that the name of Keith Packard not be used in
-dnl advertising or publicity pertaining to distribution of the software without
-dnl specific, written prior permission. Keith Packard makes no
-dnl representations about the suitability of this software for any purpose. It
-dnl is provided "as is" without express or implied warranty.
-dnl
-dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
-dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
-dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
-dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-dnl PERFORMANCE OF THIS SOFTWARE.
-dnl
-dnl Process this file with autoconf to create configure.
-
-AC_PREREQ([2.57])
-
-dnl
-dnl Version should match the current XFixes version. XFixesQueryVersion
-dnl returns the version from xfixeswire.h, NOT the version we set here. But we
-dnl try to keep these the same. Note that the library has an extra
-dnl digit in the version number to track changes which don't affect the
-dnl protocol, so Xfixes version l.n.m corresponds to protocol version l.n,
-dnl that 'revision' number appears in Xfixes.h and has to be manually
-dnl synchronized.
-dnl
-AC_INIT(libXfixes, 3.0.0, [keithp@keithp.com], libXfixes)
-AM_INIT_AUTOMAKE([dist-bzip2])
-AM_MAINTAINER_MODE
-
-AM_CONFIG_HEADER(config.h)
-AC_CONFIG_AUX_DIR(.)
-
-# Check for progs
-AC_PROG_CC
-AC_PROG_LIBTOOL
-
-# Check for X
-PKG_CHECK_MODULES(X, x11,
- [x_found_with_pkgconfig=yes],
- [x_found_with_pkgconfig=no])
-AC_SUBST(X_CFLAGS)
-AC_SUBST(X_LIBS)
-
-if test "$x_found_with_pkgconfig" = "no"
-then
- AC_PATH_XTRA
- X_LIBS="$X_LIBS -lX11"
-
- if test "x$no_x" = "xyes"
- then
- AC_MSG_ERROR([X is required, but it was either disabled or not found.])
- fi
-
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $X_CFLAGS"
- LIBS="$LIBS $X_LIBS"
-
- AC_MSG_CHECKING([for XTHREADS in Xlib])
- AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([[#include <X11/Xlib.h>]],
- [[return XInitThreads() == 0 ? 0 : 1;]])],
- [xthreads=no],
- [xthreads=yes],
- [xthreads=yes])
-
- AC_MSG_RESULT($xthreads)
-
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-
- if test "x$xthreads" = "xyes"
- then
- X_CFLAGS="$X_CFLAGS -DXTHREADS"
- fi
-fi
-
-# Check fixesext configuration, strip extra digits from package version to
-# find the required protocol version
-
-FIXESEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
-PKG_CHECK_MODULES(FIXESEXT, [fixesext >= $FIXESEXT_VERSION])
-AC_SUBST(FIXESEXT_CFLAGS)
-AC_SUBST(FIXESEXT_LIBS)
-
-AC_OUTPUT([Makefile
- xfixes.pc])
-
diff --git a/nx-X11/lib/Xfixes/xfixes.pc.in b/nx-X11/lib/Xfixes/xfixes.pc.in
deleted file mode 100644
index 54e9ac709..000000000
--- a/nx-X11/lib/Xfixes/xfixes.pc.in
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: Xfixes
-Description: X Fixes Library
-Version: @VERSION@
-Cflags: -I${includedir} @X_CFLAGS@
-Libs: -L${libdir} -lNX_Xfixes @X_LIBS@
diff --git a/nx-X11/lib/Xrender/AUTHORS b/nx-X11/lib/Xrender/AUTHORS
deleted file mode 100644
index 5f6c46a80..000000000
--- a/nx-X11/lib/Xrender/AUTHORS
+++ /dev/null
@@ -1,3 +0,0 @@
-Keith Packard, of SuSE, XFree86 and Hewlett-Packard
-
-Noah Levitt, autotooling.
diff --git a/nx-X11/lib/Xrender/COPYING b/nx-X11/lib/Xrender/COPYING
deleted file mode 100644
index a232c2bea..000000000
--- a/nx-X11/lib/Xrender/COPYING
+++ /dev/null
@@ -1,22 +0,0 @@
-$Id: COPYING,v 1.2 2004/04/23 18:43:50 eich Exp $
-
-Copyright © 2001,2003 Keith Packard
-
-Permission to use, copy, modify, distribute, and sell this software and its
-documentation for any purpose is hereby granted without fee, provided that
-the above copyright notice appear in all copies and that both that
-copyright notice and this permission notice appear in supporting
-documentation, and that the name of Keith Packard not be used in
-advertising or publicity pertaining to distribution of the software without
-specific, written prior permission. Keith Packard makes no
-representations about the suitability of this software for any purpose. It
-is provided "as is" without express or implied warranty.
-
-KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
-INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
-CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
-TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-
diff --git a/nx-X11/lib/Xrender/ChangeLog b/nx-X11/lib/Xrender/ChangeLog
deleted file mode 100644
index 1fae6e0d2..000000000
--- a/nx-X11/lib/Xrender/ChangeLog
+++ /dev/null
@@ -1,456 +0,0 @@
-Thu May 19 15:22:19 2005 Søren Sandmann <sandmann@redhat.com>
-
- * *.c: Conditionallyu include config.h
-
-2004-02-03 Jim Gettys <jg@freedesktop.org>
-
- * AUTHORS: Get a author's list going.
-
-2004-01-15 Daniel Stone <daniel@fooishbar.org>
- * Tag release 0.8.4 for first freedesktop.org clientside lib release.
-
-2004-01-15 Harold L Hunt II <huntharo@msu.edu>
- * Makefile.am: Pass -no-undefined to libtool via LDFLAGS.
-
-2003-12-12 Keith Packard <keithp@keithp.com>
-
- * configure.ac:
- * xrender.pc.in:
- Use Requires: in xrender.pc when x11.pc exists
-
-2003-06-08 10:56 keithp
-
- * Filter.c, Makefile.am, Xrender.c, Xrenderint.h, configure.ac:
- Bail on bogus Xsun servers, compile with -DXTHREADS if necessary,
- get rid of unecessary cast to XRenderInfo *
-
-2003-05-06 09:05 branden
-
- * ChangeLog: Huh. Did Keith tag xrender-0_8_2 *before* running
- cvs2cl? Running it again.
-
-2003-05-05 20:56 keithp
-
- * ChangeLog: Update ChangeLog with spiffy cvs2cl script (thanks
- Branden)
-
-2003-05-05 20:49 keithp
-
- * configure.ac: Update version to 0.8.2, add some version-related
- comments
-
-2003-05-05 20:18 branden
-
- * debian/: changelog, compat, control, copyright,
- libxrender-dev.install, libxrender-dev.postrm,
- libxrender-dev.preinst, libxrender1-dbg.install,
- libxrender1-dbg.postrm, libxrender1-dbg.preinst,
- libxrender1.install, libxrender1.postrm, libxrender1.preinst,
- rules: Check in Debian packaging infrastructure per Keith's
- request. This is the stuff that corresponds to Debian's xrender
- 0.8.1-1 package.
-
-2003-05-05 19:06 keithp
-
- * Xrenderint.h, configure.ac: Remove bogus Xext.h include. Fix
- Render version comparison
-
-2003-05-03 13:00 keithp
-
- * Makefile.am, configure.ac: Bump to version 0.8.1, library version
- 1.2.2 after extutil was removed
-
-2003-04-26 08:52 nlevitt
-
- * Xrenderint.h: Get rid of reference to XMissingExtension. It's in
- libXext, which we don't link, and we don't want to print an error
- message anyway.
-
-2003-04-23 20:29 nlevitt
-
- * ChangeLog, Composite.c, Cursor.c, FillRect.c, FillRects.c,
- Filter.c, Glyph.c, Makefile.am, Picture.c, Trap.c, Tri.c,
- Xrender.c, Xrenderint.h, configure.ac, extutil.h, xrender.pc.in:
- Get rid of libXext dependency.
-
-2003-04-22 09:59 nlevitt
-
- * .cvsignore: Testing syncmail.
-
-2003-04-21 23:41 nlevitt
-
- * xrender.pc.in: Xrender.h #includes render.h, so it needs the
- Render CFLAGS.
-
-2003-04-21 23:12 nlevitt
-
- * xrender.pc.in: s/@PACKAGE_VERSION@/@VERSION@/ (Jeff Waugh, bug
- #71)
-
-2003-04-21 21:46 nlevitt
-
- * Makefile.am, Xrenderint.h, configure.ac: Use local extutil.h if
- not installed on the system.
-
-2003-04-21 10:36 keithp
-
- * COPYING, ChangeLog, INSTALL, configure.ac: Fix render header
- version check to use VERSION, eliminate duplicate version numbers
- from configure.ac
-
-2003-04-21 10:22 keithp
-
- * Color.c, Composite.c, Cursor.c, FillRects.c, Filter.c, Glyph.c,
- Picture.c, Poly.c, Trap.c, Tri.c, Xrender-def.cpp, Xrender.h,
- Xrenderint.h, extutil.h: Switch CVS id tags so regular CVS can cope
-
-2003-04-21 09:47 keithp
-
- * Makefile.am: Xrender .so is 1.2. switch order of dependent
- libraries
-
-2003-04-20 23:49 nlevitt
-
- * FillRect.c: Testing syncmail again.
-
-2003-04-20 23:44 nlevitt
-
- * Xrender.c: Testing syncmail.
-
-2003-04-19 16:02 nlevitt
-
- * xrender.pc.in: Add X libs to pkg-config --libs.
-
-2003-04-19 11:32 nlevitt
-
- * Makefile.am: Link with -lX11 -lXext.
-
-2003-04-19 11:21 nlevitt
-
- * Makefile.am, Xrenderint.h, configure.ac: Use installed
- <X11/extenstions/extutil.h>. (Thanks, jdub). Make sure X is found
- at ./configure time. Bump .so version to 1.1.1.
-
-2003-04-17 17:43 nlevitt
-
- * configure.ac: Xrender version is the same as Render.
-
-2003-04-17 16:41 nlevitt
-
- * .cvsignore: Quiet, please.
-
-2003-04-17 15:53 nlevitt
-
- * xrender.pc.in: Fix typo
-
-2003-04-17 15:49 nlevitt
-
- * Imakefile, Makefile.am, Xrenderint.h, autogen.sh, configure.ac,
- extutil.h, region.h, xrender.pc.in: Initial automake support.
-
-2003-03-24 20:18 dawes
-
- * Xrender-def.cpp: 26. Updates for building on OS/2 (#5650, Frank
- Giessler).
-
-2002-11-24 13:46 tsi
-
- * Cursor.c: Warning fix
-
-2002-11-22 18:34 keithp
-
- * Cursor.c, Xrender.h: Add animate cursor support, client side
-
-2002-11-21 18:10 keithp
-
- * Xrender.c: Skip unexpected data in QueryFormats. Deal with
- broken X servers a bit better
-
-2002-11-14 13:01 tsi
-
- * Imakefile: First pass at imake warnings. + some ATI driver
- formatting changes.
-
- Please ensure these changes are reflected in DRI's CVS.
-
-2002-11-06 14:47 keithp
-
- * Xrender.c, Xrender.h: XRenderQueryPictIndexValues support (from
- Olivier Chapuis). Bump Render version to 0.7
-
-2002-11-05 15:22 keithp
-
- * Glyph.c, Trap.c, Tri.c, Xrenderint.h: Render uses int for 32
- bits, Xlib uses long. This matters on alpha
-
-2002-10-17 18:13 keithp
-
- * Glyph.c: Miscomputing request length for String16 and String32
-
-2002-10-01 07:31 alanh
-
- * Xrender-def.cpp: 358. Enable version controlled .dll's on
- Cygwin/XFree86 (Alexander Gottwald).
- 357. Some build fixes for Cygwin/XFree86 (Alan Hourihane).
-
-2002-09-29 16:39 keithp
-
- * Xrender.c, Xrender.h: Update RandR to 1.0 (library version 2.0)
-
-2002-09-27 09:40 keithp
-
- * Trap.c: Obey max request length even with BIG-REQUESTS
-
-2002-09-25 19:56 keithp
-
- * Filter.c, Imakefile, Picture.c, Xrender.c, Xrender.h,
- Xrenderint.h: Add image transformation and sub-pixel ordering to
- Render
-
-2002-08-31 11:15 keithp
-
- * Glyph.c: Remember not to write code at 1am.
- CompositeText{8,16,32} werent switching glyphsets at the right
- time.
-
-2002-08-30 23:52 keithp
-
- * Glyph.c: CompositeGlyphs functions were re-using overwritten data
- and trashing the output buffer
-
-2002-08-22 22:48 keithp
-
- * Cursor.c, Imakefile, Xrender.h: Add CreateCursor request to
- Render
-
-2002-07-24 08:26 tsi
-
- * Imakefile: Make libXrender buildable in non-XFree86 environments.
-
-2002-06-07 11:04 keithp
-
- * Imakefile: Get Xrender to build out of the XFree86 environment
-
-2002-06-04 16:22 keithp
-
- * Poly.c: Free edges structure after drawing Render polygons
-
-2002-05-30 23:38 keithp
-
- * Imakefile: Fix up support for building Xft1, Xrender and
- fontconfig out of the tree
-
-2002-05-21 13:39 keithp
-
- * Poly.c: Xrender library didnt render some concave polygons right
-
-2002-05-17 16:54 keithp
-
- * Xrender.c: standard 1-bit render format had incorrect depth in
- spec
-
-2002-05-17 15:34 keithp
-
- * Color.c, Imakefile, Xrender.h: Add Render color parse routine for
- rgba colorspace
-
-2002-05-16 23:54 keithp
-
- * Poly.c: Another tesselation fix for Rendered polygons
-
-2002-05-16 08:28 tsi
-
- * Poly.c: Warning fix
-
-2002-05-14 23:43 keithp
-
- * Tri.c: Fix up triangle request encodings
-
-2002-05-14 23:42 keithp
-
- * Xrender.c, Xrender.h: Add XRenderFindStandardFormat
-
-2002-05-14 23:39 keithp
-
- * Poly.c: Redo tesselation to match foley and vanDam
-
-2002-05-13 00:21 keithp
-
- * Poly.c: Make tesselation function do something reasonable
-
-2002-05-12 22:21 keithp
-
- * Imakefile, Xrender.h, Poly.c, Trap.c, Tri.c: Update render
- extension to include trapezoids
-
-2002-02-11 23:17 keithp
-
- * Glyph.c: XRenderFreeGlyphs wasnt sending the glyphset
-
-2002-01-02 11:57 tsi
-
- * Glyph.c, Xrender.h: Resync with today's trunk.
-
-2001-12-26 17:16 keithp
-
- * Glyph.c, Xrender.h: Add Render equivalents of XPolyText*
-
-2001-12-18 09:08 tsi
-
- * FillRect.c, FillRects.c, Glyph.c, Picture.c, Xrender.c,
- Xrender.h: Another resync with HEAD branch.
-
-2001-12-16 10:27 keithp
-
- * FillRect.c, FillRects.c, Glyph.c, Picture.c, Xrender.c,
- Xrender.h: lib/Xrender: add a bunch of _Xconst to make c++ happier
-
-2001-10-10 20:26 keithp
-
- * Xrender.c: Check malloc return for Xrender query reply temp data
-
-2001-09-05 13:13 mvojkovi
-
- * Xrender.c:
- Missing SyncHandle() in XRenderQueryFormats.
-
-2001-07-31 17:44 tsi
-
- * Xrender.h: 168. Fix 16bpp colour maps on Mach64's (Marc La
- France).
- 167. Fix Mach64 DPMS bug (Marc La France).
- 166. Fix bug that prevented hardware cursors on Mach64 CT's (Marc
- La France).
- 165. Document what a ChipAdjustFrame() function should to to
- prevent moving
- of hardware cursors during mode switches (Marc La France).
- 164. -Wimplicit warning cleanup [`make World` >required<] (Marc La
- France).
- 163. Ensure installed headers can find the headers they, in turn,
- #include
- (Marc La France).
- 162. Make imake pass its -W* flags to cpp (Marc La France).
- 161. More accomodations for newer GCC's (Mike A. Harris).
-
-2001-07-06 13:46 keithp
-
- * Xrender.c: Fix a couple of locking bugs in Xrender library
-
-2001-05-16 03:33 keithp
-
- * Xrender.c: Clean up memory leaks in Xrender library
-
-2001-02-13 11:19 dawes
-
- * Xrender-def.cpp: 135. Updates for Cygwin support (#4433, Suhaib
- M. Siddiqi).
- 134. Fix a bug in the fonts.sgml doc (#4432, Juliusz Chroboczek).
- 133. Fix the xdpyinfo so that it will build when the XKB extension
- isn't
- defined (#4422, Jim Gettys).
- 132. Fix the xdm greeter so that it will build when the XKB
- extension isn't
- defined (#4421, Jim Gettys).
- 131. Only build setxkbmap when building the XKB lib support (based
- on #4420,
- Jim Gettys).
- 130. Improve the mga driver messages when the HAL module isn't
- available
- (#4451, David Woodhouse).
- 129. Add G450 support to the mga driver (#4416, Luugi Marsan
- (Matrox),
- 4449, David Woodhouse).
- 128. Mga driver updates, including HAL cleanups, add a Crtc2Ram
- option,
- and merge with Matrox beta4 source (#4415, Antii Tapaninen,
- #4423,
- Simon Hosie).
- 127. Fix a rounding problem in the wacom driver that was causing
- some
- position instability (#4417, Hannes Eriksson).
-
-2000-12-07 15:55 keithp
-
- * Picture.c: Xrender: missing mask field in ChangePictureAttributes
- request encoding
-
-2000-12-04 23:42 keithp
-
- * Picture.c: Xft,Xrender: make clip rectangles actually work
-
-2000-12-04 19:13 keithp
-
- * Picture.c, Xrender.h: Xft,Xrender,Render: c++ support, clip
- rectangles, warnings
-
-2000-12-04 13:01 dawes
-
- * Xrender-def.cpp: missing ident lines
-
-2000-12-04 10:49 dawes
-
- * Xrender-def.cpp: 1085. Updates for Hurd support (#A.209, Marcus
- Brinkmann). 1084. Bump the minor revisions of libXmu (UTF8_STRING)
- and libX11 (Xutf8LookupString). 1083. Fixes for all known
- bugs in the CompoundText parser and generator, (#4333, Bruno
- Haible). 1082. Fix documentation for XSetOMValues() (#4332, Bruno
- Haible). 1081. Fix namespace polution in <X11/Xlib.h> introduced
- with patch #4293 (#4331, Bruno Haible). 1080. Fix a bug in
- the newly introduced Xutf8LookupString() function that loses
- input not representable in the locale encoding (#4330, Bruno
- Haible). 1079. Avoid four new gcc warnings about const in lcUTF8.c
- introduced by patch #4293 (#4329, Bruno Haible). 1078. Fix
- some additional cases of confusing local typedef for wchar_t
- (#4328, Bruno Haible). 1077. Fix some round-trip conversion errors
- in COMPOUND_TEXT -> UTF8_STRING -> COMPOUND_TEXT due to wrong
- tables introduced by patches #4214, 4215 (#4327, Pablo
- Saratxaga). 1076. Cygwin update for building Xrender DLL (#4326,
- Suhaib M. Siddiqi). 1075. Fix an undefined SUBDIRS in
- xc/lib/GL/mesa/src/drv/Imakefile when compiling on something
- other than x86, alpha or sparc (#4325, Brian Paul). 1074.
- Don't have the neomagic driver disable stretching when a mode that
- fills the panel is selected (#4324, Andrew C. Aitchison).
- 1073. Fix a bug in Xlib's _XimLocalMbLookupString() that causes a
- crash when a zero keycode keypress event is received (#4322,
- HIBINO Kei).
-
-2000-12-03 15:41 keithp
-
- * Xrender.h: Xrender: prototype using "template" collides with
- reserved c++ word
-
-2000-12-02 01:38 keithp
-
- * Glyph.c: Xrender: 16/32 bit glyph functions using wrong minor
- request code
-
-2000-12-01 13:31 keithp
-
- * Glyph.c, Picture.c, Xrender.c, Xrender.h: Xrender/Xft: handle
- long strings, use unsigned int for 32-bit glyphs
-
-2000-11-29 00:25 keithp
-
- * Glyph.c, Xrender.h: add 16/32 bit glyph rendering to Xrender
- library
-
-2000-11-19 23:13 keithp
-
- * FillRect.c, FillRects.c, Imakefile, Picture.c, Xrender.h: Add
- component alpha to Render extension
-
-2000-08-27 19:43 tsi
-
- * Composite.c, Glyph.c, Picture.c, Xrender.c, Xrender.h,
- Xrenderint.h: Ident lines
-
-2000-08-26 09:37 keithp
-
- * Imakefile: Get render library to actually build and install
- correctly
-
-2000-08-25 17:38 keithp
-
- * Composite.c, Glyph.c, Imakefile, Picture.c, Xrender.c, Xrender.h,
- Xrenderint.h: Add Xrender library
-
diff --git a/nx-X11/lib/Xrender/Color.c b/nx-X11/lib/Xrender/Color.c
index 4f934f038..6875204e6 100644
--- a/nx-X11/lib/Xrender/Color.c
+++ b/nx-X11/lib/Xrender/Color.c
@@ -85,8 +85,8 @@ XRenderParseColor(Display *dpy, char *spec, XRenderColor *def)
def->blue = coreColor.blue;
def->alpha = 0xffff;
}
- def->red = (def->red * def->alpha) / 65535;
- def->green = (def->green * def->alpha) / 65535;
- def->blue = (def->blue * def->alpha) / 65535;
+ def->red = (def->red * def->alpha) / 0xffffU;
+ def->green = (def->green * def->alpha) / 0xffffU;
+ def->blue = (def->blue * def->alpha) / 0xffffU;
return 1;
}
diff --git a/nx-X11/lib/Xrender/INSTALL b/nx-X11/lib/Xrender/INSTALL
deleted file mode 100644
index 835f6080a..000000000
--- a/nx-X11/lib/Xrender/INSTALL
+++ /dev/null
@@ -1,8 +0,0 @@
-Xrender is built with the traditional configure script:
-
- $ ./configure --prefix=/usr/X11R6
-
-This should generate valid Makefiles, then:
-
- $ make
- $ make install
diff --git a/nx-X11/lib/Xrender/Imakefile b/nx-X11/lib/Xrender/Imakefile
index 72d149a20..35d826b22 100644
--- a/nx-X11/lib/Xrender/Imakefile
+++ b/nx-X11/lib/Xrender/Imakefile
@@ -147,14 +147,3 @@ DependTarget()
distclean:: clean
RemoveFile(Makefile)
#endif
-
-all:: xrender.pc
-
-xrender.pc: xrender.pc.in
- RemoveFile($@)
- sh config-subst $(SUBSTVARS) < xrender.pc.in > $@
-
-InstallNonExecFile(xrender.pc,$(USRLIBDIR)/pkgconfig)
-
-clean::
- RemoveFile(xrender.pc)
diff --git a/nx-X11/lib/Xrender/NEWS b/nx-X11/lib/Xrender/NEWS
deleted file mode 100644
index e69de29bb..000000000
--- a/nx-X11/lib/Xrender/NEWS
+++ /dev/null
diff --git a/nx-X11/lib/Xrender/README b/nx-X11/lib/Xrender/README
deleted file mode 100644
index e69de29bb..000000000
--- a/nx-X11/lib/Xrender/README
+++ /dev/null
diff --git a/nx-X11/lib/Xrender/autogen.sh b/nx-X11/lib/Xrender/autogen.sh
deleted file mode 100755
index b1376df5a..000000000
--- a/nx-X11/lib/Xrender/autogen.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-autoreconf -v --install || exit 1
-./configure --enable-maintainer-mode "$@"
diff --git a/nx-X11/lib/Xrender/config-subst b/nx-X11/lib/Xrender/config-subst
deleted file mode 100644
index 5907e0328..000000000
--- a/nx-X11/lib/Xrender/config-subst
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-script=config-subst.$$
-trap "rm $script" 0
-rm -f $script
-for i in ${1+"$@"}; do
- var="`echo "$i" | sed 's/=.*$//'`"
- val="`echo "$i" | sed 's/^[^=]*=//'`"
- echo "s;@$var@;$val;" >> $script
-done
-sed -f $script
diff --git a/nx-X11/lib/Xrender/configure.ac b/nx-X11/lib/Xrender/configure.ac
deleted file mode 100644
index a190657f3..000000000
--- a/nx-X11/lib/Xrender/configure.ac
+++ /dev/null
@@ -1,113 +0,0 @@
-dnl
-dnl $Id: configure.ac,v 1.3 2004/08/07 00:40:40 keithp Exp $
-dnl
-dnl Copyright © 2003 Keith Packard, Noah Levitt
-dnl
-dnl Permission to use, copy, modify, distribute, and sell this software and its
-dnl documentation for any purpose is hereby granted without fee, provided that
-dnl the above copyright notice appear in all copies and that both that
-dnl copyright notice and this permission notice appear in supporting
-dnl documentation, and that the name of Keith Packard not be used in
-dnl advertising or publicity pertaining to distribution of the software without
-dnl specific, written prior permission. Keith Packard makes no
-dnl representations about the suitability of this software for any purpose. It
-dnl is provided "as is" without express or implied warranty.
-dnl
-dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
-dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
-dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
-dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
-dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-dnl PERFORMANCE OF THIS SOFTWARE.
-dnl
-dnl Process this file with autoconf to create configure.
-
-AC_PREREQ([2.57])
-
-dnl
-dnl Version should match the current Render version. XRenderQueryVersion
-dnl returns the version from render.h, NOT the version we set here. But we
-dnl try to keep these the same. Note that the library has an extra
-dnl digit in the version number to track changes which don't affect the
-dnl protocol, so Xrender version l.n.m corresponds to protocol version l.n
-dnl
-AC_INIT(libXrender, 0.9.0, [keithp@keithp.com], libXrender)
-AM_INIT_AUTOMAKE([dist-bzip2])
-AM_MAINTAINER_MODE
-
-AM_CONFIG_HEADER(config.h)
-AC_CONFIG_AUX_DIR(.)
-
-# Check for progs
-AC_PROG_CC
-AC_PROG_LIBTOOL
-
-# Check for X
-PKG_CHECK_MODULES(X, x11,
- [x_found_with_pkgconfig=yes],
- [x_found_with_pkgconfig=no])
-
-if test "$x_found_with_pkgconfig" = "yes"
-then
- X_REQUIRES="x11"
- X_NON_PKG_CFLAGS=""
- X_NON_PKG_LIBS=""
-else
- AC_PATH_XTRA
-
- if test "x$no_x" = "xyes"
- then
- AC_MSG_ERROR([X is required, but it was either disabled or not found.])
- fi
-
- # pkg-config adds the -l flag while AC_PATH_XTRA does not
-
- X_LIBS="$X_LIBS -lX11"
-
- #
- # Check for XTHREADS support
- #
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $X_CFLAGS"
- LIBS="$LIBS $X_LIBS"
-
- AC_MSG_CHECKING([for XTHREADS in Xlib])
- AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([[#include <X11/Xlib.h>]],
- [[return XInitThreads() == 0 ? 0 : 1;]])],
- [xthreads=no],
- [xthreads=yes],
- [xthreads=yes])
-
- AC_MSG_RESULT($xthreads)
-
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-
- if test "x$xthreads" = "xyes"
- then
- X_CFLAGS="$X_CFLAGS -DXTHREADS"
- fi
-
- X_REQUIRES=""
- X_NON_PKG_CFLAGS="$X_CFLAGS"
- X_NON_PKG_LIBS="$X_LIBS"
-fi
-AC_SUBST(X_REQUIRES)
-AC_SUBST(X_NON_PKG_CFLAGS)
-AC_SUBST(X_NON_PKG_LIBS)
-
-# Check render configuration, strip extra digits from package version to
-# find the required protocol version
-
-if test "$VERSION" = "" ; then
- VERSION=$PACKAGE_VERSION;
-fi
-RENDER_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
-PKG_CHECK_MODULES(RENDER, render >= $RENDER_VERSION)
-
-AC_OUTPUT([Makefile
- xrender.pc])
-
diff --git a/nx-X11/lib/Xrender/xrender.pc.in b/nx-X11/lib/Xrender/xrender.pc.in
deleted file mode 100644
index ec8abb5aa..000000000
--- a/nx-X11/lib/Xrender/xrender.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: Xrender
-Description: X Render Library
-Version: @VERSION@
-Requires: @X_REQUIRES@
-Cflags: -I${includedir} @RENDER_CFLAGS@ @X_NON_PKG_CFLAGS@
-Libs: -L${libdir} -lNX_Xrender @X_NON_PKG_LIBS@
diff --git a/nx-X11/lib/Xxf86dga/Imakefile b/nx-X11/lib/Xxf86dga/Imakefile
deleted file mode 100644
index 0be675720..000000000
--- a/nx-X11/lib/Xxf86dga/Imakefile
+++ /dev/null
@@ -1,63 +0,0 @@
-XCOMM $XdotOrg: xc/lib/Xxf86dga/Imakefile,v 1.3 2005/10/18 14:58:52 alanc Exp $
-XCOMM $XFree86: xc/lib/Xxf86dga/Imakefile,v 3.6 2003/05/05 20:42:30 tsi Exp $
-
-#define DoNormalLib NormalLibXxf86dga
-#define DoSharedLib SharedLibXxf86dga
-#define DoExtraLib SharedLibXxf86dga
-#define DoDebugLib DebugLibXxf86dga
-#define DoProfileLib ProfileLibXxf86dga
-#define LibName Xxf86dga
-#define SoRev SOXXF86DGAREV
-#define LibHeaders NO
-
-#include <Threads.tmpl>
-
-#ifdef SharedXxf86dgaReqs
-REQUIREDLIBS = SharedXxf86dgaReqs
-#endif
-
-XF86DGASRCS = XF86DGA.c XF86DGA2.c
-XF86DGAOBJS = XF86DGA.o XF86DGA2.o
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
-#if defined(HasNetBSDApertureDriver) && HasNetBSDApertureDriver
-APERTURE_DEFINES = -DHAS_APERTURE_DRV
-#endif
-
- DEFINES = $(ALLOC_DEFINES) $(APERTURE_DEFINES)
- SRCS = $(XF86DGASRCS)
- OBJS = $(XF86DGAOBJS)
- LINTLIBS = $(LINTXLIB)
-
-#define IncludeSharedObjectInNormalLib
-
-#include <Library.tmpl>
-
-InstallGenManPage(XDGA,$(LIBMANDIR),$(LIBMANSUFFIX))
-#if ExpandManNames
-DGAFUNCS = XDGAQueryExtension \
- XDGAQueryVersion \
- XDGAQueryModes \
- XDGASetMode \
- XDGAOpenFramebuffer \
- XDGACloseFramebuffer \
- XDGASetViewport \
- XDGAInstallColormap \
- XDGACreateColormap \
- XDGASelectInput \
- XDGAFillRectangle \
- XDGACopyArea \
- XDGACopyTransparentArea \
- XDGAGetViewportStatus \
- XDGASync \
- XDGASetClientVersion \
- XDGAChangePixmapMode \
- XDGAKeyEventToXKeyEvent
-
-InstallGenManPageAliases(XDGA,$(LIBMANDIR),$(LIBMANSUFFIX),XF86DGA XFree86-DGA $(DGAFUNCS))
-#endif
-
-DependTarget()
diff --git a/nx-X11/lib/Xxf86dga/XDGA.man b/nx-X11/lib/Xxf86dga/XDGA.man
deleted file mode 100644
index 9c7beefbb..000000000
--- a/nx-X11/lib/Xxf86dga/XDGA.man
+++ /dev/null
@@ -1,673 +0,0 @@
-.\" $XFree86$
-.\"
-.TH XDGA 3 __vendorversion__
-.SH NAME
-XDGA \- Client library for the XFree86-DGA extension.
-.SH SYNOPSIS
-.B #include <X11/extensions/xf86dga.h>
-.HP
-Bool
-.BR XDGAQueryExtension (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int *" eventBase ,
-.br
-.RI "int *" errorBase )
-.HP
-Bool
-.BR XDGAQueryVersion (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int *" majorVersion ,
-.br
-.RI "int *" minorVersion )
-.HP
-XDGAMode
-.RB * XDGAQueryModes (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "int *" num )
-.HP
-XDGADevice
-.RB * XDGASetMode (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "int " mode )
-.HP
-Bool
-.BR XDGAOpenFramebuffer (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen )
-.HP
-void
-.BR XDGACloseFramebuffer (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen )
-.HP
-void
-.BR XDGASetViewport (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "int " x ,
-.br
-.RI "int " y ,
-.br
-.RI "int " flags )
-.HP
-void
-.BR XDGAInstallColormap (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "Colormap " cmap )
-.HP
-Colormap
-.BR XDGACreateColormap (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "XDGADevice *" device ,
-.br
-.RI "int " alloc )
-.HP
-void
-.BR XDGASelectInput (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "long " event_mask )
-.HP
-void
-.BR XDGAFillRectangle (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "int " x ,
-.br
-.RI "int " y ,
-.br
-.RI "unsigned int " width ,
-.br
-.RI "unsigned int " height ,
-.br
-.RI "unsigned long " color )
-.HP
-void
-.BR XDGACopyArea (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "int " srcx ,
-.br
-.RI "int " srcy ,
-.br
-.RI "unsigned int " width ,
-.br
-.RI "unsigned int " height ,
-.br
-.RI "int " dstx ,
-.br
-.RI "int " dsty )
-.HP
-void
-.BR XDGACopyTransparentArea (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "int " srcx ,
-.br
-.RI "int " srcy ,
-.br
-.RI "unsigned int " width ,
-.br
-.RI "unsigned int " height ,
-.br
-.RI "int " dstx ,
-.br
-.RI "int " dsty ,
-.br
-.RI "unsigned long " key )
-.HP
-int
-.BR XDGAGetViewportStatus (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen )
-.HP
-void
-.BR XDGASync (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen )
-.HP
-Bool
-.BR XDGASetClientVersion (
-.br
-.RI "Display *" dpy )
-.HP
-void
-.BR XDGAChangePixmapMode (
-.br
-.RI "Display *" dpy ,
-.br
-.RI "int " screen ,
-.br
-.RI "int *" x ,
-.br
-.RI "int *" y ,
-.br
-.RI "int " mode )
-.HP
-void
-.BR XDGAKeyEventToXKeyEvent (
-.br
-.RI "XDGAKeyEvent *" dk ,
-.br
-.RI "XKeyEvent *" xk )
-
-.SH DESCRIPTION
-The
-.B XFree86-DGA
-extension is an X server extension for allowing client programs direct
-access to the video frame buffer. This is a brief description of the
-programming interface for version 2.0 of the
-.B XFree86-DGA
-extension.
-.PP
-.B XFree86-DGA
-is not intended as a direct rendering API, but rather, as a mechanism
-to "get the X Server out of the way" so that some other direct rendering
-API can have full access to the hardware. With this in mind, DGA does
-provide clients some direct access to the hardware without requiring a
-separate rendering API, but this access is limited to direct linear
-framebuffer access.
-.PP
-Most of the reasons for the
-.B XFree86-DGA
-extension's existence are now better served in other ways. Further
-development of this extension is not expected, and it may be deprecated
-in a future release. The features that continue to be useful will either
-be provided through other existing mechanisms, or through an extension
-that address those needs more specifically.
-.PP
-.B XFree86-DGA
-is initialized by passing a number corresponding to a valid
-.I XDGAMode
-to
-.BR XDGASetMode ().
-Clients can get a list of valid modes from
-.BR XDGAQueryModes ().
-Each
-.I XDGAMode
-corresponds to a different framebuffer layout.
-.PP
-.BR XDGAQueryModes ()
-returns a pointer to an array of
-.IR XDGAMode s
-which are valid for the given screen.
-.I num
-is the number of elements in the array. The returned array can be freed
-with XFree(3). The
-.I XDGAMode
-structure is as follows:
-.PP
-.nf
-.ta .5i 2i
-typedef struct {
- int num;
- char *name;
- float verticalRefresh;
- int flags;
- int imageWidth;
- int imageHeight;
- int pixmapWidth;
- int pixmapHeight;
- int bytesPerScanline;
- int byteOrder;
- int depth;
- int bitsPerPixel;
- unsigned long redMask;
- unsigned long greenMask;
- unsigned long blueMask;
- short visualClass;
- int viewportWidth;
- int viewportHeight;
- int xViewportStep;
- int yViewportStep;
- int maxViewportX;
- int maxViewportY;
- int viewportFlags;
- int reserved1;
- int reserved2;
-.br
-} XDGAMode;
-.fi
-.TP 8
-.I num
-A unique identifying number
-.RI ( num
-> 0) for the mode. This is the number referenced when initializing the mode.
-.TP 8
-.I name
-The name of the corresponding modeline as given in the __xconfigfile__ file.
-.TP 8
-.I verticalRefresh
-The vertical refresh rate for the modeline (in Hz).
-.TP 8
-.I flags
-Any of the following may be OR'd together:
-.RS 8
-.TP 4
-.B XDGAConcurrentAccess
-Indicates that concurrent client/server access to the framebuffer is
-possible. If this flag is not set it is very important to call
-.BR XDGASync ()
-before directly accessing the framebuffer if a call to
-.BR XDGAFillRectangle (),
-.BR XDGACopyArea ()
-or
-.BR XDGACopyTransparentArea ()
-or any Xlib rendering function has been made prior to such accesses.
-.TP 4
-.B XDGASolidFillRect
-Indicates that
-.BR XDGAFillRectangle ()
-is supported.
-.TP 4
-.B XDGABlitRect
-Indicates that
-.BR XDGACopyArea ()
-is supported.
-.TP 4
-.B XDGABlitTransRect
-Indicates that
-.BR XDGACopyTransparentArea ()
-is supported.
-.TP 4
-.B XDGAPixmap
-Indicates that a Pixmap will be returned when the mode is initialized.
-This means that rendering with Xlib is possible for this mode.
-.TP 4
-.B XDGAInterlaced
-.TP 4
-.B XDGADoublescan
-Indicates that the mode is an interlaced or doublescan mode.
-.RE
-.TP 8
-.I imageWidth
-.TP 8
-.I imageHeight
-The width and height of the framebuffer area accessible by the client.
-This rectangle is always justified to the upper left-hand corner.
-.TP 8
-.I pixmapWidth
-.TP 8
-.I pixmapHeight
-The width and height of the framebuffer area accessible by Xlib. This
-rectangle is always justified to the upper left-hand corner. These
-fields are only valid if the
-.B XDGAPixmap
-flag is set in the
-.I flags
-field.
-.TP 8
-.I bytesPerScanline
-The pitch of the framebuffer in bytes.
-.TP 8
-.I byteOrder
-.B MSBFirst
-or
-.BR LSBFirst .
-.TP 8
-.I depth
-The number of bits in each pixel which contain usable data.
-.TP 8
-.I bitsPerPixel
-The number of bits taken up by each pixel.
-.TP 8
-.I redMask
-.TP 8
-.I greenMask
-.TP 8
-.I blueMask
-The RGB masks. These do not apply to color-indexed modes.
-.TP 8
-.I visualClass
-.BR TrueColor ,
-.BR PseudoColor ,
-.BR DirectColor ,
-etc.
-.TP 8
-.I viewportWidth
-.TP 8
-.I viewportHeight
-The dimensions of the portion of the framebuffer which will be displayed
-on the screen.
-.TP 8
-.I xViewPortStep
-.TP 8
-.I yViewPortStep
-The granularity of the x,y viewport positioning possible with the
-.BR XDGASetViewport ()
-function.
-.TP 8
-.I maxViewportX
-.TP 8
-.I maxViewportY
-The maximum x and y positions possible with the
-.BR XDGASetViewport ()
-function.
-.TP 8
-.I viewportFlags
-Any of the following may be OR'd together
-.RS 8
-.TP 4
-.B XDGAFlipRetrace
-Indicates that the hardware can switch viewports during the vertical
-retrace.
-.TP 4
-.B XDGAFlipImmediate
-Indicates that the hardware can switch viewports immediately without
-waiting for the vertical retrace.
-.RE
-.PP
-.BR XDGASetMode ()
-initialises the
-.I XDGAMode
-corresponding to
-.IR num .
-To exit DGA mode and return to normal server operation, call
-.BR XDGASetMode ()
-with
-.I num
-set to zero.
-.BR XDGASetMode ()
-returns a pointer to an
-.I XDGADevice
-if successful. The XDGADevice can be freed with XFree(3). The
-.I XDGADevice
-structure is as follows:
-.PP
-.nf
-.ta .5i 2i
-typedef struct {
- XDGAMode mode;
- unsigned char *data;
- Pixmap pixmap;
-.br
-} XDGADevice;
-.fi
-.TP 8
-.I mode
-The
-.I XDGAMode
-structure, identical to the information returned by
-.BR XDGAQueryModes ().
-.TP 8
-.I data
-If direct framebuffer access is desired and possible, this field will
-contain a pointer to the mapped framebuffer memory. Generally, this
-field will be zero unless a call to
-.BR XDGAOpenFramebuffer ()
-is made prior to initialization of the mode.
-.TP 8
-.I pixmap
-If the mode supports Xlib rendering as indicated by
-.B XDGAPixmap
-in the
-.I flags
-field, this will contain a Pixmap handle suitable for passing as the
-drawable argument to Xlib functions. This field will be zero if Xlib
-rendering is not supported.
-.PP
-.BR XDGAQueryExtension ()
-checks for the presence of the extension and returns the event and error bases.
-.PP
-.BR XDGAQueryVersion ()
-returns the
-.B XFree86-DGA
-major and minor version numbers.
-.PP
-.BR XDGAOpenFramebuffer ()
-maps the framebuffer memory. The client needs sufficient privileges to be
-able to do this.
-.BR XDGAOpenFramebuffer ()
-should be called prior to initializing a DGA mode if direct framebuffer
-access is desired for that mode.
-.BR XDGAOpenFramebuffer ()
-does not need to be called if direct framebuffer access is not required.
-If the framebuffer is opened,
-.PP
-.BR XDGACloseFramebuffer ()
-should be called prior to client exit to unmap the memory.
-.PP
-.BR XDGAChangePixmapMode ()
-can be used to change between two pixmap sizes in cases where a Pixmap is
-available for Xlib rendering. The following values for the
-.I mode
-parameter are available:
-.RS 8
-.TP 4
-.B XDGAPixmapModeLarge
-The pixmap size is defined by the
-.I pixmapWidth
-and
-.I pixmapHeight
-fields in the
-.I XDGAMode
-structure. The
-.I x
-and
-.I y
-values are ignored in this case.
-.TP 4
-.B XDGAPixmapModeSmall
-The pixmap size is defined by the
-.I viewportWidth
-and
-.I viewportHeight
-fields in the
-.I XDGAMode
-structure. In this mode, the
-.I x
-and
-.I y
-values specify where in the framebuffer this pixmap rectangle is located.
-It may be placed anywhere within the Xlib renderable region described
-by the
-.I pixmapWidth
-and
-.I pixmapHeight
-fields in the
-.IR XDGAMode .
-The
-.I x
-and
-.I y
-values returned are the resultant location of the pixmap and may be
-different from the requested x,y location due to platform specific
-alignment constraints. All Xlib rendering is clipped to this pixmap
-rectangle.
-.RE
-.PP
-.BR XDGASetViewport ()
-sets the upper left-hand corner of the rectangle of framebuffer that is
-to be displayed on the screen. Not all locations may be supported by
-the hardware and requested locations will be adjusted according to the
-.I xViewPortStep
-and
-.I yViewPortStep
-fields in the
-.IR XDGAMode .
-.PP
-.I flags
-can be
-.B XDGAFlipRetrace
-or
-.B XDGAFlipImmediate
-to adjust the viewport location at the next vertical retrace or
-immediately. Values other than the supported values advertised in the
-mode's
-.I viewportFlags
-field will result in hardware-specific default behavior.
-.B XDGAFlipImmediate
-will block until the flip is completed.
-.B XDGAFlipRetrace
-will generally NOT block so it is necessary to monitor the viewport
-status with
-.BR XDGAGetViewportStatus ().
-.B XDGAFlipImmediate
-requests during pending
-.B XDGAFlipRetrace
-requests will be ignored.
-.PP
-.BR XDGAGetViewportStatus ()
-keeps track of the
-.BR XDGASetViewport ()
-requests still pending. The return value of the function will have
-consecutive bits set (LSB justified), each bit representing a pending
-viewport change. For example:
-.PP
-.nf
- while(XDGAGetViewportStatus(dpy, screen));
-.fi
-.PP
-waits for all pending viewport changes to finish.
-.PP
-.nf
- while(0x2 & XDGAGetViewportStatus(dpy, screen));
-.fi
-.PP
-waits until all but the last viewport changes have completed.
-.PP
-.BR XDGACreateColormap ()
-is similar to the Xlib function XCreateColormap(3) except that it takes
-an
-.I XDGADevice
-as an argument instead of a Window and Visual. Though XCreateColormap(3)
-may create usable colormaps in some cases,
-.BR XDGACreateColormap ()
-is the preferred method for creating colormaps in DGA since there may
-not be an advertised visual compatible with the DGA device.
-.PP
-.BR XDGAInstallColormap ()
-must be used to install colormaps in DGA mode. XInstallColormap(3) will
-not work.
-.PP
-.BR XDGASelectInput ()
-enables DGA's own event mechanism. This function is similar to
-XSelectInput(3), and all Xlib Key, Button and Motion masks are supported.
-The following DGA events are defined:
-.PP
-.nf
-.ta .5i 2i
-typedef struct {
- int type; /\(** ButtonPress or ButtonRelease + the DGA event base*/
- unsigned long serial; /\(** # or last request processed by the server */
- Display *display; /\(** Display the event was read from */
- int screen; /\(** The screen number the event came from */
- Time time; /\(** milliseconds */
- unsigned int state; /\(** key or button mask */
- unsigned int button; /\(** detail */
-.br
-} XDGAButtonEvent;
-.fi
-.PP
-.nf
-.ta .5i 2i
-typedef struct {
- int type; /\(** KeyPress or KeyRelease + the DGA event base*/
- unsigned long serial; /\(** # or last request processed by the server */
- Display *display; /\(** Display the event was read from */
- int screen; /\(** The screen number the event came from */
- Time time; /\(** milliseconds */
- unsigned int state; /\(** key or button mask */
- unsigned int keycode; /\(** detail */
-.br
-} XDGAKeyEvent;
-.fi
-.PP
-.nf
-.ta .5i 2i
-typedef struct {
- int type; /\(** MotionNotify + the DGA event base*/
- unsigned long serial; /\(** # or last request processed by the server */
- Display *display; /\(** Display the event was read from */
- int screen; /\(** The screen number the event came from */
- Time time; /\(** milliseconds */
- unsigned int state; /\(** key or button mask */
- int dx; /\(** relative pointer motion */
- int dy; /\(** relative pointer motion */
-.br
-} XDGAMotionEvent;
-.fi
-.PP
-.BR XDGAKeyEventToXKeyEvent ()
-is a helper function to translate
-.IR XDGAKeyEvent s
-into
-.IR XKeyEvent s
-suitable for use with XLookupKeysym(3).
-.PP
-.BR XDGAFillRectangle (),
-.BR XDGACopyArea (),
-and
-.BR XDGACopyTransparentArea ()
-are included with some reservation since DGA is not intended as a
-rendering API. These are merely convenience routines and are optionally
-supported. The associated flags will be set in the
-.IR XDGAMode 's
-.I flags
-field if these functions are supported. These functions will be no-ops
-otherwise. they do not provide direct access to the hardware, but are
-simply context-less operations performed by the server.
-.PP
-.BR XDGASync ()
-blocks until all server rendering to the framebuffer completes. If Xlib
-or the 3 rendering functions above are used,
-.BR XDGASync ()
-must be called before the client directly accesses the framebuffer as
-the server rendering is asynchronous with the client and may have not
-completed. This is especially important if the
-.B XDGAConcurrentAccess
-flag is not set in the
-.IR XDGAMode 's
-.I flags
-field since concurrent access by the server and client may result in a
-system lockup.
-.SH SEE ALSO
-__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__)
-.SH AUTHORS
-.B XFree86-DGA
-version 2 was written by Mark Vojkovich. Version 1 was written by Jon
-Tombs, Harm Hanemaayer, Mark Vojkovich.
-
diff --git a/nx-X11/lib/Xxf86dga/XF86DGA.c b/nx-X11/lib/Xxf86dga/XF86DGA.c
deleted file mode 100644
index 95d7596e2..000000000
--- a/nx-X11/lib/Xxf86dga/XF86DGA.c
+++ /dev/null
@@ -1,722 +0,0 @@
-/* $XFree86: xc/lib/Xxf86dga/XF86DGA.c,v 3.23tsi Exp $ */
-/*
-
-Copyright (c) 1995 Jon Tombs
-Copyright (c) 1995,1996 The XFree86 Project, Inc
-
-*/
-
-/* THIS IS NOT AN X CONSORTIUM STANDARD */
-
-#ifdef __UNIXOS2__ /* needed here to override certain constants in X headers */
-#define INCL_DOS
-#define INCL_DOSIOCTL
-#define I_NEED_OS2_H
-#include <os2.h>
-#endif
-
-#if defined(linux)
-#define HAS_MMAP_ANON
-#include <sys/types.h>
-#include <sys/mman.h>
-/* kernel header doesn't work with -ansi */
-/* #include <asm/page.h> */ /* PAGE_SIZE */
-#define HAS_SC_PAGESIZE /* _SC_PAGESIZE may be an enum for Linux */
-#define HAS_GETPAGESIZE
-#endif /* linux */
-
-#if defined(CSRG_BASED)
-#define HAS_MMAP_ANON
-#define HAS_GETPAGESIZE
-#include <sys/types.h>
-#include <sys/mman.h>
-#endif /* CSRG_BASED */
-
-#if defined(DGUX)
-#define HAS_GETPAGESIZE
-#define MMAP_DEV_ZERO
-#include <sys/types.h>
-#include <sys/mman.h>
-#include <unistd.h>
-#endif /* DGUX */
-
-#if defined(SVR4) && !defined(DGUX)
-#define MMAP_DEV_ZERO
-#include <sys/types.h>
-#include <sys/mman.h>
-#include <unistd.h>
-#endif /* SVR4 && !DGUX */
-
-#if defined(sun) && !defined(SVR4) /* SunOS */
-#define MMAP_DEV_ZERO /* doesn't SunOS have MAP_ANON ?? */
-#define HAS_GETPAGESIZE
-#include <sys/types.h>
-#include <sys/mman.h>
-#endif /* sun && !SVR4 */
-
-#ifdef XNO_SYSCONF
-#undef _SC_PAGESIZE
-#endif
-
-
-#define NEED_EVENTS
-#define NEED_REPLIES
-#include <X11/Xlibint.h>
-#include <X11/extensions/xf86dga.h>
-#include <X11/extensions/xf86dgastr.h>
-#include <X11/extensions/Xext.h>
-#include <X11/extensions/extutil.h>
-
-extern XExtDisplayInfo* xdga_find_display(Display*);
-extern char *xdga_extension_name;
-
-#define XF86DGACheckExtension(dpy,i,val) \
- XextCheckExtension (dpy, i, xdga_extension_name, val)
-
-/*****************************************************************************
- * *
- * public XFree86-DGA Extension routines *
- * *
- *****************************************************************************/
-
-Bool XF86DGAQueryExtension (
- Display *dpy,
- int *event_basep,
- int *error_basep
-){
- return XDGAQueryExtension(dpy, event_basep, error_basep);
-}
-
-Bool XF86DGAQueryVersion(
- Display* dpy,
- int* majorVersion,
- int* minorVersion
-){
- return XDGAQueryVersion(dpy, majorVersion, minorVersion);
-}
-
-Bool XF86DGAGetVideoLL(
- Display* dpy,
- int screen,
- int *offset,
- int *width,
- int *bank_size,
- int *ram_size
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXF86DGAGetVideoLLReply rep;
- xXF86DGAGetVideoLLReq *req;
-
- XF86DGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86DGAGetVideoLL, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XF86DGAGetVideoLL;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
-
- *offset = /*(char *)*/rep.offset;
- *width = rep.width;
- *bank_size = rep.bank_size;
- *ram_size = rep.ram_size;
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-
-Bool XF86DGADirectVideoLL(
- Display* dpy,
- int screen,
- int enable
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXF86DGADirectVideoReq *req;
-
- XF86DGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86DGADirectVideo, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XF86DGADirectVideo;
- req->screen = screen;
- req->enable = enable;
- UnlockDisplay(dpy);
- SyncHandle();
- XSync(dpy,False);
- return True;
-}
-
-Bool XF86DGAGetViewPortSize(
- Display* dpy,
- int screen,
- int *width,
- int *height
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXF86DGAGetViewPortSizeReply rep;
- xXF86DGAGetViewPortSizeReq *req;
-
- XF86DGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86DGAGetViewPortSize, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XF86DGAGetViewPortSize;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
-
- *width = rep.width;
- *height = rep.height;
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-
-Bool XF86DGASetViewPort(
- Display* dpy,
- int screen,
- int x,
- int y
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXF86DGASetViewPortReq *req;
-
- XF86DGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86DGASetViewPort, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XF86DGASetViewPort;
- req->screen = screen;
- req->x = x;
- req->y = y;
- UnlockDisplay(dpy);
- SyncHandle();
- XSync(dpy,False);
- return True;
-}
-
-
-Bool XF86DGAGetVidPage(
- Display* dpy,
- int screen,
- int *vpage
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXF86DGAGetVidPageReply rep;
- xXF86DGAGetVidPageReq *req;
-
- XF86DGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86DGAGetVidPage, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XF86DGAGetVidPage;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
-
- *vpage = rep.vpage;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-
-Bool XF86DGASetVidPage(
- Display* dpy,
- int screen,
- int vpage
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXF86DGASetVidPageReq *req;
-
- XF86DGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86DGASetVidPage, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XF86DGASetVidPage;
- req->screen = screen;
- req->vpage = vpage;
- UnlockDisplay(dpy);
- SyncHandle();
- XSync(dpy,False);
- return True;
-}
-
-Bool XF86DGAInstallColormap(
- Display* dpy,
- int screen,
- Colormap cmap
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXF86DGAInstallColormapReq *req;
-
- XF86DGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86DGAInstallColormap, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XF86DGAInstallColormap;
- req->screen = screen;
- req->id = cmap;
- UnlockDisplay(dpy);
- SyncHandle();
- XSync(dpy,False);
- return True;
-}
-
-Bool XF86DGAQueryDirectVideo(
- Display *dpy,
- int screen,
- int *flags
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXF86DGAQueryDirectVideoReply rep;
- xXF86DGAQueryDirectVideoReq *req;
-
- XF86DGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86DGAQueryDirectVideo, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XF86DGAQueryDirectVideo;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- *flags = rep.flags;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86DGAViewPortChanged(
- Display *dpy,
- int screen,
- int n
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXF86DGAViewPortChangedReply rep;
- xXF86DGAViewPortChangedReq *req;
-
- XF86DGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86DGAViewPortChanged, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XF86DGAViewPortChanged;
- req->screen = screen;
- req->n = n;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- UnlockDisplay(dpy);
- SyncHandle();
- return rep.result;
-}
-
-
-
-/* Helper functions */
-
-#include <X11/Xmd.h>
-#include <X11/extensions/xf86dga.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <fcntl.h>
-#if defined(ISC)
-# define HAS_SVR3_MMAP
-# include <sys/types.h>
-# include <errno.h>
-
-# include <sys/at_ansi.h>
-# include <sys/kd.h>
-
-# include <sys/sysmacros.h>
-# include <sys/immu.h>
-# include <sys/region.h>
-
-# include <sys/mmap.h>
-#else
-# if defined(Lynx) && defined(NO_MMAP)
-# include <sys/types.h>
-# include <errno.h>
-# include <smem.h>
-# else
-# if !defined(__UNIXOS2__)
-# include <sys/mman.h>
-# endif
-# endif
-#endif
-#include <sys/wait.h>
-#include <signal.h>
-#include <unistd.h>
-
-#if defined(SVR4) && !defined(sun)
-#define DEV_MEM "/dev/pmem"
-#elif defined(SVR4) && defined(sun)
-#define DEV_MEM "/dev/xsvc"
-#elif defined(HAS_APERTURE_DRV)
-#define DEV_MEM "/dev/xf86"
-#else
-#define DEV_MEM "/dev/mem"
-#endif
-
-typedef struct {
- unsigned long physaddr; /* actual requested physical address */
- unsigned long size; /* actual requested map size */
- unsigned long delta; /* delta to account for page alignment */
- void * vaddr; /* mapped address, without the delta */
- int refcount; /* reference count */
-} MapRec, *MapPtr;
-
-typedef struct {
- Display * display;
- int screen;
- MapPtr map;
-} ScrRec, *ScrPtr;
-
-static int mapFd = -1;
-static int numMaps = 0;
-static int numScrs = 0;
-static MapPtr *mapList = NULL;
-static ScrPtr *scrList = NULL;
-
-static MapPtr
-AddMap(void)
-{
- MapPtr *old;
-
- old = mapList;
- mapList = realloc(mapList, sizeof(MapPtr) * (numMaps + 1));
- if (!mapList) {
- mapList = old;
- return NULL;
- }
- mapList[numMaps] = malloc(sizeof(MapRec));
- if (!mapList[numMaps])
- return NULL;
- return mapList[numMaps++];
-}
-
-static ScrPtr
-AddScr(void)
-{
- ScrPtr *old;
-
- old = scrList;
- scrList = realloc(scrList, sizeof(ScrPtr) * (numScrs + 1));
- if (!scrList) {
- scrList = old;
- return NULL;
- }
- scrList[numScrs] = malloc(sizeof(ScrRec));
- if (!scrList[numScrs])
- return NULL;
- return scrList[numScrs++];
-}
-
-static MapPtr
-FindMap(unsigned long address, unsigned long size)
-{
- int i;
-
- for (i = 0; i < numMaps; i++) {
- if (mapList[i]->physaddr == address &&
- mapList[i]->size == size)
- return mapList[i];
- }
- return NULL;
-}
-
-static ScrPtr
-FindScr(Display *display, int screen)
-{
- int i;
-
- for (i = 0; i < numScrs; i++) {
- if (scrList[i]->display == display &&
- scrList[i]->screen == screen)
- return scrList[i];
- }
- return NULL;
-}
-
-static void *
-MapPhysAddress(unsigned long address, unsigned long size)
-{
- unsigned long offset, delta;
- int pagesize = -1;
- void *vaddr;
- MapPtr mp;
-#if defined(ISC) && defined(HAS_SVR3_MMAP)
- struct kd_memloc mloc;
-#elif defined(__UNIXOS2__)
- APIRET rc;
- ULONG action;
- HFILE hfd;
-#endif
-
- if ((mp = FindMap(address, size))) {
- mp->refcount++;
- return (void *)((unsigned long)mp->vaddr + mp->delta);
- }
-
-#if defined(_SC_PAGESIZE) && defined(HAS_SC_PAGESIZE)
- pagesize = sysconf(_SC_PAGESIZE);
-#endif
-#ifdef _SC_PAGE_SIZE
- if (pagesize == -1)
- pagesize = sysconf(_SC_PAGE_SIZE);
-#endif
-#ifdef HAS_GETPAGESIZE
- if (pagesize == -1)
- pagesize = getpagesize();
-#endif
-#ifdef PAGE_SIZE
- if (pagesize == -1)
- pagesize = PAGE_SIZE;
-#endif
- if (pagesize == -1)
- pagesize = 4096;
-
- delta = address % pagesize;
- offset = address - delta;
-
-#if defined(ISC) && defined(HAS_SVR3_MMAP)
- if (mapFd < 0) {
- if ((mapFd = open("/dev/mmap", O_RDWR)) < 0)
- return NULL;
- }
- mloc.vaddr = (char *)0;
- mloc.physaddr = (char *)offset;
- mloc.length = size + delta;
- mloc.ioflg=1;
-
- if ((vaddr = (void *)ioctl(mapFd, MAP, &mloc)) == (void *)-1)
- return NULL;
-#elif defined (__UNIXOS2__)
- /*
- * Dragon warning here! /dev/pmap$ is never closed, except on progam exit.
- * Consecutive calling of this routine will make PMAP$ driver run out
- * of memory handles. Some umap/close mechanism should be provided
- */
-
- rc = DosOpen("/dev/pmap$", &hfd, &action, 0, FILE_NORMAL, FILE_OPEN,
- OPEN_ACCESS_READWRITE | OPEN_SHARE_DENYNONE, (PEAOP2)NULL);
- if (rc != 0)
- return NULL;
- {
- struct map_ioctl {
- union {
- ULONG phys;
- void* user;
- } a;
- ULONG size;
- } pmap,dmap;
- ULONG plen,dlen;
-#define XFREE86_PMAP 0x76
-#define PMAP_MAP 0x44
-
- pmap.a.phys = offset;
- pmap.size = size + delta;
- rc = DosDevIOCtl(hfd, XFREE86_PMAP, PMAP_MAP,
- (PULONG)&pmap, sizeof(pmap), &plen,
- (PULONG)&dmap, sizeof(dmap), &dlen);
- if (rc == 0) {
- vaddr = dmap.a.user;
- }
- }
- if (rc != 0)
- return NULL;
-#elif defined(Lynx) && defined(NO_MMAP)
- vaddr = (void *)smem_create("XF86DGA", (char *)offset,
- size + delta, SM_READ|SM_WRITE);
-#else
-#ifndef MAP_FILE
-#define MAP_FILE 0
-#endif
- if (mapFd < 0) {
- if ((mapFd = open(DEV_MEM, O_RDWR)) < 0)
- return NULL;
- }
- vaddr = (void *)mmap(NULL, size + delta, PROT_READ | PROT_WRITE,
- MAP_FILE | MAP_SHARED, mapFd, (off_t)offset);
- if (vaddr == (void *)-1)
- return NULL;
-#endif
-
- if (!vaddr) {
- if (!(mp = AddMap()))
- return NULL;
- mp->physaddr = address;
- mp->size = size;
- mp->delta = delta;
- mp->vaddr = vaddr;
- mp->refcount = 1;
- }
- return (void *)((unsigned long)vaddr + delta);
-}
-
-/*
- * Still need to find a clean way of detecting the death of a DGA app
- * and returning things to normal - Jon
- * This is here to help debugging without rebooting... Also C-A-BS
- * should restore text mode.
- */
-
-int
-XF86DGAForkApp(int screen)
-{
- pid_t pid;
- int status;
- int i;
-
- /* fork the app, parent hangs around to clean up */
- if ((pid = fork()) > 0) {
- ScrPtr sp;
-
- waitpid(pid, &status, 0);
- for (i = 0; i < numScrs; i++) {
- sp = scrList[i];
- XF86DGADirectVideoLL(sp->display, sp->screen, 0);
- XSync(sp->display, False);
- }
- if (WIFEXITED(status))
- _exit(0);
- else
- _exit(-1);
- }
- return pid;
-}
-
-
-Bool
-XF86DGADirectVideo(
- Display *dis,
- int screen,
- int enable
-){
- ScrPtr sp;
- MapPtr mp = NULL;
-
- if ((sp = FindScr(dis, screen)))
- mp = sp->map;
-
- if (enable & XF86DGADirectGraphics) {
-#if !defined(ISC) && !defined(HAS_SVR3_MMAP) \
- && !(defined(Lynx) && defined(NO_MMAP)) \
- && !defined(__UNIXOS2__)
- if (mp && mp->vaddr)
- mprotect(mp->vaddr, mp->size + mp->delta, PROT_READ | PROT_WRITE);
-#endif
- } else {
-#if !defined(ISC) && !defined(HAS_SVR3_MMAP) \
- && !(defined(Lynx) && defined(NO_MMAP)) \
- && !defined(__UNIXOS2__)
- if (mp && mp->vaddr)
- mprotect(mp->vaddr, mp->size + mp->delta, PROT_READ);
-#elif defined(Lynx) && defined(NO_MMAP)
- /* XXX this doesn't allow enable after disable */
- smem_create(NULL, mp->vaddr, mp->size + mp->delta, SM_DETACH);
- smem_remove("XF86DGA");
-#endif
- }
-
- XF86DGADirectVideoLL(dis, screen, enable);
- return 1;
-}
-
-
-static void
-XF86cleanup(int sig)
-{
- ScrPtr sp;
- int i;
- static char beenhere = 0;
-
- if (beenhere)
- _exit(3);
- beenhere = 1;
-
- for (i = 0; i < numScrs; i++) {
- sp = scrList[i];
- XF86DGADirectVideo(sp->display, sp->screen, 0);
- XSync(sp->display, False);
- }
- _exit(3);
-}
-
-Bool
-XF86DGAGetVideo(
- Display *dis,
- int screen,
- char **addr,
- int *width,
- int *bank,
- int *ram
-){
- /*unsigned long*/ int offset;
- static int beenHere = 0;
- ScrPtr sp;
- MapPtr mp;
-
- if (!(sp = FindScr(dis, screen))) {
- if (!(sp = AddScr())) {
- fprintf(stderr, "XF86DGAGetVideo: malloc failure\n");
- exit(-2);
- }
- sp->display = dis;
- sp->screen = screen;
- sp->map = NULL;
- }
-
- XF86DGAGetVideoLL(dis, screen , &offset, width, bank, ram);
-
- *addr = MapPhysAddress(offset, *bank);
- if (*addr == NULL) {
- fprintf(stderr, "XF86DGAGetVideo: failed to map video memory (%s)\n",
- strerror(errno));
- exit(-2);
- }
-
- if ((mp = FindMap(offset, *bank)))
- sp->map = mp;
-
- if (!beenHere) {
- beenHere = 1;
- atexit((void(*)(void))XF86cleanup);
- /* one shot XF86cleanup attempts */
- signal(SIGSEGV, XF86cleanup);
-#ifdef SIGBUS
- signal(SIGBUS, XF86cleanup);
-#endif
- signal(SIGHUP, XF86cleanup);
- signal(SIGFPE, XF86cleanup);
- }
-
- return 1;
-}
-
diff --git a/nx-X11/lib/Xxf86dga/XF86DGA2.c b/nx-X11/lib/Xxf86dga/XF86DGA2.c
deleted file mode 100644
index 533901fca..000000000
--- a/nx-X11/lib/Xxf86dga/XF86DGA2.c
+++ /dev/null
@@ -1,968 +0,0 @@
-/* $XFree86: xc/lib/Xxf86dga/XF86DGA2.c,v 1.23 2003/05/05 20:42:30 tsi Exp $ */
-/*
-
-Copyright (c) 1995 Jon Tombs
-Copyright (c) 1995,1996 The XFree86 Project, Inc
-
-*/
-
-/* THIS IS NOT AN X CONSORTIUM STANDARD */
-
-#ifdef __UNIXOS2__ /* needed here to override certain constants in X headers */
-#define INCL_DOS
-#define INCL_DOSIOCTL
-#define I_NEED_OS2_H
-#include <os2.h>
-#endif
-
-#define NEED_EVENTS
-#define NEED_REPLIES
-#include <X11/Xlibint.h>
-#include <X11/extensions/xf86dga.h>
-#include <X11/extensions/xf86dgastr.h>
-#include <X11/extensions/Xext.h>
-#include <X11/extensions/extutil.h>
-#include <stdio.h>
-
-
-/* If you change this, change the Bases[] array below as well */
-#define MAX_HEADS 16
-
-char *xdga_extension_name = XF86DGANAME;
-
-static XExtensionInfo _xdga_info_data;
-static XExtensionInfo *xdga_info = &_xdga_info_data;
-
-
-Bool XDGAMapFramebuffer(int, char *, unsigned char*, CARD32, CARD32, CARD32);
-void XDGAUnmapFramebuffer(int);
-unsigned char* XDGAGetMappedMemory(int);
-
-#define XDGACheckExtension(dpy,i,val) \
- XextCheckExtension (dpy, i, xdga_extension_name, val)
-
-/*****************************************************************************
- * *
- * private utility routines *
- * *
- *****************************************************************************/
-
-static int xdga_close_display(Display *dpy, XExtCodes *codes);
-static Bool xdga_wire_to_event(Display *dpy, XEvent *event, xEvent *wire_ev);
-static Status xdga_event_to_wire(Display *dpy, XEvent *event, xEvent *wire_ev);
-
-static XExtensionHooks xdga_extension_hooks = {
- NULL, /* create_gc */
- NULL, /* copy_gc */
- NULL, /* flush_gc */
- NULL, /* free_gc */
- NULL, /* create_font */
- NULL, /* free_font */
- xdga_close_display, /* close_display */
- xdga_wire_to_event, /* wire_to_event */
- xdga_event_to_wire, /* event_to_wire */
- NULL, /* error */
- NULL, /* error_string */
-};
-
-static XEXT_GENERATE_CLOSE_DISPLAY (xdga_close_display, xdga_info)
-
-
-XExtDisplayInfo* xdga_find_display(Display*);
-XEXT_GENERATE_FIND_DISPLAY (xdga_find_display, xdga_info,
- "XFree86-DGA",
- &xdga_extension_hooks,
- 0, NULL)
-
-
-static Status
-xdga_event_to_wire(
- Display *dpy,
- XEvent *event,
- xEvent *wire_ev
-){
- return True;
-}
-
-static Bool
-xdga_wire_to_event(
- Display *dpy,
- XEvent *event,
- xEvent *wire_ev
-){
- dgaEvent *wire = (dgaEvent *) wire_ev;
- XDGAButtonEvent *bevent;
- XDGAKeyEvent *kevent;
- XDGAMotionEvent *mevent;
- XExtDisplayInfo *info = xdga_find_display (dpy);
-
- XDGACheckExtension (dpy, info, False);
-
- switch((wire->u.u.type & 0x7f) - info->codes->first_event) {
- case MotionNotify:
- mevent = (XDGAMotionEvent*)event;
- mevent->type = wire->u.u.type & 0x7F;
- mevent->serial = _XSetLastRequestRead(dpy, (xGenericReply *)wire);
- mevent->display = dpy;
- mevent->screen = wire->u.event.screen;
- mevent->time = wire->u.event.time;
- mevent->state = wire->u.event.state;
- mevent->dx = wire->u.event.dx;
- mevent->dy = wire->u.event.dy;
- return True;
- case ButtonPress:
- case ButtonRelease:
- bevent = (XDGAButtonEvent*)event;
- bevent->type = wire->u.u.type & 0x7F;
- bevent->serial = _XSetLastRequestRead(dpy, (xGenericReply *)wire);
- bevent->display = dpy;
- bevent->screen = wire->u.event.screen;
- bevent->time = wire->u.event.time;
- bevent->state = wire->u.event.state;
- bevent->button = wire->u.u.detail;
- return True;
- case KeyPress:
- case KeyRelease:
- kevent = (XDGAKeyEvent*)event;
- kevent->type = wire->u.u.type & 0x7F;
- kevent->serial = _XSetLastRequestRead(dpy, (xGenericReply *)wire);
- kevent->display = dpy;
- kevent->screen = wire->u.event.screen;
- kevent->time = wire->u.event.time;
- kevent->state = wire->u.event.state;
- kevent->keycode = wire->u.u.detail;
- return True;
- }
-
- return False;
-}
-
-
-Bool XDGAQueryExtension (
- Display *dpy,
- int *event_basep,
- int *error_basep
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
-
- if (XextHasExtension(info)) {
- *event_basep = info->codes->first_event;
- *error_basep = info->codes->first_error;
- return True;
- } else {
- return False;
- }
-}
-
-
-Bool XDGAQueryVersion(
- Display *dpy,
- int *majorVersion,
- int *minorVersion
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGAQueryVersionReply rep;
- xXDGAQueryVersionReq *req;
-
- XDGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XDGAQueryVersion, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGAQueryVersion;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- *majorVersion = rep.majorVersion;
- *minorVersion = rep.minorVersion;
- UnlockDisplay(dpy);
- SyncHandle();
- if (*majorVersion >= 2)
- {
- int i, j;
-
- for (i = 0, j = info->codes->first_event;
- i < XF86DGANumberEvents;
- i++, j++)
- {
- XESetWireToEvent (dpy, j, xdga_wire_to_event);
- XESetEventToWire (dpy, j, xdga_event_to_wire);
- }
- XDGASetClientVersion(dpy);
- }
- return True;
-}
-
-Bool XDGASetClientVersion(
- Display *dpy
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGASetClientVersionReq *req;
-
- XDGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XDGASetClientVersion, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGASetClientVersion;
- req->major = XDGA_MAJOR_VERSION;
- req->minor = XDGA_MINOR_VERSION;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XDGAOpenFramebuffer(
- Display *dpy,
- int screen
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGAOpenFramebufferReply rep;
- xXDGAOpenFramebufferReq *req;
- char *deviceName = NULL;
- Bool ret;
-
- XDGACheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XDGAOpenFramebuffer, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGAOpenFramebuffer;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
-
- if(rep.length) {
- deviceName = Xmalloc(rep.length << 2);
- _XRead(dpy, deviceName, rep.length << 2);
- }
-
- ret = XDGAMapFramebuffer(screen, deviceName,
- (unsigned char*)(long)rep.mem1,
- rep.size, rep.offset, rep.extra);
-
- if(deviceName)
- Xfree(deviceName);
-
- UnlockDisplay(dpy);
- SyncHandle();
- return ret;
-}
-
-void XDGACloseFramebuffer(
- Display *dpy,
- int screen
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGACloseFramebufferReq *req;
-
- XextSimpleCheckExtension (dpy, info, xdga_extension_name);
-
- XDGAUnmapFramebuffer(screen);
-
- LockDisplay(dpy);
- GetReq(XDGACloseFramebuffer, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGACloseFramebuffer;
- req->screen = screen;
- UnlockDisplay(dpy);
- SyncHandle();
-}
-
-
-
-XDGAMode* XDGAQueryModes(
- Display *dpy,
- int screen,
- int *num
-){
- XExtDisplayInfo *dinfo = xdga_find_display (dpy);
- xXDGAQueryModesReply rep;
- xXDGAQueryModesReq *req;
- XDGAMode *modes = NULL;
-
- *num = 0;
-
- XDGACheckExtension (dpy, dinfo, NULL);
-
- LockDisplay(dpy);
- GetReq(XDGAQueryModes, req);
- req->reqType = dinfo->codes->major_opcode;
- req->dgaReqType = X_XDGAQueryModes;
- req->screen = screen;
-
- if (_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- if(rep.length) {
- xXDGAModeInfo info;
- int i, size;
- char *offset;
-
- size = rep.length << 2;
- size -= rep.number * sz_xXDGAModeInfo; /* find text size */
- modes = (XDGAMode*)Xmalloc((rep.number * sizeof(XDGAMode)) + size);
- offset = (char*)(&modes[rep.number]); /* start of text */
-
-
- if(modes) {
- for(i = 0; i < rep.number; i++) {
- _XRead(dpy, (char*)(&info), sz_xXDGAModeInfo);
-
- modes[i].num = info.num;
- modes[i].verticalRefresh =
- (float)info.vsync_num / (float)info.vsync_den;
- modes[i].flags = info.flags;
- modes[i].imageWidth = info.image_width;
- modes[i].imageHeight = info.image_height;
- modes[i].pixmapWidth = info.pixmap_width;
- modes[i].pixmapHeight = info.pixmap_height;
- modes[i].bytesPerScanline = info.bytes_per_scanline;
- modes[i].byteOrder = info.byte_order;
- modes[i].depth = info.depth;
- modes[i].bitsPerPixel = info.bpp;
- modes[i].redMask = info.red_mask;
- modes[i].greenMask = info.green_mask;
- modes[i].blueMask = info.blue_mask;
- modes[i].visualClass = info.visual_class;
- modes[i].viewportWidth = info.viewport_width;
- modes[i].viewportHeight = info.viewport_height;
- modes[i].xViewportStep = info.viewport_xstep;
- modes[i].yViewportStep = info.viewport_ystep;
- modes[i].maxViewportX = info.viewport_xmax;
- modes[i].maxViewportY = info.viewport_ymax;
- modes[i].viewportFlags = info.viewport_flags;
- modes[i].reserved1 = info.reserved1;
- modes[i].reserved2 = info.reserved2;
-
- _XRead(dpy, offset, info.name_size);
- modes[i].name = offset;
- offset += info.name_size;
- }
- *num = rep.number;
- } else
- _XEatData(dpy, rep.length << 2);
- }
- }
-
- UnlockDisplay(dpy);
- SyncHandle();
-
- return modes;
-}
-
-
-XDGADevice *
-XDGASetMode(
- Display *dpy,
- int screen,
- int mode
-){
- XExtDisplayInfo *dinfo = xdga_find_display (dpy);
- xXDGASetModeReply rep;
- xXDGASetModeReq *req;
- XDGADevice *dev = NULL;
- Pixmap pid;
-
- XDGACheckExtension (dpy, dinfo, NULL);
-
- LockDisplay(dpy);
- GetReq(XDGASetMode, req);
- req->reqType = dinfo->codes->major_opcode;
- req->dgaReqType = X_XDGASetMode;
- req->screen = screen;
- req->mode = mode;
- req->pid = pid = XAllocID(dpy);
-
- if (_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- if(rep.length) {
- xXDGAModeInfo info;
- int size;
-
- size = rep.length << 2;
- size -= sz_xXDGAModeInfo; /* get text size */
-
- dev = (XDGADevice*)Xmalloc(sizeof(XDGADevice) + size);
-
- if(dev) {
- _XRead(dpy, (char*)(&info), sz_xXDGAModeInfo);
-
- dev->mode.num = info.num;
- dev->mode.verticalRefresh =
- (float)info.vsync_num / (float)info.vsync_den;
- dev->mode.flags = info.flags;
- dev->mode.imageWidth = info.image_width;
- dev->mode.imageHeight = info.image_height;
- dev->mode.pixmapWidth = info.pixmap_width;
- dev->mode.pixmapHeight = info.pixmap_height;
- dev->mode.bytesPerScanline = info.bytes_per_scanline;
- dev->mode.byteOrder = info.byte_order;
- dev->mode.depth = info.depth;
- dev->mode.bitsPerPixel = info.bpp;
- dev->mode.redMask = info.red_mask;
- dev->mode.greenMask = info.green_mask;
- dev->mode.blueMask = info.blue_mask;
- dev->mode.visualClass = info.visual_class;
- dev->mode.viewportWidth = info.viewport_width;
- dev->mode.viewportHeight = info.viewport_height;
- dev->mode.xViewportStep = info.viewport_xstep;
- dev->mode.yViewportStep = info.viewport_ystep;
- dev->mode.maxViewportX = info.viewport_xmax;
- dev->mode.maxViewportY = info.viewport_ymax;
- dev->mode.viewportFlags = info.viewport_flags;
- dev->mode.reserved1 = info.reserved1;
- dev->mode.reserved2 = info.reserved2;
-
- dev->mode.name = (char*)(&dev[1]);
- _XRead(dpy, dev->mode.name, info.name_size);
-
- dev->pixmap = (rep.flags & XDGAPixmap) ? pid : 0;
- dev->data = XDGAGetMappedMemory(screen);
-
- if(dev->data)
- dev->data += rep.offset;
- }
- /* not sure what to do if the allocation fails */
- }
- }
-
- UnlockDisplay(dpy);
- SyncHandle();
-
- return dev;
-}
-
-
-void XDGASetViewport(
- Display *dpy,
- int screen,
- int x,
- int y,
- int flags
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGASetViewportReq *req;
-
- XextSimpleCheckExtension (dpy, info, xdga_extension_name);
-
- LockDisplay(dpy);
- GetReq(XDGASetViewport, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGASetViewport;
- req->screen = screen;
- req->x = x;
- req->y = y;
- req->flags = flags;
- UnlockDisplay(dpy);
- SyncHandle();
-}
-
-
-void XDGAInstallColormap(
- Display *dpy,
- int screen,
- Colormap cmap
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGAInstallColormapReq *req;
-
- XextSimpleCheckExtension (dpy, info, xdga_extension_name);
-
- LockDisplay(dpy);
- GetReq(XDGAInstallColormap, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGAInstallColormap;
- req->screen = screen;
- req->cmap = cmap;
- UnlockDisplay(dpy);
- SyncHandle();
-}
-
-void XDGASelectInput(
- Display *dpy,
- int screen,
- long mask
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGASelectInputReq *req;
-
- XextSimpleCheckExtension (dpy, info, xdga_extension_name);
-
- LockDisplay(dpy);
- GetReq(XDGASelectInput, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGASelectInput;
- req->screen = screen;
- req->mask = mask;
- UnlockDisplay(dpy);
- SyncHandle();
-}
-
-void XDGAFillRectangle(
- Display *dpy,
- int screen,
- int x,
- int y,
- unsigned int width,
- unsigned int height,
- unsigned long color
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGAFillRectangleReq *req;
-
- XextSimpleCheckExtension (dpy, info, xdga_extension_name);
-
- LockDisplay(dpy);
- GetReq(XDGAFillRectangle, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGAFillRectangle;
- req->screen = screen;
- req->x = x;
- req->y = y;
- req->width = width;
- req->height = height;
- req->color = color;
- UnlockDisplay(dpy);
- SyncHandle();
-}
-
-void XDGACopyArea(
- Display *dpy,
- int screen,
- int srcx,
- int srcy,
- unsigned int width,
- unsigned int height,
- int dstx,
- int dsty
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGACopyAreaReq *req;
-
- XextSimpleCheckExtension (dpy, info, xdga_extension_name);
-
- LockDisplay(dpy);
- GetReq(XDGACopyArea, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGACopyArea;
- req->screen = screen;
- req->srcx = srcx;
- req->srcy = srcy;
- req->width = width;
- req->height = height;
- req->dstx = dstx;
- req->dsty = dsty;
- UnlockDisplay(dpy);
- SyncHandle();
-}
-
-void XDGACopyTransparentArea(
- Display *dpy,
- int screen,
- int srcx,
- int srcy,
- unsigned int width,
- unsigned int height,
- int dstx,
- int dsty,
- unsigned long key
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGACopyTransparentAreaReq *req;
-
- XextSimpleCheckExtension (dpy, info, xdga_extension_name);
-
- LockDisplay(dpy);
- GetReq(XDGACopyTransparentArea, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGACopyTransparentArea;
- req->screen = screen;
- req->srcx = srcx;
- req->srcy = srcy;
- req->width = width;
- req->height = height;
- req->dstx = dstx;
- req->dsty = dsty;
- req->key = key;
- UnlockDisplay(dpy);
- SyncHandle();
-}
-
-
-int XDGAGetViewportStatus(
- Display *dpy,
- int screen
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGAGetViewportStatusReply rep;
- xXDGAGetViewportStatusReq *req;
- int status = 0;
-
- XDGACheckExtension (dpy, info, 0);
-
- LockDisplay(dpy);
- GetReq(XDGAGetViewportStatus, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGAGetViewportStatus;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse))
- status = rep.status;
- UnlockDisplay(dpy);
- SyncHandle();
- return status;
-}
-
-void XDGASync(
- Display *dpy,
- int screen
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGASyncReply rep;
- xXDGASyncReq *req;
-
- XextSimpleCheckExtension (dpy, info, xdga_extension_name);
-
- LockDisplay(dpy);
- GetReq(XDGASync, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGASync;
- req->screen = screen;
- _XReply(dpy, (xReply *)&rep, 0, xFalse);
- UnlockDisplay(dpy);
- SyncHandle();
-}
-
-
-void XDGAChangePixmapMode(
- Display *dpy,
- int screen,
- int *x,
- int *y,
- int mode
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGAChangePixmapModeReq *req;
- xXDGAChangePixmapModeReply rep;
-
- XextSimpleCheckExtension (dpy, info, xdga_extension_name);
-
- LockDisplay(dpy);
- GetReq(XDGAChangePixmapMode, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGAChangePixmapMode;
- req->screen = screen;
- req->x = *x;
- req->y = *y;
- req->flags = mode;
- _XReply(dpy, (xReply *)&rep, 0, xFalse);
- *x = rep.x;
- *y = rep.y;
- UnlockDisplay(dpy);
- SyncHandle();
-}
-
-Colormap XDGACreateColormap(
- Display *dpy,
- int screen,
- XDGADevice *dev,
- int alloc
-){
- XExtDisplayInfo *info = xdga_find_display (dpy);
- xXDGACreateColormapReq *req;
- Colormap cid;
-
- XDGACheckExtension (dpy, info, -1);
-
- LockDisplay(dpy);
- GetReq(XDGACreateColormap, req);
- req->reqType = info->codes->major_opcode;
- req->dgaReqType = X_XDGACreateColormap;
- req->screen = screen;
- req->mode = dev->mode.num;
- req->alloc = alloc;
- cid = req->id = XAllocID(dpy);
- UnlockDisplay(dpy);
- SyncHandle();
-
- return cid;
-}
-
-
-void XDGAKeyEventToXKeyEvent(
- XDGAKeyEvent* dk,
- XKeyEvent* xk
-){
- xk->type = dk->type;
- xk->serial = dk->serial;
- xk->send_event = False;
- xk->display = dk->display;
- xk->window = RootWindow(dk->display, dk->screen);
- xk->root = xk->window;
- xk->subwindow = None;
- xk->time = dk->time;
- xk->x = xk->y = xk->x_root = xk->y_root = 0;
- xk->state = dk->state;
- xk->keycode = dk->keycode;
- xk->same_screen = True;
-}
-
-#include <X11/Xmd.h>
-#include <X11/extensions/xf86dga.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <fcntl.h>
-#if defined(ISC)
-# define HAS_SVR3_MMAP
-# include <sys/types.h>
-# include <errno.h>
-
-# include <sys/at_ansi.h>
-# include <sys/kd.h>
-
-# include <sys/sysmacros.h>
-# include <sys/immu.h>
-# include <sys/region.h>
-
-# include <sys/mmap.h>
-#else
-# if defined(Lynx) && defined(NO_MMAP)
-# include <sys/types.h>
-# include <errno.h>
-# include <smem.h>
-# else
-# if !defined(__UNIXOS2__)
-# include <sys/mman.h>
-# endif
-# endif
-#endif
-#include <sys/wait.h>
-#include <signal.h>
-#include <unistd.h>
-
-#if defined(SVR4) && !defined(sun)
-#define DEV_MEM "/dev/pmem"
-#elif defined(SVR4) && defined(sun)
-#define DEV_MEM "/dev/xsvc"
-#elif defined(HAS_APERTURE_DRV)
-#define DEV_MEM "/dev/xf86"
-#else
-#define DEV_MEM "/dev/mem"
-#endif
-
-
-
-typedef struct _DGAMapRec{
- unsigned char *physical;
- unsigned char *virtual;
- CARD32 size;
- int fd;
- int screen;
- struct _DGAMapRec *next;
-} DGAMapRec, *DGAMapPtr;
-
-static Bool
-DGAMapPhysical(int, char*, unsigned char*, CARD32, CARD32, CARD32, DGAMapPtr);
-static void DGAUnmapPhysical(DGAMapPtr);
-
-static DGAMapPtr _Maps = NULL;
-
-
-unsigned char*
-XDGAGetMappedMemory(int screen)
-{
- DGAMapPtr pMap = _Maps;
- unsigned char *pntr = NULL;
-
- while(pMap != NULL) {
- if(pMap->screen == screen) {
- pntr = pMap->virtual;
- break;
- }
- pMap = pMap->next;
- }
-
- return pntr;
-}
-
-Bool
-XDGAMapFramebuffer(
- int screen,
- char *name, /* optional device name */
- unsigned char* base, /* physical memory */
- CARD32 size, /* size */
- CARD32 offset, /* optional offset */
- CARD32 extra /* optional extra data */
-){
- DGAMapPtr pMap = _Maps;
- Bool result;
-
- /* is it already mapped ? */
- while(pMap != NULL) {
- if(pMap->screen == screen)
- return True;
- pMap = pMap->next;
- }
-
- if(extra & XDGANeedRoot) {
- /* we should probably check if we have root permissions and
- return False here */
-
- }
-
- pMap = (DGAMapPtr)Xmalloc(sizeof(DGAMapRec));
-
- result = DGAMapPhysical(screen, name, base, size, offset, extra, pMap);
-
- if(result) {
- pMap->next = _Maps;
- _Maps = pMap;
- } else
- Xfree(pMap);
-
- return result;
-}
-
-void
-XDGAUnmapFramebuffer(int screen)
-{
- DGAMapPtr pMap = _Maps;
- DGAMapPtr pPrev = NULL;
-
- /* is it already mapped */
- while(pMap != NULL) {
- if(pMap->screen == screen)
- break;
- pPrev = pMap;
- pMap = pMap->next;
- }
-
- if(!pMap)
- return;
-
- DGAUnmapPhysical(pMap);
-
- if(!pPrev)
- _Maps = pMap->next;
- else
- pPrev->next = pMap->next;
-
- Xfree(pMap);
-}
-
-
-static Bool
-DGAMapPhysical(
- int screen,
- char *name, /* optional device name */
- unsigned char* base, /* physical memory */
- CARD32 size, /* size */
- CARD32 offset, /* optional offset */
- CARD32 extra, /* optional extra data */
- DGAMapPtr pMap
-) {
-#if defined(ISC) && defined(HAS_SVR3_MMAP)
- struct kd_memloc mloc;
-#elif defined(__UNIXOS2__)
- APIRET rc;
- ULONG action;
- HFILE hfd;
-#endif
-
- base += offset;
-
- pMap->screen = screen;
- pMap->physical = base;
- pMap->size = size;
-
-#if defined(ISC) && defined(HAS_SVR3_MMAP)
- if ((pMap->fd = open("/dev/mmap", O_RDWR)) < 0)
- return False;
- mloc.vaddr = (char *)0;
- mloc.physaddr = (char *)base;
- mloc.length = size;
- mloc.ioflg=1;
-
- if ((pMap->virtual = (void *)ioctl(pMap->fd, MAP, &mloc)) == (void *)-1)
- return False;
-#elif defined (__UNIXOS2__)
- /*
- * Dragon warning here! /dev/pmap$ is never closed, except on progam exit.
- * Consecutive calling of this routine will make PMAP$ driver run out
- * of memory handles. Some umap/close mechanism should be provided
- */
-
- rc = DosOpen("/dev/pmap$", &hfd, &action, 0, FILE_NORMAL, FILE_OPEN,
- OPEN_ACCESS_READWRITE | OPEN_SHARE_DENYNONE, (PEAOP2)NULL);
- if (rc != 0)
- return False;
- {
- struct map_ioctl {
- union {
- ULONG phys;
- void* user;
- } a;
- ULONG size;
- } pmap,dmap;
- ULONG plen,dlen;
-#define XFREE86_PMAP 0x76
-#define PMAP_MAP 0x44
-
- pmap.a.phys = base;
- pmap.size = size;
- rc = DosDevIOCtl(hfd, XFREE86_PMAP, PMAP_MAP,
- (PULONG)&pmap, sizeof(pmap), &plen,
- (PULONG)&dmap, sizeof(dmap), &dlen);
- if (rc == 0) {
- pMap->virtual = dmap.a.user;
- }
- }
- if (rc != 0)
- return False;
-#elif defined (Lynx) && defined(NO_MMAP)
- pMap->virtual = smem_create("XF86DGA", (char*)base, size, SM_READ|SM_WRITE);
-#else
-#ifndef MAP_FILE
-#define MAP_FILE 0
-#endif
- if (!name)
- name = DEV_MEM;
- if ((pMap->fd = open(name, O_RDWR)) < 0)
- return False;
- pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE,
- MAP_FILE | MAP_SHARED, pMap->fd, (off_t)base);
- if (pMap->virtual == (void *)-1)
- return False;
- mprotect(pMap->virtual, size, PROT_READ | PROT_WRITE);
-#endif
-
- return True;
-}
-
-
-
-static void
-DGAUnmapPhysical(DGAMapPtr pMap)
-{
-#if defined(ISC) && defined(HAS_SVR3_MMAP)
- /* XXX Add unmapping code here. */
-#elif defined (__UNIXOS2__)
- /* XXX Add unmapping code here. */
-#elif defined(Lynx) && defined(NO_MMAP)
- /* XXX this doesn't allow enable after disable */
- smem_create(NULL, pMap->virtual, pMap->size, SM_DETACH);
- smem_remove("XF86DGA");
-#else
- if (pMap->virtual && pMap->virtual != (void *)-1) {
- mprotect(pMap->virtual,pMap->size, PROT_READ);
- munmap(pMap->virtual, pMap->size);
- pMap->virtual = 0;
- }
- if (pMap->fd >= 0) {
- close(pMap->fd);
- pMap->fd = -1;
- }
-#endif
-}
diff --git a/nx-X11/lib/Xxf86dga/Xxf86dga-def.cpp b/nx-X11/lib/Xxf86dga/Xxf86dga-def.cpp
deleted file mode 100644
index 2318b39c3..000000000
--- a/nx-X11/lib/Xxf86dga/Xxf86dga-def.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-LIBRARY libXxf86dga
-EXPORTS
- XF86DGAQueryExtension
- XF86DGAQueryDirectVideo
- XF86DGAQueryVersion
- XF86DGAInstallColormap
- XF86DGAGetVideoLL
- XF86DGADirectVideoLL
-; XF86DGAGetViewPort
- XF86DGASetViewPort
- XF86DGAGetVidPage
- XF86DGASetVidPage
- XF86DGADirectVideo
- XF86DGAGetVideo
-
-/* $XFree86$ */
diff --git a/nx-X11/lib/Xxf86misc/Imakefile b/nx-X11/lib/Xxf86misc/Imakefile
deleted file mode 100644
index db46af416..000000000
--- a/nx-X11/lib/Xxf86misc/Imakefile
+++ /dev/null
@@ -1,40 +0,0 @@
-XCOMM $XFree86: xc/lib/Xxf86misc/Imakefile,v 3.3 2002/10/16 00:37:34 dawes Exp $
-XCOMM $XdotOrg: xc/lib/Xxf86misc/Imakefile,v 1.3 2005/05/14 18:35:56 alanc Exp $
-
-#define DoNormalLib NormalLibXxf86misc
-#define DoSharedLib SharedLibXxf86misc
-#define DoExtraLib SharedLibXxf86misc
-#define DoDebugLib DebugLibXxf86misc
-#define DoProfileLib ProfileLibXxf86misc
-#define LibName Xxf86misc
-#define SoRev SOXXF86MISCREV
-#define LibHeaders NO
-
-#include <Threads.tmpl>
-
-#ifdef SharedXxf86miscReqs
-REQUIREDLIBS = SharedXxf86miscReqs
-#endif
-
-XF86MISCSRCS = XF86Misc.c
-XF86MISCOBJS = XF86Misc.o
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
- DEFINES = $(ALLOC_DEFINES)
- SRCS = $(XF86MISCSRCS)
- OBJS = $(XF86MISCOBJS)
- LINTLIBS = $(LINTXLIB)
-
-#define IncludeSharedObjectInNormalLib
-
-#include <Library.tmpl>
-
-InstallGenManPage(XF86Misc,$(LIBMANDIR),$(LIBMANSUFFIX))
-#if ExpandManNames
-InstallGenManPageAliases(XF86Misc,$(LIBMANDIR),$(LIBMANSUFFIX),XF86MiscQueryExtension XF86MiscQueryVersion XF86MiscGetSaver XF86MiscSetSaver XF86MiscGetMouseSettings XF86MiscSetMouseSettings XF86MiscGetKbdSettings XF86MiscSetKbdSettings)
-#endif
-
-DependTarget()
diff --git a/nx-X11/lib/Xxf86misc/XF86Misc.c b/nx-X11/lib/Xxf86misc/XF86Misc.c
deleted file mode 100644
index b0669d527..000000000
--- a/nx-X11/lib/Xxf86misc/XF86Misc.c
+++ /dev/null
@@ -1,406 +0,0 @@
-/* $XFree86: xc/lib/Xxf86misc/XF86Misc.c,v 3.12 2002/11/20 04:04:57 dawes Exp $ */
-
-/*
- * Copyright (c) 1995, 1996 The XFree86 Project, Inc
- */
-
-/* THIS IS NOT AN X CONSORTIUM STANDARD */
-
-#define NEED_EVENTS
-#define NEED_REPLIES
-#include <X11/Xlibint.h>
-#include <X11/extensions/xf86mscstr.h>
-#include <X11/extensions/Xext.h>
-#include <X11/extensions/extutil.h>
-
-static XExtensionInfo _xf86misc_info_data;
-static XExtensionInfo *xf86misc_info = &_xf86misc_info_data;
-static char *xf86misc_extension_name = XF86MISCNAME;
-
-#define XF86MiscCheckExtension(dpy,i,val) \
- XextCheckExtension (dpy, i, xf86misc_extension_name, val)
-
-/*****************************************************************************
- * *
- * private utility routines *
- * *
- *****************************************************************************/
-
-static int close_display(Display *dpy, XExtCodes *codes);
-
-static /* const */ XExtensionHooks xf86misc_extension_hooks = {
- NULL, /* create_gc */
- NULL, /* copy_gc */
- NULL, /* flush_gc */
- NULL, /* free_gc */
- NULL, /* create_font */
- NULL, /* free_font */
- close_display, /* close_display */
- NULL, /* wire_to_event */
- NULL, /* event_to_wire */
- NULL, /* error */
- NULL, /* error_string */
-};
-
-static XEXT_GENERATE_FIND_DISPLAY (find_display, xf86misc_info,
- xf86misc_extension_name,
- &xf86misc_extension_hooks,
- 0, NULL)
-
-static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xf86misc_info)
-
-
-/*****************************************************************************
- * *
- * public XFree86-Misc Extension routines *
- * *
- *****************************************************************************/
-
-Bool XF86MiscQueryExtension (dpy, event_basep, error_basep)
- Display *dpy;
- int *event_basep, *error_basep;
-{
- XExtDisplayInfo *info = find_display (dpy);
-
- if (XextHasExtension(info)) {
- *event_basep = info->codes->first_event;
- *error_basep = info->codes->first_error;
- return True;
- } else {
- return False;
- }
-}
-
-Bool XF86MiscQueryVersion(dpy, majorVersion, minorVersion)
- Display* dpy;
- int* majorVersion;
- int* minorVersion;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86MiscQueryVersionReply rep;
- xXF86MiscQueryVersionReq *req;
-
- XF86MiscCheckExtension (dpy, info, False);
- LockDisplay(dpy);
- GetReq(XF86MiscQueryVersion, req);
- req->reqType = info->codes->major_opcode;
- req->xf86miscReqType = X_XF86MiscQueryVersion;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- *majorVersion = rep.majorVersion;
- *minorVersion = rep.minorVersion;
- UnlockDisplay(dpy);
- SyncHandle();
- if (*majorVersion > 0 || *minorVersion > 5)
- XF86MiscSetClientVersion(dpy);
-
- return True;
-}
-
-Bool
-XF86MiscSetClientVersion(Display *dpy)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86MiscSetClientVersionReq *req;
-
- XF86MiscCheckExtension(dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86MiscSetClientVersion, req);
- req->reqType = info->codes->major_opcode;
- req->xf86miscReqType = X_XF86MiscSetClientVersion;
- req->major = XF86MISC_MAJOR_VERSION;
- req->minor = XF86MISC_MINOR_VERSION;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86MiscGetMouseSettings(dpy, mouseinfo)
- Display* dpy;
- XF86MiscMouseSettings *mouseinfo;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86MiscGetMouseSettingsReply rep;
- xXF86MiscGetMouseSettingsReq *req;
-
- XF86MiscCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86MiscGetMouseSettings, req);
- req->reqType = info->codes->major_opcode;
- req->xf86miscReqType = X_XF86MiscGetMouseSettings;
- if (!_XReply(dpy, (xReply *)&rep,
- (SIZEOF(xXF86MiscGetMouseSettingsReply) - SIZEOF(xReply))>>2,
- xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
-
- mouseinfo->type = rep.mousetype;
- mouseinfo->baudrate = rep.baudrate;
- mouseinfo->samplerate = rep.samplerate;
- mouseinfo->resolution = rep.resolution;
- mouseinfo->buttons = rep.buttons;
- mouseinfo->emulate3buttons = rep.emulate3buttons;
- mouseinfo->emulate3timeout = rep.emulate3timeout;
- mouseinfo->chordmiddle = rep.chordmiddle;
- mouseinfo->flags = rep.flags;
- if (rep.devnamelen > 0) {
- if (!(mouseinfo->device = Xcalloc(rep.devnamelen + 1, 1))) {
- _XEatData(dpy, (rep.devnamelen+3) & ~3);
- Xfree(mouseinfo->device);
- return False;
- }
- _XReadPad(dpy, mouseinfo->device, rep.devnamelen);
- } else
- mouseinfo->device = NULL;
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86MiscGetKbdSettings(dpy, kbdinfo)
- Display* dpy;
- XF86MiscKbdSettings *kbdinfo;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86MiscGetKbdSettingsReply rep;
- xXF86MiscGetKbdSettingsReq *req;
-
- XF86MiscCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86MiscGetKbdSettings, req);
- req->reqType = info->codes->major_opcode;
- req->xf86miscReqType = X_XF86MiscGetKbdSettings;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
-
- kbdinfo->type = rep.kbdtype;
- kbdinfo->rate = rep.rate;
- kbdinfo->delay = rep.delay;
- kbdinfo->servnumlock = rep.servnumlock;
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86MiscSetMouseSettings(dpy, mouseinfo)
- Display* dpy;
- XF86MiscMouseSettings *mouseinfo;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86MiscSetMouseSettingsReq *req;
- int majorVersion, minorVersion;
-
- XF86MiscCheckExtension (dpy, info, False);
- XF86MiscQueryVersion(dpy, &majorVersion, &minorVersion);
-
- LockDisplay(dpy);
- GetReq(XF86MiscSetMouseSettings, req);
-
- req->reqType = info->codes->major_opcode;
- req->xf86miscReqType = X_XF86MiscSetMouseSettings;
- req->mousetype = mouseinfo->type;
- req->baudrate = mouseinfo->baudrate;
- req->samplerate = mouseinfo->samplerate;
- req->resolution = mouseinfo->resolution;
- req->buttons = mouseinfo->buttons;
- req->emulate3buttons = mouseinfo->emulate3buttons;
- req->emulate3timeout = mouseinfo->emulate3timeout;
- req->chordmiddle = mouseinfo->chordmiddle;
- req->flags = mouseinfo->flags;
- if (majorVersion > 0 || minorVersion > 5) {
- int len;
- if ((len = strlen(mouseinfo->device))) {
- req->devnamelen = len + 1;
- len = (req->devnamelen + 3) >> 2;
- SetReqLen(req,len,len);
- Data(dpy, mouseinfo->device, req->devnamelen);
- }
- }
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86MiscSetKbdSettings(dpy, kbdinfo)
- Display* dpy;
- XF86MiscKbdSettings *kbdinfo;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86MiscSetKbdSettingsReq *req;
-
- XF86MiscCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86MiscSetKbdSettings, req);
- req->reqType = info->codes->major_opcode;
- req->xf86miscReqType = X_XF86MiscSetKbdSettings;
- req->kbdtype = kbdinfo->type;
- req->rate = kbdinfo->rate;
- req->delay = kbdinfo->delay;
- req->servnumlock = kbdinfo->servnumlock;
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-int XF86MiscSetGrabKeysState(dpy, enable)
- Display* dpy;
- Bool enable;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86MiscSetGrabKeysStateReply rep;
- xXF86MiscSetGrabKeysStateReq *req;
-
- XF86MiscCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86MiscSetGrabKeysState, req);
- req->reqType = info->codes->major_opcode;
- req->xf86miscReqType = X_XF86MiscSetGrabKeysState;
- req->enable = enable;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return 0;
- }
-
- UnlockDisplay(dpy);
- SyncHandle();
- return rep.status;
-}
-
-Bool XF86MiscGetFilePaths(dpy, filpaths)
- Display* dpy;
- XF86MiscFilePaths *filpaths;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86MiscGetFilePathsReply rep;
- xXF86MiscGetFilePathsReq *req;
-
- XF86MiscCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86MiscGetFilePaths, req);
- req->reqType = info->codes->major_opcode;
- req->xf86miscReqType = X_XF86MiscGetFilePaths;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
-
- if (rep.configlen) {
- if (!(filpaths->configfile = Xcalloc(rep.configlen + 1, 1))) {
- _XEatData(dpy, ((rep.configlen+3) & ~3) + ((rep.modulelen+3) & ~3)
- + ((rep.loglen+3) & ~3));
- return False;
- }
- }
-
- if (rep.modulelen) {
- if (!(filpaths->modulepath = Xcalloc(rep.modulelen + 1, 1))) {
- _XEatData(dpy, ((rep.configlen+3) & ~3) + ((rep.modulelen+3) & ~3)
- + ((rep.loglen+3) & ~3));
- if (filpaths->configfile)
- Xfree(filpaths->configfile);
- return False;
- }
- }
-
- if (rep.loglen) {
- if (!(filpaths->logfile = Xcalloc(rep.loglen + 1, 1))) {
- _XEatData(dpy, ((rep.configlen+3) & ~3) + ((rep.modulelen+3) & ~3)
- + ((rep.loglen+3) & ~3));
- if (filpaths->configfile)
- Xfree(filpaths->configfile);
- if (filpaths->modulepath)
- Xfree(filpaths->modulepath);
- return False;
- }
- }
-
- if (rep.configlen)
- _XReadPad(dpy, filpaths->configfile, rep.configlen);
- else
- filpaths->configfile = "";
-
- if (rep.modulelen)
- _XReadPad(dpy, filpaths->modulepath, rep.modulelen);
- else
- filpaths->modulepath = "";
-
- if (rep.loglen)
- _XReadPad(dpy, filpaths->logfile, rep.loglen);
- else
- filpaths->logfile = "";
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Status XF86MiscPassMessage(dpy, screen, msgtype, msgval, retmsg)
- Display* dpy;
- int screen;
- const char* msgtype;
- const char* msgval;
- char** retmsg;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86MiscPassMessageReply rep;
- xXF86MiscPassMessageReq *req;
- int len;
-
- XF86MiscCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86MiscPassMessage, req);
- req->reqType = info->codes->major_opcode;
- req->xf86miscReqType = X_XF86MiscPassMessage;
- req->screen = screen;
- if ((len = strlen(msgtype))) {
- req->typelen = len + 1;
- len = (req->typelen + 3) >> 2;
- SetReqLen(req,len,len);
- Data(dpy, msgtype, req->typelen);
- }
- if ((len = strlen(msgval))) {
- req->vallen = len + 1;
- len = (req->vallen + 3) >> 2;
- SetReqLen(req,len,len);
- Data(dpy, msgval, req->vallen);
- }
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return BadImplementation;
- }
-
- if (rep.mesglen) {
- if (!(*retmsg = Xcalloc(rep.mesglen + 1, 1))) {
- _XEatData(dpy, ((rep.mesglen+3) & ~3));
- return BadAlloc;
- }
- _XReadPad(dpy, *retmsg, rep.mesglen);
- }
-
- UnlockDisplay(dpy);
- SyncHandle();
- return rep.status;
-}
-
diff --git a/nx-X11/lib/Xxf86misc/XF86Misc.man b/nx-X11/lib/Xxf86misc/XF86Misc.man
deleted file mode 100644
index 2c80dff0b..000000000
--- a/nx-X11/lib/Xxf86misc/XF86Misc.man
+++ /dev/null
@@ -1,217 +0,0 @@
-.\" $XdotOrg: xc/lib/Xxf86misc/XF86Misc.man,v 1.2 2004/04/23 19:23:08 eich Exp $
-.\" $TOG: XF86Misc.man /main/7 1997/07/19 10:30:32 kaleb $
-.\"
-.\"
-.\"
-.\" Copyright (c) 1996 Joe Moss, The XFree86 Project
-.\"
-.\" $XFree86: xc/programs/Xserver/hw/xfree86/doc/man/XF86Misc.man,v 3.12 2002/12/22 00:46:54 dawes Exp $
-.de ZN
-.ie t \fB\^\\$1\^\fR\\$2
-.el \fI\^\\$1\^\fP\\$2
-..
-.TH XF86MISC __libmansuffix__ __vendorversion__ "X FUNCTIONS"
-.SH NAME
-XF86MiscQueryExtension, XF86MiscQueryVersion, XF86MiscGetMouseSettings, XF86MiscSetMouseSettings, XF86MiscGetKbdSettings, XF86MiscSetKbdSettings \- Extension library for the XFree86-Misc X extension.
-.SH SYNTAX
-.nf
-.LP
-\&#include <X11/extensions/xf86misc.h>
-.LP
-Bool XF86MiscQueryExtension(
- Display *\fIdisplay\fP\^,
- int *\fIevent_base_return\fP\^,
- int *\fIerror_base_return\fP\^);
-.LP
-Bool XF86MiscQueryVersion(
- Display *\fIdisplay\fP\^,
- int *\fImajor_version_return\fP\^,
- int *\fIminor_version_return\fP\^);
-.ig
-.LP
-Status XF86MiscGetSaver(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int *\fIsuspend_time_return\fP\^,
- int *\fIoff_time_return\fP\^);
-.LP
-Status XF86MiscSetSaver(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int \fIsuspend_time\fP\^,
- int \fIoff_time\fP\^);
-..
-.LP
-Status XF86MiscGetMouseSettings(
- Display *\fIdisplay\fP\^,
- XF86MiscMouseSettings *\fImseinfo\fP\^);
-.LP
-Status XF86MiscSetMouseSettings(
- Display *\fIdisplay\fP\^,
- XF86MiscMouseSettings *\fImseinfo\fP\^);
-.LP
-Status XF86MiscGetKbdSettings(
- Display *\fIdisplay\fP\^,
- XF86MiscKbdSettings *\fIkbdinfo\fP\^);
-.LP
-Status XF86MiscSetKbdSettings(
- Display *\fIdisplay\fP\^,
- XF86MiscKbdSettings *\fIkbdinfo\fP\^);
-.fi
-.SH ARGUMENTS
-.IP \fIdisplay\fP 2i
-Specifies the connection to the X server.
-.IP \fIscreen\fP 2i
-Specifies which screen number the setting apply to.
-.IP \fIevent_base_return\fP 2i
-Returns the base event number for the extension.
-.IP \fIerror_base_return\fP 2i
-Returns the base error number for the extension.
-.IP \fImajor_version_return\fP 2i
-Returns the major version number of the extension.
-.IP \fIminor_version_return\fP 2i
-Returns the minor version number of the extension.
-.ig
-.IP \fIsuspend_time_return\fP 2i
-Returns the number of seconds of idle time the server
-will wait before activating the monitor's suspend mode.
-.IP \fIoff_time_return\fP 2i
-Returns the number of seconds of idle time the server
-will wait before causing the monitor to powerdown.
-.IP \fIsuspend_time\fP 2i
-Specifies the number of seconds of idle time the server
-should wait before activating the monitor's suspend mode.
-.IP \fIoff_time\fP 2i
-Specifies the number of seconds of idle time the server
-should wait before causing the monitor to powerdown.
-..
-.IP \fImseinfo\fP 2i
-Specifies a structure which contains the mouse parameters.
-.IP \fIkbdinfo\fP 2i
-Specifies a structure which contains the keyboard parameters.
-.SH STRUCTURES
-.nf
-.ta 3i
-\fIMouse:\fP
-typedef struct {
- char *device; /\(** returned path to device */
- int type; /\(** mouse protocol */
- int baudrate; /\(** 1200, 2400, 4800, or 9600 */
- int samplerate; /\(** samples per second */
- int resolution; /\(** resolution, count per inch */
- int buttons; /\(** number of buttons */
- Bool emulate3buttons; /\(** Button1+Button3 -> Button2 ? */
- int emulate3timeout; /\(** in milliseconds */
- Bool chordmiddle; /\(** Button1+Button3 == Button2 ? */
- int flags; /\(** Device open flags */
-} XF86MiscMouseSettings;
-.LP
-\fIKeyboard:\fP
-typedef struct {
- int type; /\(** of keyboard: 84-key, 101-key, Xqueue */
- int rate; /\(** repeat rate */
- int delay; /\(** delay until repeat starts */
- Bool servnumlock; /\(** Server handles NumLock ? */
-} XF86MiscKbdSettings;
-.fi
-.SH DESCRIPTION
-These functions provide an interface to the
-\fIXFree86-Misc\fP extension
-which allows various server settings to be
-queried and changed dynamically.
-Applications that use these functions must be linked with
-.ZN -lXxf86misc
-.SS "POWER-SAVER FUNCTIONS"
-The
-.ZN XF86MiscGetSaver
-and
-.ZN XF86MiscSetSaver
-functions have been removed. This functionality is now provided by
-the DPMS extension.
-.SS "MOUSE FUNCTIONS"
-Mouse parameters can be queried using the function
-.ZN XF86MiscGetMouseSettings .
-The structure pointed to by its second argument is filled in
-with the current mouse settings.
-.PP
-Not all fields are valid in all cases.
-For example, when the protocol indicates a bus mouse (i.e. the
-type field has value
-.ZN MTYPE_BUSMOUSE
-as defined in
-.ZN xf86misc.h ),
-then the value in the
-.ZN baudrate
-field should be ignored as it does not apply to bus mice.
-.PP
-The
-.ZN samplerate
-field contains the resolution in lines per inch when
-using the Hitachi tablet protocol.
-.PP
-The device field of the structure points to dynamically
-allocated storage which should be freed by the caller.
-.PP
-Any of the fields of the structure can be altered and then passed
-to the
-.ZN XF86MiscSetMouseSettings
-function to change their value in the server,
-with the following restrictions:
-.RS 5
-.IP 1) 3
-The device can not be changed
-.IP 2) 3
-The protocol can not be changed to or from Xqueue or OsMouse
-.IP 3) 3
-The buttons field can not be changed
-.IP 4) 3
-Invalid combinations of parameters are not allowed
-.RE
-.PP
-The server will generate an error if any of the above is attempted,
-except the first \- the contents of the device field are simply ignored.
-.PP
-A change of the protocol causes the device to be closed and reopened.
-Changes to the baud rate, sample rate, resolution or flags,
-when applicable to the
-selected protocol, also cause a reopen of the device.
-A reopen can be forced by using the MF_REOPEN flag, except in the
-case of the OsMouse and Xqueue protocols which ignore all attempts
-to reopen the device.
-.SS "KEYBOARD FUNCTIONS"
-The
-.ZN XF86MiscGetKbdSettings
-function allows you to retrieve the current keyboard-related
-settings from the server.
-.PP
-Using the
-.ZN XF86MiscSetKbdSettings
-function, the keyboard autorepeat delay and rate can be set.
-Requests to change the
-.ZN type
-and
-.ZN servnumlock
-fields are ignored (except for checking for an invalid keyboard type).
-This is expected to change in a future release.
-.SS "OTHER FUNCTIONS"
-Two functions,
-.ZN XF86MiscQueryExtension
-and
-.ZN XF86MiscQueryVersion ,
-are provided which allow the client to query some information
-regarding the extension itself.
-.SH PREDEFINED VALUES
-The header file
-.ZN X11/extensions/xf86misc.h
-contains definitions for
-.IP \fBMTYPE_\fP* 1i
-Mouse protocols
-.IP \fBKTYPE_\fP* 1i
-Keyboard types
-.IP \fBMF_\fP* 1i
-Mouse flags
-.SH "SEE ALSO"
-xset(__appmansuffix__), __xconfigfile__(__filemansuffix__)
-.SH AUTHORS
-Joe Moss and David Dawes, The XFree86 Project, Inc.
-
diff --git a/nx-X11/lib/Xxf86misc/Xxf86misc-def.cpp b/nx-X11/lib/Xxf86misc/Xxf86misc-def.cpp
deleted file mode 100644
index 74b1df8e6..000000000
--- a/nx-X11/lib/Xxf86misc/Xxf86misc-def.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-LIBRARY XXF86MISC
-EXPORTS
- XF86MiscQueryExtension
- XF86MiscQueryVersion
- XF86MiscSetKbdSettings
- XF86MiscGetKbdSettings
- XF86MiscSetMouseSettings
- XF86MiscGetMouseSettings
- XF86MiscGetFilePaths
-; XF86MiscSetSaver
-; XF86MiscGetSaver
-
-
-/* $XFree86: xc/lib/Xxf86misc/Xxf86misc-def.cpp,v 1.1 2000/08/09 23:40:14 dawes Exp $ */
diff --git a/nx-X11/lib/Xxf86rush/Imakefile b/nx-X11/lib/Xxf86rush/Imakefile
deleted file mode 100644
index 40eb1dd52..000000000
--- a/nx-X11/lib/Xxf86rush/Imakefile
+++ /dev/null
@@ -1,30 +0,0 @@
-XCOMM $XFree86: xc/lib/Xxf86rush/Imakefile,v 1.1 1999/09/04 09:14:09 dawes Exp $
-#define DoNormalLib NormalLibXxf86rush
-#define DoSharedLib SharedLibXxf86rush
-#define DoDebugLib DebugLibXxf86rush
-#define DoProfileLib ProfileLibXxf86rush
-#define LibName Xxf86rush
-#define SoRev SOXXF86RUSHREV
-#define LibHeaders NO
-
-#include <Threads.tmpl>
-
-#ifdef SharedXxf86rushReqs
-REQUIREDLIBS = SharedXxf86rushReqs
-#endif
-
-XF86RUSHSRCS = XF86Rush.c
-XF86RUSHOBJS = XF86Rush.o
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
- DEFINES = $(ALLOC_DEFINES)
- SRCS = $(XF86RUSHSRCS)
- OBJS = $(XF86RUSHOBJS)
- LINTLIBS = $(LINTXLIB)
-
-#include <Library.tmpl>
-
-DependTarget()
diff --git a/nx-X11/lib/Xxf86rush/XF86Rush.c b/nx-X11/lib/Xxf86rush/XF86Rush.c
deleted file mode 100644
index df3a71de1..000000000
--- a/nx-X11/lib/Xxf86rush/XF86Rush.c
+++ /dev/null
@@ -1,291 +0,0 @@
-/* $XFree86: xc/lib/Xxf86rush/XF86Rush.c,v 1.5 2000/09/26 15:56:59 tsi Exp $ */
-/*
-
-Copyright (c) 1998 Daryll Strauss
-
-*/
-
-/* THIS IS NOT AN X CONSORTIUM STANDARD */
-
-#define NEED_EVENTS
-#define NEED_REPLIES
-#include <X11/Xlibint.h>
-#include <X11/extensions/xf86rushstr.h>
-#include <X11/extensions/Xext.h>
-#include <X11/extensions/extutil.h>
-
-static XExtensionInfo _xf86rush_info_data;
-static XExtensionInfo *xf86rush_info = &_xf86rush_info_data;
-static char *xf86rush_extension_name = XF86RUSHNAME;
-
-#define XF86RushCheckExtension(dpy,i,val) \
- XextCheckExtension (dpy, i, xf86rush_extension_name, val)
-
-/*****************************************************************************
- * *
- * private utility routines *
- * *
- *****************************************************************************/
-
-static int close_display();
-static /* const */ XExtensionHooks xf86rush_extension_hooks = {
- NULL, /* create_gc */
- NULL, /* copy_gc */
- NULL, /* flush_gc */
- NULL, /* free_gc */
- NULL, /* create_font */
- NULL, /* free_font */
- close_display, /* close_display */
- NULL, /* wire_to_event */
- NULL, /* event_to_wire */
- NULL, /* error */
- NULL, /* error_string */
-};
-
-static XEXT_GENERATE_FIND_DISPLAY (find_display, xf86rush_info,
- xf86rush_extension_name,
- &xf86rush_extension_hooks,
- 0, NULL)
-
-static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xf86rush_info)
-
-
-/*****************************************************************************
- * *
- * public XFree86-DGA Extension routines *
- * *
- *****************************************************************************/
-
-Bool XF86RushQueryExtension (Display *dpy, int *event_basep, int *error_basep)
-{
- XExtDisplayInfo *info = find_display (dpy);
-
- if (XextHasExtension(info)) {
- *event_basep = info->codes->first_event;
- *error_basep = info->codes->first_error;
- return True;
- } else {
- return False;
- }
-}
-
-Bool XF86RushQueryVersion(Display *dpy, int *majorVersion, int *minorVersion)
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86RushQueryVersionReply rep;
- xXF86RushQueryVersionReq *req;
-
- XF86RushCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86RushQueryVersion, req);
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushQueryVersion;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- *majorVersion = rep.majorVersion;
- *minorVersion = rep.minorVersion;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86RushLockPixmap(Display *dpy, int screen, Pixmap pixmap, void **addr)
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86RushLockPixmapReply rep;
- xXF86RushLockPixmapReq *req;
-
- XF86RushCheckExtension (dpy, info, False);
- LockDisplay(dpy);
- GetReq(XF86RushLockPixmap, req);
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushLockPixmap;
- req->screen = screen;
- req->pixmap = pixmap;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- if (addr)
- *addr = (void *)(long)rep.addr;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86RushUnlockPixmap(Display *dpy, int screen, Pixmap pixmap)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86RushUnlockPixmapReq *req;
-
- XF86RushCheckExtension (dpy, info, False);
- LockDisplay(dpy);
- GetReq(XF86RushUnlockPixmap, req);
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushUnlockPixmap;
- req->screen=screen;
- req->pixmap=pixmap;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86RushUnlockAllPixmaps(Display *dpy)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86RushUnlockAllPixmapsReq *req;
-
- XF86RushCheckExtension (dpy, info, False);
- LockDisplay(dpy);
- GetReq(XF86RushUnlockAllPixmaps, req);
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushUnlockAllPixmaps;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86RushSetCopyMode(Display *dpy, int screen, int mode)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86RushSetCopyModeReq *req;
-
- XF86RushCheckExtension (dpy, info, False);
- LockDisplay(dpy);
- GetReq(XF86RushSetCopyMode, req);
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushSetCopyMode;
- req->screen = screen;
- req->CopyMode = mode;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86RushSetPixelStride(Display *dpy, int screen, int stride)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86RushSetPixelStrideReq *req;
-
- XF86RushCheckExtension (dpy, info, False);
- LockDisplay(dpy);
- GetReq(XF86RushSetPixelStride, req);
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushSetPixelStride;
- req->screen = screen;
- req->PixelStride = stride;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-int XF86RushOverlayPixmap (Display *dpy, XvPortID port, Drawable d,
- GC gc, Pixmap pixmap, int src_x, int src_y,
- unsigned int src_w, unsigned int src_h,
- int dest_x, int dest_y,
- unsigned int dest_w, unsigned int dest_h,
- unsigned int id)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86RushOverlayPixmapReq *req;
-
- XF86RushCheckExtension (dpy, info, False);
-
- FlushGC(dpy, gc);
-
- LockDisplay(dpy);
- GetReq(XF86RushOverlayPixmap, req);
-
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushOverlayPixmap;
- req->port = port;
- req->drawable = d;
- req->gc = gc->gid;
- req->id = id;
- req->pixmap = pixmap;
- req->src_x = src_x;
- req->src_y = src_y;
- req->src_w = src_w;
- req->src_h = src_h;
- req->drw_x = dest_x;
- req->drw_y = dest_y;
- req->drw_w = dest_w;
- req->drw_h = dest_h;
-
- UnlockDisplay(dpy);
- SyncHandle();
- return Success;
-}
-
-int XF86RushStatusRegOffset (Display *dpy, int screen)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86RushStatusRegOffsetReq *req;
- xXF86RushStatusRegOffsetReply rep;
-
- XF86RushCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86RushStatusRegOffset, req);
-
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushStatusRegOffset;
- req->screen = screen;
-
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
-
- UnlockDisplay(dpy);
- SyncHandle();
- return rep.offset;
-}
-
-Bool XF86RushAT3DEnableRegs (Display *dpy, int screen)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86RushAT3DEnableRegsReq *req;
-
- XF86RushCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86RushAT3DEnableRegs, req);
-
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushAT3DEnableRegs;
- req->screen = screen;
-
- UnlockDisplay(dpy);
- SyncHandle();
- /*
- * The request has to be processed to stay in sync...
- */
- XSync(dpy, False);
- return Success;
-}
-
-Bool XF86RushAT3DDisableRegs (Display *dpy, int screen)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86RushAT3DDisableRegsReq *req;
-
- XF86RushCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86RushAT3DDisableRegs, req);
-
- req->reqType = info->codes->major_opcode;
- req->rushReqType = X_XF86RushAT3DDisableRegs;
- req->screen = screen;
-
- UnlockDisplay(dpy);
- SyncHandle();
- return Success;
-}
diff --git a/nx-X11/lib/Xxf86vm/Imakefile b/nx-X11/lib/Xxf86vm/Imakefile
deleted file mode 100644
index 84a29eb1d..000000000
--- a/nx-X11/lib/Xxf86vm/Imakefile
+++ /dev/null
@@ -1,40 +0,0 @@
-XCOMM $XFree86: xc/lib/Xxf86vm/Imakefile,v 3.3 2002/10/16 00:37:34 dawes Exp $
-XCOMM $XdotOrg: xc/lib/Xxf86vm/Imakefile,v 1.3 2005/05/14 18:35:56 alanc Exp $
-
-#define DoNormalLib NormalLibXxf86vm
-#define DoSharedLib SharedLibXxf86vm
-#define DoExtraLib SharedLibXxf86vm
-#define DoDebugLib DebugLibXxf86vm
-#define DoProfileLib ProfileLibXxf86vm
-#define LibName Xxf86vm
-#define SoRev SOXXF86VMREV
-#define LibHeaders NO
-
-#include <Threads.tmpl>
-
-#ifdef SharedXxf86vmReqs
-REQUIREDLIBS = SharedXxf86vmReqs
-#endif
-
-VIDMODESRCS = XF86VMode.c
-VIDMODEOBJS = XF86VMode.o
-
-#if Malloc0ReturnsNull
-ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
-#endif
-
- DEFINES = $(ALLOC_DEFINES)
- SRCS = $(VIDMODESRCS)
- OBJS = $(VIDMODEOBJS)
- LINTLIBS = $(LINTXLIB)
-
-#define IncludeSharedObjectInNormalLib
-
-#include <Library.tmpl>
-
-InstallGenManPageLong(XF86VM,$(LIBMANDIR),XF86VidMode,$(LIBMANSUFFIX))
-#if ExpandManNames
-InstallGenManPageAliases(XF86VidMode,$(LIBMANDIR),$(LIBMANSUFFIX),XF86VidModeQueryExtension XF86VidModeQueryVersion XF86VidModeGetModeLine XF86VidModeGetAllModeLines XF86VidModeDeleteModeLine XF86VidModeModModeLine XF86VidModeSwitchMode XF86VidModeSwitchToMode XF86VidModeLockModeSwitch XF86VidModeGetMonitor XF86VidModeGetViewPort XF86VidModeSetViewPort XF86VidModeValidateModeLine XF86VidModeSetClientVersion XF86VidModeGetDotClocks XF86VidModeGetGamma XF86VidModeSetGamma XF86VidModeSetGammaRamp XF86VidModeGetGammaRamp XF86VidModeGetGammaRampSize XF86VidModeGetPermissions)
-#endif
-
-DependTarget()
diff --git a/nx-X11/lib/Xxf86vm/XF86VM.man b/nx-X11/lib/Xxf86vm/XF86VM.man
deleted file mode 100644
index 6e53ad158..000000000
--- a/nx-X11/lib/Xxf86vm/XF86VM.man
+++ /dev/null
@@ -1,425 +0,0 @@
-.\" $XdotOrg: xc/lib/Xxf86vm/XF86VM.man,v 1.2 2004/04/23 19:23:08 eich Exp $
-.\" $TOG: XF86VM.man /main/6 1997/07/19 10:30:39 kaleb $
-.\"
-.\"
-.\"
-.\"
-.\" Copyright (c) 1996 Joe Moss, The XFree86 Project
-.\" $XFree86: xc/programs/Xserver/hw/xfree86/doc/man/XF86VM.man,v 3.14 2003/10/02 13:29:56 eich Exp $
-.\"
-.de ZN
-.ie t \fB\^\\$1\^\fR\\$2
-.el \fI\^\\$1\^\fP\\$2
-..
-.TH XF86VIDMODE __libmansuffix__ __vendorversion__
-.SH NAME
-XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions \- Extension libary for the XFree86-VidMode X extension
-.SH SYNTAX
-.nf
-.LP
-\&#include <X11/extensions/xf86vmode.h>
-.LP
-Bool XF86VidModeQueryExtension(
- Display *\fIdisplay\fP\^,
- int *\fIevent_base_return\fP\^,
- int *\fIerror_base_return\fP\^);
-.LP
-Bool XF86VidModeQueryVersion(
- Display *\fIdisplay\fP\^,
- int *\fImajor_version_return\fP\^,
- int *\fIminor_version_return\fP\^);
-.LP
-Bool XF86VidModeSetClientVersion(
- Display *\fIdisplay\fP\^);
-.LP
-Bool XF86VidModeGetModeLine(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int *\fIdotclock_return\fP\^,
- XF86VidModeModeLine *\fImodeline\fP\^);
-.LP
-Bool XF86VidModeGetAllModeLines(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int *\fImodecount_return\fP\^,
- XF86VidModeModeInfo ***\fImodesinfo\fP\^);
-.ig
-.LP
-Bool XF86VidModeAddModeLine(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- XF86VidModeModeInfo *\fImodeline\fP\,
- XF86VidModeModeInfo *\fIaftermode\fP\^);
-..
-.LP
-Bool XF86VidModeDeleteModeLine(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- XF86VidModeModeInfo *\fImodeline\fP\^);
-.LP
-Bool XF86VidModeModModeLine(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- XF86VidModeModeLine *\fImodeline\fP\^);
-.LP
-Status XF86VidModeValidateModeLine(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- XF86VidModeModeLine *\fImodeline\fP\^);
-.LP
-Bool XF86VidModeSwitchMode(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int \fIzoom\fP\^);
-.LP
-Bool XF86VidModeSwitchToMode(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- XF86VidModeModeInfo *\fImodeline\fP\^);
-.LP
-Bool XF86VidModeLockModeSwitch(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int \fIlock\fP\^);
-.LP
-Bool XF86VidModeGetMonitor(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- XF86VidModeMonitor *\fImonitor\fP\^);
-.LP
-Bool XF86VidModeGetViewPort(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int *\fIx_return\fP\^,
- int *\fIy_return\fP\^);
-.LP
-Bool XF86VidModeSetViewPort(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int \fIx\fP\^,
- int \fIy\fP\^);
-.LP
-XF86VidModeGetDotClocks(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int *\fIflags return\fP\^,
- int *\fInumber of clocks return\fP\^,
- int *\fImax dot clock return\fP\^,
- int **\fIclocks return\fP\^);
-.LP
-XF86VidModeGetGamma(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- XF86VidModeGamma *\fIGamma\fP\^);
-.LP
-XF86VidModeSetGamma(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- XF86VidModeGamma *\fIGamma\fP\^);
-.LP
-XF86VidModeGetGammaRamp(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int \fIsize\fP\^,
- unsigned short *\fIred array\fP\^,
- unsigned short *\fIgreen array\fP\^,
- unsigned short *\fIblue array\fP\^);
-.LP
-XF86VidModeSetGammaRamp(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int \fIsize\fP\^,
- unsigned short *\fIred array\fP\^,
- unsigned short *\fIgreen array\fP\^,
- unsigned short *\fIblue array\fP\^);
-.LP
-XF86VidModeGetGammaRampSize(
- Display *\fIdisplay\fP\^,
- int \fIscreen\fP\^,
- int *\fIsize\fP\^);
-.fi
-.SH ARGUMENTS
-.IP \fIdisplay\fP 2i
-Specifies the connection to the X server.
-.IP \fIscreen\fP 2i
-Specifies which screen number the setting apply to.
-.IP \fIevent_base_return\fP 2i
-Returns the base event number for the extension.
-.IP \fIerror_base_return\fP 2i
-Returns the base error number for the extension.
-.IP \fImajor_version_return\fP 2i
-Returns the major version number of the extension.
-.IP \fIminor_version_return\fP 2i
-Returns the minor version number of the extension.
-.IP \fIdotclock_return\fP 2i
-Returns the clock for the mode line.
-.IP \fImodecount_return\fP 2i
-Returns the number of video modes available in the server.
-.IP \fIzoom\fP 2i
-If greater than zero, indicates that the server should switch to
-the next mode, otherwise switch to the previous mode.
-.IP \fIlock\fP 2i
-Indicates that mode switching should be locked, if non-zero.
-.IP \fImodeline\fP 2i
-Specifies or returns the timing values for a video mode.
-.ig
-.IP \fIaftermode\fP 2i
-Specifies the timing values for the video mode after which the
-new mode will added.
-..
-.IP \fImodesinfo\fP 2i
-Returns the timing values and dotclocks for all of the available
-video modes.
-.IP \fImonitor\fP 2i
-Returns information about the monitor.
-.IP \fIx\fP 2i
-Specifies the desired X location for the viewport.
-.IP \fIx_return\fP 2i
-Returns the current X location of the viewport.
-.IP \fIy\fP 2i
-Specifies the desired Y location for the viewport.
-.IP \fIy_return\fP 2i
-Returns the current Y location of the viewport.
-.SH STRUCTURES
-.nf
-.ta 2.25i 3.5i
-\fIVideo Mode Settings:\fP
-typedef struct {
- unsigned short hdisplay; /\(** Number of display pixels horizontally */
- unsigned short hsyncstart; /\(** Horizontal sync start */
- unsigned short hsyncend; /\(** Horizontal sync end */
- unsigned short htotal; /\(** Total horizontal pixels */
- unsigned short vdisplay; /\(** Number of display pixels vertically */
- unsigned short vsyncstart; /\(** Vertical sync start */
- unsigned short vsyncend; /\(** Vertical sync start */
- unsigned short vtotal; /\(** Total vertical pixels */
- unsigned int flags; /\(** Mode flags */
- int privsize; /\(** Size of private */
- INT32 *private; /\(** Server privates */
-} XF86VidModeModeLine;
-.sp
-typedef struct {
- unsigned int dotclock; /\(** Pixel clock */
- unsigned short hdisplay; /\(** Number of display pixels horizontally */
- unsigned short hsyncstart; /\(** Horizontal sync start */
- unsigned short hsyncend; /\(** Horizontal sync end */
- unsigned short htotal; /\(** Total horizontal pixels */
- unsigned short vdisplay; /\(** Number of display pixels vertically */
- unsigned short vsyncstart; /\(** Vertical sync start */
- unsigned short vsyncend; /\(** Vertical sync start */
- unsigned short vtotal; /\(** Total vertical pixels */
- unsigned int flags; /\(** Mode flags */
- int privsize; /\(** Size of private */
- INT32 *private; /\(** Server privates */
-} XF86VidModeModeInfo;
-.LP
-\fIMonitor information:\fP
-typedef struct {
- char* vendor; /\(** Name of manufacturer */
- char* model; /\(** Model name */
- float EMPTY; /\(** unused, for backward compatibility */
- unsigned char nhsync; /\(** Number of horiz sync ranges */
- XF86VidModeSyncRange* hsync; /\(** Horizontal sync ranges */
- unsigned char nvsync; /\(** Number of vert sync ranges */
- XF86VidModeSyncRange* vsync; /\(** Vertical sync ranges */
-} XF86VidModeMonitor;
-.sp
-typedef struct {
- float hi; /\(** Top of range */
- float lo; /\(** Bottom of range */
-} XF86VidModeSyncRange;
-.LP
-typedef struct {
- int type; /\(** of event */
- unsigned long serial; /\(** # of last request processed by server */
- Bool send_event; /\(** true if this came from a SendEvent req */
- Display *display; /\(** Display the event was read from */
- Window root; /\(** root window of event screen */
- int state; /\(** What happened */
- int kind; /\(** What happened */
- Bool forced; /\(** extents of new region */
- Time time; /\(** event timestamp */
-} XF86VidModeNotifyEvent;
-.LP
-typedef struct {
- float red; /\(** Red Gamma value */
- float green; /\(** Green Gamma value */
- float blue; /\(** Blue Gamma value */
-} XF86VidModeGamma;
-.fi
-.SH DESCRIPTION
-These functions provide an interface to the server extension
-\fIXFree86-VidModeExtension\fP
-which allows the video modes to be
-queried and adjusted dynamically and mode switching to be controlled.
-Applications that use these functions must be linked with
-.ZN -lXxf86vm
-.SS "MODELINE FUNCTIONS"
-The
-.ZN XF86VidModeGetModeLine
-function is used to query the settings for the currently selected
-video mode. The calling program should pass a pointer to a
-.ZN XF86VidModeModeLine
-structure that it has already allocated. The function fills in
-the fields of the structure.
-.PP
-If there are any server private values (currently only applicable to
-the S3 server) the function will allocate storage for them.
-Therefore, if the
-.ZN privsize
-field is non-zero, the calling program should call
-.ZN Xfree(private)
-to free the storage.
-.PP
-.ZN XF86VidModeGetAllModeLines
-returns the settings for all video modes.
-The calling program supplies the address of a pointer which will be
-set by the function to point to an array of
-.ZN XF86VidModeModeInfo
-structures. The memory occupied by the array is dynamically allocated
-by the
-.ZN XF86VidModeGetAllModeLines
-function and should be freed by the caller.
-The first element of the array corresponds to the current video mode.
-.PP
-The
-.ZN XF86VidModeModModeLine
-function can be used to change the settings of the current video mode
-provided the requested settings are valid (e.g. they don't exceed the
-capabilities of the monitor).
-.PP
-.ig
-To add a mode to the list of available modes, the
-.ZN XF86VidModeAddModeLine
-function can be used.
-Assuming the settings are valid, the video mode will be added after
-the existing mode which matches the timings specified by the
-.ZN aftermode
-parameter.
-To be considered a match, all of the fields of the given
-.ZN XF86VidModeModeInfo
-structure must match, except the
-.ZN privsize
-and
-.ZN private
-fields.
-If the
-.ZN aftermode
-parameter is zero, the mode will be added
-after the current mode.
-.PP
-..
-Modes can be deleted with the
-.ZN XF86VidModeDeleteModeLine
-function. The specified mode must match an existing mode.
-To be considered a match, all of the fields of the given
-.ZN XF86VidModeModeInfo
-structure must match, except the
-.ZN privsize
-and
-.ZN private
-fields.
-If the mode to be deleted is the current mode, a mode switch
-to the next mode will occur first. The last remaining mode can not
-be deleted.
-.PP
-The validity of a mode can be checked with the
-.ZN XF86VidModeValidateModeLine
-function.
-If the specified mode can be used by the server (i.e. meets all the
-constraints placed upon a mode by the combination of the server, card,
-and monitor) the function returns
-.ZN MODE_OK ,
-otherwise it returns a value indicating the reason why the mode is
-invalid (as defined in \fIxf86.h\fP)
-.SS "MODE SWITCH FUNCTIONS"
-When the function
-.ZN XF86VidModeSwitchMode
-is called, the server will change the video mode to next (or previous)
-video mode. The
-.ZN XF86VidModeSwitchToMode
-function can be used to switch directly to the specified mode.
-Matching is as specified in the description of the
-.ZN XF86VidModeAddModeLine
-function above.
-The
-.ZN XF86VidModeLockModeSwitch
-function can be used to allow or disallow mode switching whether
-the request to switch modes comes from a call to the
-.ZN XF86VidModeSwitchMode
-or
-.ZN XF86VidModeSwitchToMode
-functions or from one of the mode switch key sequences.
-.PP
-.RB Note:
-Because of the asynchronous nature of the X protocol, a call to
-.ZN XFlush
-is needed if the application wants to see the mode change immediately.
-To be informed of the execution status of the request, a
-custom error handler should be installed using
-.ZN XSetErrorHandler
-before calling the mode switching function.
-.SS "MONITOR FUNCTIONS"
-Information known to the server about the monitor is returned by the
-.ZN XF86VidModeGetMonitor
-function. The
-.ZN hsync
-and
-.ZN vsync
-fields each point to an array of
-.ZN XF86VidModeSyncRange
-structures. The arrays contain
-.ZN nhsync
-and
-.ZN nvsync
-elements, respectively.
-The
-.ZN hi
-and
-.ZN low
-values will be equal if a discreate value was given in the
-.ZN XF86Config
-file.
-.PP
-The
-.ZN vendor ,
-.ZN model ,
-.ZN hsync ,
-and
-.ZN vsync
-fields point to dynamically allocated storage that should be freed
-by the caller.
-.SS "VIEWPORT FUNCTIONS"
-The
-.ZN XF86VidModeGetViewPort
-and
-.ZN XF86VidModeSetViewPort
-functions can be used to, respectively, query and change the location
-of the upper left corner of the viewport into the virtual screen.
-.SS "OTHER FUNCTIONS"
-The
-.ZN XF86VidModeQueryVersion
-function can be used to determine the version of the extension
-built into the server.
-.PP
-The function
-.ZN XF86VidModeQueryExtension
-returns the lowest numbered error and event values
-assigned to the extension.
-.SH BUGS
-The
-XF86VidModeSetClientVersion,
-XF86VidModeGetDotClocks,
-XF86VidModeGetGamma,
-XF86VidModeSetGamma,
-XF86VidModeSetGammaRamp,
-XF86VidModeGetGammaRamp,
-XF86VidModeGetGammaRampSize,
-and
-XF86VidModeGetPermissions
-functions need to be documented. In the meantime, check the source
-code for information about how to use them.
-.SH SEE ALSO
-__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), XFlush(__libmansuffix__), XSetErrorHandler(__libmansuffix__), xvidtune(__appmansuffix__)
-.SH AUTHORS
-Kaleb Keithley, Jon Tombs, David Dawes, and Joe Moss
diff --git a/nx-X11/lib/Xxf86vm/XF86VMode.c b/nx-X11/lib/Xxf86vm/XF86VMode.c
deleted file mode 100644
index edff93fe5..000000000
--- a/nx-X11/lib/Xxf86vm/XF86VMode.c
+++ /dev/null
@@ -1,1231 +0,0 @@
-/* $XConsortium: XF86VMode.c /main/2 1995/11/14 18:17:58 kaleb $ */
-/* $XFree86: xc/lib/Xxf86vm/XF86VMode.c,v 3.33 2002/10/16 00:37:34 dawes Exp $ */
-/*
-
-Copyright (c) 1995 Kaleb S. KEITHLEY
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES
-OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-Except as contained in this notice, the name of Kaleb S. KEITHLEY
-shall not be used in advertising or otherwise to promote the sale, use
-or other dealings in this Software without prior written authorization
-from Kaleb S. KEITHLEY.
-
-*/
-/* $XConsortium: XF86VMode.c /main/4 1996/01/16 07:52:25 kaleb CHECKEDOUT $ */
-
-/* THIS IS NOT AN X CONSORTIUM STANDARD */
-
-#define NEED_EVENTS
-#define NEED_REPLIES
-#include <X11/Xlibint.h>
-#include <X11/extensions/xf86vmstr.h>
-#include <X11/extensions/Xext.h>
-#include <X11/extensions/extutil.h>
-
-#ifdef DEBUG
-#include <stdio.h>
-#endif
-
-#ifndef MODE_BAD
-#define MODE_BAD 255
-#endif
-
-static XExtensionInfo _xf86vidmode_info_data;
-static XExtensionInfo *xf86vidmode_info = &_xf86vidmode_info_data;
-static char *xf86vidmode_extension_name = XF86VIDMODENAME;
-
-#define XF86VidModeCheckExtension(dpy,i,val) \
- XextCheckExtension (dpy, i, xf86vidmode_extension_name, val)
-
-/*****************************************************************************
- * *
- * private utility routines *
- * *
- *****************************************************************************/
-
-static XEXT_CLOSE_DISPLAY_PROTO(close_display);
-static /* const */ XExtensionHooks xf86vidmode_extension_hooks = {
- NULL, /* create_gc */
- NULL, /* copy_gc */
- NULL, /* flush_gc */
- NULL, /* free_gc */
- NULL, /* create_font */
- NULL, /* free_font */
- close_display, /* close_display */
- NULL, /* wire_to_event */
- NULL, /* event_to_wire */
- NULL, /* error */
- NULL, /* error_string */
-};
-
-static XEXT_GENERATE_FIND_DISPLAY (find_display, xf86vidmode_info,
- xf86vidmode_extension_name,
- &xf86vidmode_extension_hooks,
- 0, NULL)
-
-static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xf86vidmode_info)
-
-
-/*****************************************************************************
- * *
- * public XFree86-VidMode Extension routines *
- * *
- *****************************************************************************/
-
-Bool
-XF86VidModeQueryExtension (dpy, event_basep, error_basep)
- Display *dpy;
- int *event_basep, *error_basep;
-{
- XExtDisplayInfo *info = find_display (dpy);
-
- if (XextHasExtension(info)) {
- *event_basep = info->codes->first_event;
- *error_basep = info->codes->first_error;
- return True;
- } else {
- return False;
- }
-}
-
-Bool
-XF86VidModeQueryVersion(dpy, majorVersion, minorVersion)
- Display* dpy;
- int* majorVersion;
- int* minorVersion;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeQueryVersionReply rep;
- xXF86VidModeQueryVersionReq *req;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeQueryVersion, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeQueryVersion;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- *majorVersion = rep.majorVersion;
- *minorVersion = rep.minorVersion;
- UnlockDisplay(dpy);
- SyncHandle();
- if (*majorVersion >= 2)
- XF86VidModeSetClientVersion(dpy);
- return True;
-}
-
-Bool
-XF86VidModeSetClientVersion(Display *dpy)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86VidModeSetClientVersionReq *req;
-
- XF86VidModeCheckExtension(dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeSetClientVersion, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeSetClientVersion;
- req->major = XF86VIDMODE_MAJOR_VERSION;
- req->minor = XF86VIDMODE_MINOR_VERSION;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeSetGamma(Display *dpy, int screen, XF86VidModeGamma *Gamma)
-{
- XExtDisplayInfo *info = find_display(dpy);
- xXF86VidModeSetGammaReq *req;
-
- XF86VidModeCheckExtension(dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeSetGamma, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeSetGamma;
- req->screen = screen;
- req->red = (CARD32)(Gamma->red * 10000.);
- req->green = (CARD32)(Gamma->green * 10000.);
- req->blue = (CARD32)(Gamma->blue * 10000.);
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeGetGamma(Display *dpy, int screen, XF86VidModeGamma *Gamma)
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeGetGammaReply rep;
- xXF86VidModeGetGammaReq *req;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeGetGamma, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeGetGamma;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- Gamma->red = ((float)rep.red) / 10000.;
- Gamma->green = ((float)rep.green) / 10000.;
- Gamma->blue = ((float)rep.blue) / 10000.;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeGetModeLine(dpy, screen, dotclock, modeline)
- Display* dpy;
- int screen;
- int* dotclock;
- XF86VidModeModeLine* modeline;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeGetModeLineReply rep;
- xXF86OldVidModeGetModeLineReply oldrep;
- xXF86VidModeGetModeLineReq *req;
- int majorVersion, minorVersion;
-
- XF86VidModeCheckExtension (dpy, info, False);
- XF86VidModeQueryVersion(dpy, &majorVersion, &minorVersion);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeGetModeLine, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeGetModeLine;
- req->screen = screen;
-
- if (majorVersion < 2) {
- if (!_XReply(dpy, (xReply *)&oldrep,
- (SIZEOF(xXF86OldVidModeGetModeLineReply) - SIZEOF(xReply)) >> 2, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- *dotclock = oldrep.dotclock;
- modeline->hdisplay = oldrep.hdisplay;
- modeline->hsyncstart = oldrep.hsyncstart;
- modeline->hsyncend = oldrep.hsyncend;
- modeline->htotal = oldrep.htotal;
- modeline->hskew = 0;
- modeline->vdisplay = oldrep.vdisplay;
- modeline->vsyncstart = oldrep.vsyncstart;
- modeline->vsyncend = oldrep.vsyncend;
- modeline->vtotal = oldrep.vtotal;
- modeline->flags = oldrep.flags;
- modeline->privsize = oldrep.privsize;
- } else {
- if (!_XReply(dpy, (xReply *)&rep,
- (SIZEOF(xXF86VidModeGetModeLineReply) - SIZEOF(xReply)) >> 2, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- *dotclock = rep.dotclock;
- modeline->hdisplay = rep.hdisplay;
- modeline->hsyncstart = rep.hsyncstart;
- modeline->hsyncend = rep.hsyncend;
- modeline->htotal = rep.htotal;
- modeline->hskew = rep.hskew;
- modeline->vdisplay = rep.vdisplay;
- modeline->vsyncstart = rep.vsyncstart;
- modeline->vsyncend = rep.vsyncend;
- modeline->vtotal = rep.vtotal;
- modeline->flags = rep.flags;
- modeline->privsize = rep.privsize;
- }
-
- if (modeline->privsize > 0) {
- if (!(modeline->private = Xcalloc(modeline->privsize, sizeof(INT32)))) {
- _XEatData(dpy, (modeline->privsize) * sizeof(INT32));
- Xfree(modeline->private);
- return False;
- }
- _XRead(dpy, (char*)modeline->private, modeline->privsize * sizeof(INT32));
- } else {
- modeline->private = NULL;
- }
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeGetAllModeLines(dpy, screen, modecount, modelinesPtr)
- Display* dpy;
- int screen;
- int* modecount;
- XF86VidModeModeInfo ***modelinesPtr;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeGetAllModeLinesReply rep;
- xXF86VidModeGetAllModeLinesReq *req;
- XF86VidModeModeInfo *mdinfptr, **modelines;
- xXF86VidModeModeInfo xmdline;
- xXF86OldVidModeModeInfo oldxmdline;
- int i;
- int majorVersion, minorVersion;
- Bool protocolBug = False;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- /*
- * Note: There was a bug in the protocol implementation in versions
- * 0.x with x < 8 (the .private field wasn't being passed over the wire).
- * Check the server's version, and accept the old format if appropriate.
- */
-
- XF86VidModeQueryVersion(dpy, &majorVersion, &minorVersion);
- if (majorVersion == 0 && minorVersion < 8) {
- protocolBug = True;
-#ifdef DEBUG
- fprintf(stderr, "XF86VidModeGetAllModeLines: Warning: Xserver is"
- "running an old version (%d.%d)\n", majorVersion,
- minorVersion);
-#endif
- }
-
- LockDisplay(dpy);
- GetReq(XF86VidModeGetAllModeLines, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeGetAllModeLines;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep,
- (SIZEOF(xXF86VidModeGetAllModeLinesReply) - SIZEOF(xReply)) >> 2, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
-
- *modecount = rep.modecount;
-
- if (!(modelines = (XF86VidModeModeInfo **) Xcalloc(rep.modecount,
- sizeof(XF86VidModeModeInfo *)
- +sizeof(XF86VidModeModeInfo)))) {
- if (majorVersion < 2)
- _XEatData(dpy, (rep.modecount) * sizeof(xXF86OldVidModeModeInfo));
- else
- _XEatData(dpy, (rep.modecount) * sizeof(xXF86VidModeModeInfo));
- Xfree(modelines);
- return False;
- }
- mdinfptr = (XF86VidModeModeInfo *) (
- (char *) modelines
- + rep.modecount*sizeof(XF86VidModeModeInfo *)
- );
-
- for (i = 0; i < rep.modecount; i++) {
- modelines[i] = mdinfptr++;
- if (majorVersion < 2) {
- _XRead(dpy, (char*)&oldxmdline, sizeof(xXF86OldVidModeModeInfo));
- modelines[i]->dotclock = oldxmdline.dotclock;
- modelines[i]->hdisplay = oldxmdline.hdisplay;
- modelines[i]->hsyncstart = oldxmdline.hsyncstart;
- modelines[i]->hsyncend = oldxmdline.hsyncend;
- modelines[i]->htotal = oldxmdline.htotal;
- modelines[i]->hskew = 0;
- modelines[i]->vdisplay = oldxmdline.vdisplay;
- modelines[i]->vsyncstart = oldxmdline.vsyncstart;
- modelines[i]->vsyncend = oldxmdline.vsyncend;
- modelines[i]->vtotal = oldxmdline.vtotal;
- modelines[i]->flags = oldxmdline.flags;
- if (protocolBug) {
- modelines[i]->privsize = 0;
- modelines[i]->private = NULL;
- } else {
- modelines[i]->privsize = oldxmdline.privsize;
- if (oldxmdline.privsize > 0) {
- if (!(modelines[i]->private =
- Xcalloc(oldxmdline.privsize, sizeof(INT32)))) {
- _XEatData(dpy, (oldxmdline.privsize) * sizeof(INT32));
- Xfree(modelines[i]->private);
- } else {
- _XRead(dpy, (char*)modelines[i]->private,
- oldxmdline.privsize * sizeof(INT32));
- }
- } else {
- modelines[i]->private = NULL;
- }
- }
- } else {
- _XRead(dpy, (char*)&xmdline, sizeof(xXF86VidModeModeInfo));
- modelines[i]->dotclock = xmdline.dotclock;
- modelines[i]->hdisplay = xmdline.hdisplay;
- modelines[i]->hsyncstart = xmdline.hsyncstart;
- modelines[i]->hsyncend = xmdline.hsyncend;
- modelines[i]->htotal = xmdline.htotal;
- modelines[i]->hskew = xmdline.hskew;
- modelines[i]->vdisplay = xmdline.vdisplay;
- modelines[i]->vsyncstart = xmdline.vsyncstart;
- modelines[i]->vsyncend = xmdline.vsyncend;
- modelines[i]->vtotal = xmdline.vtotal;
- modelines[i]->flags = xmdline.flags;
- if (protocolBug) {
- modelines[i]->privsize = 0;
- modelines[i]->private = NULL;
- } else {
- modelines[i]->privsize = xmdline.privsize;
- if (xmdline.privsize > 0) {
- if (!(modelines[i]->private =
- Xcalloc(xmdline.privsize, sizeof(INT32)))) {
- _XEatData(dpy, (xmdline.privsize) * sizeof(INT32));
- Xfree(modelines[i]->private);
- } else {
- _XRead(dpy, (char*)modelines[i]->private,
- xmdline.privsize * sizeof(INT32));
- }
- } else {
- modelines[i]->private = NULL;
- }
- }
- }
- }
- *modelinesPtr = modelines;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-/*
- * GetReq replacement for use with VidMode protocols earlier than 2.0
- */
-#if !defined(UNIXCPP) || defined(ANSICPP)
-#define GetOldReq(name, oldname, req) \
- if ((dpy->bufptr + SIZEOF(x##oldname##Req)) > dpy->bufmax)\
- _XFlush(dpy);\
- req = (x##oldname##Req *)(dpy->last_req = dpy->bufptr);\
- req->reqType = X_##name;\
- req->length = (SIZEOF(x##oldname##Req))>>2;\
- dpy->bufptr += SIZEOF(x##oldname##Req);\
- dpy->request++
-
-#else /* non-ANSI C uses empty comment instead of "##" for token concatenation */
-#define GetOldReq(name, oldname, req) \
- if ((dpy->bufptr + SIZEOF(x/**/oldname/**/Req)) > dpy->bufmax)\
- _XFlush(dpy);\
- req = (x/**/oldname/**/Req *)(dpy->last_req = dpy->bufptr);\
- req->reqType = X_/**/name;\
- req->length = (SIZEOF(x/**/oldname/**/Req))>>2;\
- dpy->bufptr += SIZEOF(x/**/oldname/**/Req);\
- dpy->request++
-#endif
-
-Bool
-XF86VidModeAddModeLine (dpy, screen, newmodeline, aftermodeline)
- Display *dpy;
- int screen;
- XF86VidModeModeInfo* newmodeline;
- XF86VidModeModeInfo* aftermodeline;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeAddModeLineReq *req;
- xXF86OldVidModeAddModeLineReq *oldreq;
- int majorVersion, minorVersion;
-
- XF86VidModeCheckExtension (dpy, info, False);
- XF86VidModeQueryVersion(dpy, &majorVersion, &minorVersion);
-
- LockDisplay(dpy);
- if (majorVersion < 2) {
- GetOldReq(XF86VidModeAddModeLine, XF86OldVidModeAddModeLine, oldreq);
- oldreq->reqType = info->codes->major_opcode;
- oldreq->xf86vidmodeReqType = X_XF86VidModeAddModeLine;
- oldreq->screen = screen;
- oldreq->dotclock = newmodeline->dotclock;
- oldreq->hdisplay = newmodeline->hdisplay;
- oldreq->hsyncstart = newmodeline->hsyncstart;
- oldreq->hsyncend = newmodeline->hsyncend;
- oldreq->htotal = newmodeline->htotal;
- oldreq->vdisplay = newmodeline->vdisplay;
- oldreq->vsyncstart = newmodeline->vsyncstart;
- oldreq->vsyncend = newmodeline->vsyncend;
- oldreq->vtotal = newmodeline->vtotal;
- oldreq->flags = newmodeline->flags;
- oldreq->privsize = newmodeline->privsize;
- if (aftermodeline != NULL) {
- oldreq->after_dotclock = aftermodeline->dotclock;
- oldreq->after_hdisplay = aftermodeline->hdisplay;
- oldreq->after_hsyncstart = aftermodeline->hsyncstart;
- oldreq->after_hsyncend = aftermodeline->hsyncend;
- oldreq->after_htotal = aftermodeline->htotal;
- oldreq->after_vdisplay = aftermodeline->vdisplay;
- oldreq->after_vsyncstart = aftermodeline->vsyncstart;
- oldreq->after_vsyncend = aftermodeline->vsyncend;
- oldreq->after_vtotal = aftermodeline->vtotal;
- oldreq->after_flags = aftermodeline->flags;
- } else {
- oldreq->after_dotclock = 0;
- oldreq->after_hdisplay = 0;
- oldreq->after_hsyncstart = 0;
- oldreq->after_hsyncend = 0;
- oldreq->after_htotal = 0;
- oldreq->after_vdisplay = 0;
- oldreq->after_vsyncstart = 0;
- oldreq->after_vsyncend = 0;
- oldreq->after_vtotal = 0;
- oldreq->after_flags = 0;
- }
- if (newmodeline->privsize) {
- oldreq->length += newmodeline->privsize;
- Data32(dpy, (long *) newmodeline->private,
- newmodeline->privsize * sizeof(INT32));
- }
- } else {
- GetReq(XF86VidModeAddModeLine, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeAddModeLine;
- req->screen = screen;
- req->dotclock = newmodeline->dotclock;
- req->hdisplay = newmodeline->hdisplay;
- req->hsyncstart = newmodeline->hsyncstart;
- req->hsyncend = newmodeline->hsyncend;
- req->htotal = newmodeline->htotal;
- req->hskew = newmodeline->hskew;
- req->vdisplay = newmodeline->vdisplay;
- req->vsyncstart = newmodeline->vsyncstart;
- req->vsyncend = newmodeline->vsyncend;
- req->vtotal = newmodeline->vtotal;
- req->flags = newmodeline->flags;
- req->privsize = newmodeline->privsize;
- if (aftermodeline != NULL) {
- req->after_dotclock = aftermodeline->dotclock;
- req->after_hdisplay = aftermodeline->hdisplay;
- req->after_hsyncstart = aftermodeline->hsyncstart;
- req->after_hsyncend = aftermodeline->hsyncend;
- req->after_htotal = aftermodeline->htotal;
- req->after_hskew = aftermodeline->hskew;
- req->after_vdisplay = aftermodeline->vdisplay;
- req->after_vsyncstart = aftermodeline->vsyncstart;
- req->after_vsyncend = aftermodeline->vsyncend;
- req->after_vtotal = aftermodeline->vtotal;
- req->after_flags = aftermodeline->flags;
- } else {
- req->after_dotclock = 0;
- req->after_hdisplay = 0;
- req->after_hsyncstart = 0;
- req->after_hsyncend = 0;
- req->after_htotal = 0;
- req->after_hskew = 0;
- req->after_vdisplay = 0;
- req->after_vsyncstart = 0;
- req->after_vsyncend = 0;
- req->after_vtotal = 0;
- req->after_flags = 0;
- }
- if (newmodeline->privsize) {
- req->length += newmodeline->privsize;
- Data32(dpy, (long *) newmodeline->private,
- newmodeline->privsize * sizeof(INT32));
- }
- }
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeDeleteModeLine (dpy, screen, modeline)
- Display *dpy;
- int screen;
- XF86VidModeModeInfo* modeline;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeDeleteModeLineReq *req;
- xXF86OldVidModeDeleteModeLineReq *oldreq;
- int majorVersion, minorVersion;
-
- XF86VidModeCheckExtension (dpy, info, 0);
- XF86VidModeQueryVersion(dpy, &majorVersion, &minorVersion);
-
- LockDisplay(dpy);
- if (majorVersion < 2) {
- GetOldReq(XF86VidModeDeleteModeLine, XF86OldVidModeDeleteModeLine, oldreq);
- oldreq->reqType = info->codes->major_opcode;
- oldreq->xf86vidmodeReqType = X_XF86VidModeDeleteModeLine;
- oldreq->screen = screen;
- oldreq->dotclock = modeline->dotclock;
- oldreq->hdisplay = modeline->hdisplay;
- oldreq->hsyncstart = modeline->hsyncstart;
- oldreq->hsyncend = modeline->hsyncend;
- oldreq->htotal = modeline->htotal;
- oldreq->vdisplay = modeline->vdisplay;
- oldreq->vsyncstart = modeline->vsyncstart;
- oldreq->vsyncend = modeline->vsyncend;
- oldreq->vtotal = modeline->vtotal;
- oldreq->flags = modeline->flags;
- oldreq->privsize = modeline->privsize;
- if (modeline->privsize) {
- oldreq->length += modeline->privsize;
- Data32(dpy, (long *) modeline->private,
- modeline->privsize * sizeof(INT32));
- }
- } else {
- GetReq(XF86VidModeDeleteModeLine, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeDeleteModeLine;
- req->screen = screen;
- req->dotclock = modeline->dotclock;
- req->hdisplay = modeline->hdisplay;
- req->hsyncstart = modeline->hsyncstart;
- req->hsyncend = modeline->hsyncend;
- req->htotal = modeline->htotal;
- req->hskew = modeline->hskew;
- req->vdisplay = modeline->vdisplay;
- req->vsyncstart = modeline->vsyncstart;
- req->vsyncend = modeline->vsyncend;
- req->vtotal = modeline->vtotal;
- req->flags = modeline->flags;
- req->privsize = modeline->privsize;
- if (modeline->privsize) {
- req->length += modeline->privsize;
- Data32(dpy, (long *) modeline->private,
- modeline->privsize * sizeof(INT32));
- }
- }
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeModModeLine (dpy, screen, modeline)
- Display *dpy;
- int screen;
- XF86VidModeModeLine* modeline;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeModModeLineReq *req;
- xXF86OldVidModeModModeLineReq *oldreq;
- int majorVersion, minorVersion;
-
- XF86VidModeCheckExtension (dpy, info, 0);
- XF86VidModeQueryVersion(dpy, &majorVersion, &minorVersion);
-
- LockDisplay(dpy);
- if (majorVersion < 2) {
- GetOldReq(XF86VidModeModModeLine, XF86OldVidModeModModeLine, oldreq);
- oldreq->reqType = info->codes->major_opcode;
- oldreq->xf86vidmodeReqType = X_XF86VidModeModModeLine;
- oldreq->screen = screen;
- oldreq->hdisplay = modeline->hdisplay;
- oldreq->hsyncstart = modeline->hsyncstart;
- oldreq->hsyncend = modeline->hsyncend;
- oldreq->htotal = modeline->htotal;
- oldreq->vdisplay = modeline->vdisplay;
- oldreq->vsyncstart = modeline->vsyncstart;
- oldreq->vsyncend = modeline->vsyncend;
- oldreq->vtotal = modeline->vtotal;
- oldreq->flags = modeline->flags;
- oldreq->privsize = modeline->privsize;
- if (modeline->privsize) {
- oldreq->length += modeline->privsize;
- Data32(dpy, (long *) modeline->private,
- modeline->privsize * sizeof(INT32));
- }
- } else {
- GetReq(XF86VidModeModModeLine, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeModModeLine;
- req->screen = screen;
- req->hdisplay = modeline->hdisplay;
- req->hsyncstart = modeline->hsyncstart;
- req->hsyncend = modeline->hsyncend;
- req->htotal = modeline->htotal;
- req->hskew = modeline->hskew;
- req->vdisplay = modeline->vdisplay;
- req->vsyncstart = modeline->vsyncstart;
- req->vsyncend = modeline->vsyncend;
- req->vtotal = modeline->vtotal;
- req->flags = modeline->flags;
- req->privsize = modeline->privsize;
- if (modeline->privsize) {
- req->length += modeline->privsize;
- Data32(dpy, (long *) modeline->private,
- modeline->privsize * sizeof(INT32));
- }
- }
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Status
-XF86VidModeValidateModeLine (dpy, screen, modeline)
- Display *dpy;
- int screen;
- XF86VidModeModeInfo* modeline;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeValidateModeLineReq *req;
- xXF86OldVidModeValidateModeLineReq *oldreq;
- xXF86VidModeValidateModeLineReply rep;
- int majorVersion, minorVersion;
-
- XF86VidModeCheckExtension (dpy, info, 0);
- XF86VidModeQueryVersion(dpy, &majorVersion, &minorVersion);
-
- LockDisplay(dpy);
-
- if (majorVersion < 2) {
- GetOldReq(XF86VidModeValidateModeLine, XF86OldVidModeValidateModeLine, oldreq);
- oldreq->reqType = info->codes->major_opcode;
- oldreq->xf86vidmodeReqType = X_XF86VidModeValidateModeLine;
- oldreq->screen = screen;
- oldreq->dotclock = modeline->dotclock;
- oldreq->hdisplay = modeline->hdisplay;
- oldreq->hsyncstart = modeline->hsyncstart;
- oldreq->hsyncend = modeline->hsyncend;
- oldreq->htotal = modeline->htotal;
- oldreq->vdisplay = modeline->vdisplay;
- oldreq->vsyncstart = modeline->vsyncstart;
- oldreq->vsyncend = modeline->vsyncend;
- oldreq->vtotal = modeline->vtotal;
- oldreq->flags = modeline->flags;
- oldreq->privsize = modeline->privsize;
- if (modeline->privsize) {
- oldreq->length += modeline->privsize;
- Data32(dpy, (long *) modeline->private,
- modeline->privsize * sizeof(INT32));
- }
- } else {
- GetReq(XF86VidModeValidateModeLine, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeValidateModeLine;
- req->screen = screen;
- req->dotclock = modeline->dotclock;
- req->hdisplay = modeline->hdisplay;
- req->hsyncstart = modeline->hsyncstart;
- req->hsyncend = modeline->hsyncend;
- req->htotal = modeline->htotal;
- req->hskew = modeline->hskew;
- req->vdisplay = modeline->vdisplay;
- req->vsyncstart = modeline->vsyncstart;
- req->vsyncend = modeline->vsyncend;
- req->vtotal = modeline->vtotal;
- req->flags = modeline->flags;
- req->privsize = modeline->privsize;
- if (modeline->privsize) {
- req->length += modeline->privsize;
- Data32(dpy, (long *) modeline->private,
- modeline->privsize * sizeof(INT32));
- }
- }
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return MODE_BAD;
- }
- UnlockDisplay(dpy);
- SyncHandle();
- return rep.status;
-}
-
-Bool
-XF86VidModeSwitchMode(dpy, screen, zoom)
- Display* dpy;
- int screen;
- int zoom;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeSwitchModeReq *req;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeSwitchMode, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeSwitchMode;
- req->screen = screen;
- req->zoom = zoom;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeSwitchToMode(dpy, screen, modeline)
- Display* dpy;
- int screen;
- XF86VidModeModeInfo* modeline;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeSwitchToModeReq *req;
- xXF86OldVidModeSwitchToModeReq *oldreq;
- int majorVersion, minorVersion;
- Bool protocolBug = False;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- /*
- * Note: There was a bug in the protocol implementation in versions
- * 0.x with x < 8 (the .private field wasn't expected to be sent over
- * the wire). Check the server's version, and accept the old format
- * if appropriate.
- */
-
- XF86VidModeQueryVersion(dpy, &majorVersion, &minorVersion);
- if (majorVersion == 0 && minorVersion < 8) {
- protocolBug = True;
-#ifdef DEBUG
- fprintf(stderr, "XF86VidModeSwitchToMode: Warning: Xserver is"
- "running an old version (%d.%d)\n", majorVersion,
- minorVersion);
-#endif
- }
-
- LockDisplay(dpy);
- if (majorVersion < 2) {
- GetOldReq(XF86VidModeSwitchToMode, XF86OldVidModeSwitchToMode, oldreq);
- oldreq->reqType = info->codes->major_opcode;
- oldreq->xf86vidmodeReqType = X_XF86VidModeSwitchToMode;
- oldreq->screen = screen;
- oldreq->dotclock = modeline->dotclock;
- oldreq->hdisplay = modeline->hdisplay;
- oldreq->hsyncstart = modeline->hsyncstart;
- oldreq->hsyncend = modeline->hsyncend;
- oldreq->htotal = modeline->htotal;
- oldreq->vdisplay = modeline->vdisplay;
- oldreq->vsyncstart = modeline->vsyncstart;
- oldreq->vsyncend = modeline->vsyncend;
- oldreq->vtotal = modeline->vtotal;
- oldreq->flags = modeline->flags;
- if (protocolBug) {
- oldreq->privsize = 0;
- } else {
- oldreq->privsize = modeline->privsize;
- if (modeline->privsize) {
- oldreq->length += modeline->privsize;
- Data32(dpy, (long *) modeline->private,
- modeline->privsize * sizeof(INT32));
- }
- }
- } else {
- GetReq(XF86VidModeSwitchToMode, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeSwitchToMode;
- req->screen = screen;
- req->dotclock = modeline->dotclock;
- req->hdisplay = modeline->hdisplay;
- req->hsyncstart = modeline->hsyncstart;
- req->hsyncend = modeline->hsyncend;
- req->htotal = modeline->htotal;
- req->hskew = modeline->hskew;
- req->vdisplay = modeline->vdisplay;
- req->vsyncstart = modeline->vsyncstart;
- req->vsyncend = modeline->vsyncend;
- req->vtotal = modeline->vtotal;
- req->flags = modeline->flags;
- if (protocolBug) {
- req->privsize = 0;
- } else {
- req->privsize = modeline->privsize;
- if (modeline->privsize) {
- req->length += modeline->privsize;
- Data32(dpy, (long *) modeline->private,
- modeline->privsize * sizeof(INT32));
- }
- }
- }
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeLockModeSwitch(dpy, screen, lock)
- Display* dpy;
- int screen;
- int lock;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeLockModeSwitchReq *req;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeLockModeSwitch, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeLockModeSwitch;
- req->screen = screen;
- req->lock = lock;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeGetMonitor(dpy, screen, monitor)
- Display* dpy;
- int screen;
- XF86VidModeMonitor* monitor;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeGetMonitorReply rep;
- xXF86VidModeGetMonitorReq *req;
- CARD32 syncrange;
- int i;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeGetMonitor, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeGetMonitor;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- monitor->nhsync = rep.nhsync;
- monitor->nvsync = rep.nvsync;
-#if 0
- monitor->bandwidth = (float)rep.bandwidth / 1e6;
-#endif
- if (rep.vendorLength) {
- if (!(monitor->vendor = (char *)Xcalloc(rep.vendorLength + 1, 1))) {
- _XEatData(dpy, (rep.nhsync + rep.nvsync) * 4 +
- ((rep.vendorLength+3) & ~3) + ((rep.modelLength+3) & ~3));
- return False;
- }
- } else {
- monitor->vendor = NULL;
- }
- if (rep.modelLength) {
- if (!(monitor->model = Xcalloc(rep.modelLength + 1, 1))) {
- _XEatData(dpy, (rep.nhsync + rep.nvsync) * 4 +
- ((rep.vendorLength+3) & ~3) + ((rep.modelLength+3) & ~3));
- if (monitor->vendor)
- Xfree(monitor->vendor);
- return False;
- }
- } else {
- monitor->model = NULL;
- }
- if (!(monitor->hsync = Xcalloc(rep.nhsync, sizeof(XF86VidModeSyncRange)))) {
- _XEatData(dpy, (rep.nhsync + rep.nvsync) * 4 +
- ((rep.vendorLength+3) & ~3) + ((rep.modelLength+3) & ~3));
-
- if (monitor->vendor)
- Xfree(monitor->vendor);
- if (monitor->model)
- Xfree(monitor->model);
- return False;
- }
- if (!(monitor->vsync = Xcalloc(rep.nvsync, sizeof(XF86VidModeSyncRange)))) {
- _XEatData(dpy, (rep.nhsync + rep.nvsync) * 4 +
- ((rep.vendorLength+3) & ~3) + ((rep.modelLength+3) & ~3));
- if (monitor->vendor)
- Xfree(monitor->vendor);
- if (monitor->model)
- Xfree(monitor->model);
- Xfree(monitor->hsync);
- return False;
- }
- for (i = 0; i < rep.nhsync; i++) {
- _XRead(dpy, (char *)&syncrange, 4);
- monitor->hsync[i].lo = (float)(syncrange & 0xFFFF) / 100.0;
- monitor->hsync[i].hi = (float)(syncrange >> 16) / 100.0;
- }
- for (i = 0; i < rep.nvsync; i++) {
- _XRead(dpy, (char *)&syncrange, 4);
- monitor->vsync[i].lo = (float)(syncrange & 0xFFFF) / 100.0;
- monitor->vsync[i].hi = (float)(syncrange >> 16) / 100.0;
- }
- if (rep.vendorLength)
- _XReadPad(dpy, monitor->vendor, rep.vendorLength);
- else
- monitor->vendor = "";
- if (rep.modelLength)
- _XReadPad(dpy, monitor->model, rep.modelLength);
- else
- monitor->model = "";
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeGetViewPort(dpy, screen, x, y)
- Display* dpy;
- int screen;
- int *x, *y;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeGetViewPortReply rep;
- xXF86VidModeGetViewPortReq *req;
- int majorVersion, minorVersion;
- Bool protocolBug = False;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- /*
- * Note: There was a bug in the protocol implementation in versions
- * 0.x with x < 8 (no reply was sent, so the client would hang)
- * Check the server's version, and don't wait for a reply with older
- * versions.
- */
-
- XF86VidModeQueryVersion(dpy, &majorVersion, &minorVersion);
- if (majorVersion == 0 && minorVersion < 8) {
- protocolBug = True;
-#ifdef DEBUG
- fprintf(stderr, "XF86VidModeGetViewPort: Warning: Xserver is"
- "running an old version (%d.%d)\n", majorVersion,
- minorVersion);
-#endif
- }
- LockDisplay(dpy);
- GetReq(XF86VidModeGetViewPort, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeGetViewPort;
- req->screen = screen;
- if (protocolBug) {
- *x = 0;
- *y = 0;
- } else {
- if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- *x = rep.x;
- *y = rep.y;
- }
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeSetViewPort(dpy, screen, x, y)
- Display* dpy;
- int screen;
- int x, y;
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeSetViewPortReq *req;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeSetViewPort, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeSetViewPort;
- req->screen = screen;
- req->x = x;
- req->y = y;
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeGetDotClocks(dpy, screen,
- flagsPtr, numclocksPtr, maxclocksPtr, clocksPtr)
- Display* dpy;
- int screen;
- int *flagsPtr, *numclocksPtr, *maxclocksPtr, *clocksPtr[];
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeGetDotClocksReply rep;
- xXF86VidModeGetDotClocksReq *req;
- int i, *dotclocks;
- CARD32 dotclk;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeGetDotClocks, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeGetDotClocks;
- req->screen = screen;
- if (!_XReply(dpy, (xReply *)&rep,
- (SIZEOF(xXF86VidModeGetDotClocksReply) - SIZEOF(xReply)) >> 2, xFalse))
- {
- UnlockDisplay(dpy);
- SyncHandle();
- return False;
- }
- *numclocksPtr = rep.clocks;
- *maxclocksPtr = rep.maxclocks;
- *flagsPtr = rep.flags;
-
- if (!(dotclocks = (int*) Xcalloc(rep.clocks, sizeof(int)))) {
- _XEatData(dpy, (rep.clocks) * 4);
- Xfree(dotclocks);
- return False;
- }
-
- for (i = 0; i < rep.clocks; i++) {
- _XRead(dpy, (char*)&dotclk, 4);
- dotclocks[i] = dotclk;
- }
- *clocksPtr = dotclocks;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool
-XF86VidModeSetGammaRamp (
- Display *dpy,
- int screen,
- int size,
- unsigned short *red,
- unsigned short *green,
- unsigned short *blue
-)
-{
- int length = (size + 1) & ~1;
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeSetGammaRampReq *req;
-
- XF86VidModeCheckExtension (dpy, info, False);
- LockDisplay(dpy);
- GetReq(XF86VidModeSetGammaRamp, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeSetGammaRamp;
- req->screen = screen;
- req->length += (length >> 1) * 3;
- req->size = size;
- _XSend(dpy, (char*)red, size * 2);
- _XSend(dpy, (char*)green, size * 2);
- _XSend(dpy, (char*)blue, size * 2);
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-
-Bool
-XF86VidModeGetGammaRamp (
- Display *dpy,
- int screen,
- int size,
- unsigned short *red,
- unsigned short *green,
- unsigned short *blue
-)
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeGetGammaRampReq *req;
- xXF86VidModeGetGammaRampReply rep;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeGetGammaRamp, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeGetGammaRamp;
- req->screen = screen;
- req->size = size;
- if (!_XReply (dpy, (xReply *) &rep, 0, xFalse)) {
- UnlockDisplay (dpy);
- SyncHandle ();
- return False;
- }
- if(rep.size) {
- _XRead(dpy, (char*)red, rep.size << 1);
- _XRead(dpy, (char*)green, rep.size << 1);
- _XRead(dpy, (char*)blue, rep.size << 1);
- }
-
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86VidModeGetGammaRampSize(
- Display *dpy,
- int screen,
- int *size
-)
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeGetGammaRampSizeReq *req;
- xXF86VidModeGetGammaRampSizeReply rep;
-
- *size = 0;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeGetGammaRampSize, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeGetGammaRampSize;
- req->screen = screen;
- if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) {
- UnlockDisplay (dpy);
- SyncHandle ();
- return False;
- }
- *size = rep.size;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
-Bool XF86VidModeGetPermissions(
- Display *dpy,
- int screen,
- int *permissions
-)
-{
- XExtDisplayInfo *info = find_display (dpy);
- xXF86VidModeGetPermissionsReq *req;
- xXF86VidModeGetPermissionsReply rep;
-
- *permissions = 0;
-
- XF86VidModeCheckExtension (dpy, info, False);
-
- LockDisplay(dpy);
- GetReq(XF86VidModeGetPermissions, req);
- req->reqType = info->codes->major_opcode;
- req->xf86vidmodeReqType = X_XF86VidModeGetPermissions;
- req->screen = screen;
- if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) {
- UnlockDisplay (dpy);
- SyncHandle ();
- return False;
- }
- *permissions = rep.permissions;
- UnlockDisplay(dpy);
- SyncHandle();
- return True;
-}
-
diff --git a/nx-X11/lib/Xxf86vm/Xxf86vm-def.cpp b/nx-X11/lib/Xxf86vm/Xxf86vm-def.cpp
deleted file mode 100644
index 0f7b4f335..000000000
--- a/nx-X11/lib/Xxf86vm/Xxf86vm-def.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-LIBRARY XXF86VM
-EXPORTS
- XF86VidModeQueryExtension
- XF86VidModeQueryVersion
- XF86VidModeGetModeLine
- XF86VidModeGetAllModeLines
- XF86VidModeModModeLine
- XF86VidModeSwitchMode
- XF86VidModeLockModeSwitch
- XF86VidModeGetMonitor
- XF86VidModeGetGamma
- XF86VidModeSetGamma
- XF86VidModeSwitchToMode
- XF86VidModeAddModeLine
-
-/* $XFree86$ */
diff --git a/nx-X11/lib/xkbui/Imakefile b/nx-X11/lib/xkbui/Imakefile
deleted file mode 100644
index a017d681c..000000000
--- a/nx-X11/lib/xkbui/Imakefile
+++ /dev/null
@@ -1,25 +0,0 @@
-XCOMM $XConsortium: Imakefile /main/1 1995/11/30 19:00:42 kaleb $
-XCOMM $XFree86: xc/lib/xkbui/Imakefile,v 3.4 2003/10/15 21:23:38 herrb Exp $
-#define DoNormalLib NormalLibxkbui
-#define DoSharedLib SharedLibxkbui
-#define DoExtraLib SharedLibxkbui
-#define DoDebugLib DebugLibxkbui
-#define DoProfileLib ProfileLibxkbui
-#define HasSharedData NO
-#define LibName NX_xkbui
-#define SoRev SOXKBUIREV
-#define IncSubdir X11
-#define IncSubSubdir extensions
-
-#ifdef SharedxkbuiReqs
-REQUIREDLIBS = SharedxkbuiReqs
-#endif
-
- SRCS = XKBui.c
- OBJS = XKBui.o
- HEADERS = XKBui.h
- INCLUDES = -I. -I$(EXTINCSRC) -I../xkbfile
-
-#include <Library.tmpl>
-
-DependTarget()
diff --git a/nx-X11/lib/xkbui/XKBui.c b/nx-X11/lib/xkbui/XKBui.c
deleted file mode 100644
index 747071690..000000000
--- a/nx-X11/lib/xkbui/XKBui.c
+++ /dev/null
@@ -1,666 +0,0 @@
-/* $XConsortium: XKBui.c /main/2 1995/12/07 21:18:19 kaleb $ */
-/************************************************************
- Copyright (c) 1996 by Silicon Graphics Computer Systems, Inc.
-
- Permission to use, copy, modify, and distribute this
- software and its documentation for any purpose and without
- fee is hereby granted, provided that the above copyright
- notice appear in all copies and that both that copyright
- notice and this permission notice appear in supporting
- documentation, and that the name of Silicon Graphics not be
- used in advertising or publicity pertaining to distribution
- of the software without specific prior written permission.
- Silicon Graphics makes no representation about the suitability
- of this software for any purpose. It is provided "as is"
- without any express or implied warranty.
-
- SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
- SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
- GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
- DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
- THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
- ********************************************************/
-/* $XFree86: xc/lib/xkbui/XKBui.c,v 3.6 1999/06/20 07:14:08 dawes Exp $ */
-
-#include <X11/Xos.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#if defined(SVR4) && defined(i386) && !defined(_XOPEN_SOURCE)
-# define _XOPEN_SOURCE
-# include <math.h>
-# undef _XOPEN_SOURCE
-#else
-# include <math.h>
-#endif /* _XOPEN_SOURCE */
-
-#include <X11/Xfuncs.h>
-#include "XKBuiPriv.h"
-#include <X11/extensions/XKBfile.h>
-
-#ifndef M_PI
-# define M_PI 3.141592653589793238462
-#endif
-
-/* This function is an internal function in the xkbfile library */
-extern int _XkbStrCaseCmp(
- char * /* str1 */,
- char * /* str2 */
-);
-
-
-static XkbUI_ViewOptsRec dfltOpts = {
- XkbUI_AllViewOptsMask /* present */,
- 1 /* fg */,
- 0 /* bg */,
- XkbUI_KeyNames /* label_mode */,
- 0 /* color_mode */,
- {
- 0 /* viewport.x */,
- 0 /* viewport.y */,
- 640 /* viewport.width */,
- 480 /* viewport.height */
- },
- 10, 10, /* margin_width, margin_height */
- None
-};
-
-XkbUI_ViewPtr
-XkbUI_SimpleInit(Display *dpy,Window win,int width,int height)
-{
-XkbDescPtr xkb;
-
- if ((!dpy)||(win==None)||(width<1)||(height<1))
- return NULL;
- xkb= XkbGetKeyboard(dpy,XkbGBN_AllComponentsMask,XkbUseCoreKbd);
- if (!xkb)
- return NULL;
- return XkbUI_Init(dpy,win,width,height,xkb,NULL);
-}
-
-static void
-_XkbUI_AllocateColors(XkbUI_ViewPtr view)
-{
-register int i;
-Display * dpy;
-XColor sdef,xdef;
-XkbDescPtr xkb;
-
- dpy= view->dpy;
- xkb= view->xkb;
- if (view->opts.cmap==None)
- view->opts.cmap= DefaultColormap(dpy,DefaultScreen(dpy));
- for (i=0;i<xkb->geom->num_colors;i++) {
- char *spec;
- Bool found;
-
- spec= xkb->geom->colors[i].spec;
- found= False;
- if (XAllocNamedColor(view->dpy,view->opts.cmap,spec,&sdef,&xdef)) {
- xkb->geom->colors[i].pixel= sdef.pixel;
-#ifdef DEBUG
- fprintf(stderr,"got pixel %d for \"%s\"\n",sdef.pixel,spec);
-#endif
- found= True;
- }
- if ((!found)&&(XkbLookupCanonicalRGBColor(spec,&sdef))) {
- char buf[20];
- sprintf(buf,"#%02x%02x%02x",(sdef.red>>8)&0xff,
- (sdef.green>>8)&0xff,
- (sdef.blue>>8)&&0xff);
- if (XAllocNamedColor(view->dpy,view->opts.cmap,buf,&sdef,&xdef)) {
- xkb->geom->colors[i].pixel= sdef.pixel;
-#ifdef DEBUG
- fprintf(stderr,"got pixel %d for \"%s\"\n",sdef.pixel,spec);
-#endif
- found= True;
- }
- }
- if (!found) {
- xkb->geom->colors[i].pixel= view->opts.fg;
- fprintf(stderr,"Couldn't allocate color \"%s\"\n",spec);
- }
- }
- return;
-}
-
-XkbUI_ViewPtr
-XkbUI_Init( Display * dpy,
- Window win,
- int width,
- int height,
- XkbDescPtr xkb,
- XkbUI_ViewOptsPtr opts)
-{
-XGCValues xgcv;
-XkbUI_ViewPtr view;
-int scrn;
-
- if ((!dpy)||(!xkb)||(!xkb->geom)||(win==None)||(width<1)||(height<1))
- return NULL;
- view= _XkbTypedCalloc(1,XkbUI_ViewRec);
- if (!view)
- return NULL;
- scrn= DefaultScreen(dpy);
- view->dpy= dpy;
- view->xkb= xkb;
- view->win= win;
- view->opts= dfltOpts;
- view->opts.fg= WhitePixel(dpy,scrn);
- view->opts.bg= BlackPixel(dpy,scrn);
- view->opts.viewport.x= 0;
- view->opts.viewport.y= 0;
- view->opts.viewport.width= width;
- view->opts.viewport.height= height;
- if ((opts)&&(opts->present)) {
- if (opts->present&XkbUI_BackgroundMask)
- view->opts.bg= opts->bg;
- if (opts->present&XkbUI_ForegroundMask)
- view->opts.fg= opts->fg;
- if (opts->present&XkbUI_LabelModeMask)
- view->opts.label_mode= opts->label_mode;
- if (opts->present&XkbUI_ColorModeMask)
- view->opts.color_mode= opts->color_mode;
- if (opts->present&XkbUI_WidthMask)
- view->opts.viewport.width= opts->viewport.width;
- if (opts->present&XkbUI_HeightMask)
- view->opts.viewport.height= opts->viewport.height;
- if (opts->present&XkbUI_XOffsetMask)
- view->opts.viewport.x= opts->viewport.x;
- if (opts->present&XkbUI_YOffsetMask)
- view->opts.viewport.y= opts->viewport.y;
- if (opts->present&XkbUI_MarginWidthMask)
- view->opts.margin_width= opts->margin_width;
- if (opts->present&XkbUI_MarginHeightMask)
- view->opts.margin_height= opts->margin_height;
- if (opts->present&XkbUI_ColormapMask)
- view->opts.cmap= opts->cmap;
- }
- view->canvas_width= width+(2*view->opts.margin_width);
- view->canvas_height= height+(2*view->opts.margin_height);
- if (view->opts.viewport.width>view->canvas_width) {
- int tmp;
- tmp= (view->opts.viewport.width-view->canvas_width)/2;
- view->opts.margin_width+= tmp;
- }
- if (view->opts.viewport.height>view->canvas_height) {
- int tmp;
- tmp= (view->opts.viewport.height-view->canvas_height)/2;
- view->opts.margin_height+= tmp;
- }
- bzero(view->state,XkbMaxLegalKeyCode+1);
-
- xgcv.foreground= view->opts.fg;
- xgcv.background= view->opts.bg;
- view->gc= XCreateGC(view->dpy,view->win,GCForeground|GCBackground,&xgcv);
- view->xscale= ((double)width)/((double)xkb->geom->width_mm);
- view->yscale= ((double)height)/((double)xkb->geom->height_mm);
-
- _XkbUI_AllocateColors(view);
- return view;
-}
-
-Status
-XkbUI_SetViewOpts(XkbUI_ViewPtr view,XkbUI_ViewOptsPtr opts)
-{
- if ((!view)||(!opts))
- return BadValue;
- if (opts->present==0)
- return Success;
- if (opts->present&XkbUI_BackgroundMask)
- view->opts.bg= opts->bg;
- if (opts->present&XkbUI_ForegroundMask)
- view->opts.fg= opts->fg;
- if (opts->present&XkbUI_LabelModeMask)
- view->opts.label_mode= opts->label_mode;
- if (opts->present&XkbUI_ColorModeMask)
- view->opts.color_mode= opts->color_mode;
- if (opts->present&XkbUI_WidthMask)
- view->opts.viewport.width= opts->viewport.width;
- if (opts->present&XkbUI_HeightMask)
- view->opts.viewport.height= opts->viewport.height;
- if (opts->present&XkbUI_XOffsetMask)
- view->opts.viewport.x= opts->viewport.x;
- if (opts->present&XkbUI_YOffsetMask)
- view->opts.viewport.y= opts->viewport.y;
- if (opts->present&XkbUI_MarginWidthMask)
- view->opts.margin_width= opts->margin_width;
- if (opts->present&XkbUI_MarginHeightMask)
- view->opts.margin_height= opts->margin_height;
- if (opts->present&XkbUI_ColormapMask) {
- view->opts.cmap= opts->cmap;
- _XkbUI_AllocateColors(view);
- }
- return Success;
-}
-
-Status
-XbUI_GetViewOpts(XkbUI_ViewPtr view,XkbUI_ViewOptsPtr opts_rtrn)
-{
- if ((!view)||(!opts_rtrn))
- return BadValue;
- *opts_rtrn= view->opts;
- return Success;
-}
-
-Status
-XkbUI_SetCanvasSize(XkbUI_ViewPtr view,int width,int height)
-{
- if ((!view)||(!view->xkb)||(!view->xkb->geom))
- return BadValue;
- view->canvas_width= width;
- view->canvas_height= height;
- view->xscale= ((double)width)/((double)view->xkb->geom->width_mm);
- view->yscale= ((double)height)/((double)view->xkb->geom->height_mm);
- return Success;
-}
-
-Status
-XkbUI_GetCanvasSize(XkbUI_ViewPtr view,int *width_rtrn,int *height_rtrn)
-{
- if (!view)
- return BadValue;
- if (width_rtrn) *width_rtrn= view->canvas_width;
- if (height_rtrn) *height_rtrn= view->canvas_height;
- return Success;
-}
-
-/***====================================================================***/
-
-static void
-_RotatePoints( double rangle,
- int corner_x,
- int corner_y,
- int nPts,
- XkbUI_PointPtr pts)
-{
-register int i;
-double rr,rx,ry,rt;
-
- for (i=0;i<nPts;i++,pts++) {
- rx= pts->x-corner_x; ry= pts->y-corner_y; /* translate */
- rr= hypot(rx,ry);
- rt= atan2(ry,rx)+rangle;
- rx= rr*cos(rt);
- ry= rr*sin(rt);
- pts->x= rx+corner_x; pts->y= ry+corner_y;
- }
- return;
-}
-
-static void
-_DrawPoints(XkbUI_ViewPtr view,int nPts,XkbUI_PointPtr pts,XPoint *xpts)
-{
-register int i;
-
- for (i=0;i<nPts;i++) {
- if (pts[i].x>=0.0) xpts[i].x= pts[i].x*view->xscale+0.5;
- else xpts[i].x= pts[i].x*view->xscale-0.5;
- xpts[i].x+= view->opts.viewport.x;
- if (pts[i].y>=0.0) xpts[i].y= pts[i].y*view->yscale+0.5;
- else xpts[i].x= pts[i].y*view->yscale-0.5;
- xpts[i].y+= view->opts.viewport.y;
- }
- if ((xpts[nPts-1].x!=xpts[0].x)||(xpts[nPts-1].y!=xpts[0].y))
- xpts[nPts++]= xpts[0]; /* close the shape, if necessary */
- XDrawLines(view->dpy,view->win,view->gc,xpts,nPts,CoordModeOrigin);
-XFlush(view->dpy);
- return;
-}
-
-static void
-_DrawSolidPoints(XkbUI_ViewPtr view,int nPts,XkbUI_PointPtr pts,XPoint *xpts)
-{
-register int i;
-
- for (i=0;i<nPts;i++) {
- if (pts[i].x>=0.0) xpts[i].x= pts[i].x*view->xscale+0.5;
- else xpts[i].x= pts[i].x*view->xscale-0.5;
- xpts[i].x+= view->opts.viewport.x;
- if (pts[i].y>=0.0) xpts[i].y= pts[i].y*view->yscale+0.5;
- else xpts[i].x= pts[i].y*view->yscale-0.5;
- xpts[i].y+= view->opts.viewport.y;
- }
- if ((xpts[nPts-1].x!=xpts[0].x)||(xpts[nPts-1].y!=xpts[0].y))
- xpts[nPts++]= xpts[0]; /* close the shape, if necessary */
- XFillPolygon(view->dpy,view->win,view->gc,xpts,nPts,Nonconvex,
- CoordModeOrigin);
-XFlush(view->dpy);
- return;
-}
-
-static void
-_DrawShape( XkbUI_ViewPtr view,
- double rangle,
- int xoff,
- int yoff,
- int rotx,
- int roty,
- XkbShapePtr shape,
- Bool key)
-{
-XkbOutlinePtr ol;
-register int o;
-int maxPts;
-XkbUI_PointPtr uipts;
-XPoint * xpts;
-
- for (maxPts=4,o=0,ol=shape->outlines;o<shape->num_outlines;o++,ol++) {
- if ((shape->num_outlines>1)&&(ol==shape->approx))
- continue;
- if (ol->num_points>maxPts)
- maxPts= ol->num_points;
- }
- uipts= _XkbTypedCalloc(maxPts,XkbUI_PointRec);
- xpts= _XkbTypedCalloc(maxPts+1,XPoint);
- XSetForeground(view->dpy,view->gc,view->xkb->geom->label_color->pixel);
- for (o=0,ol=shape->outlines;o<shape->num_outlines;o++,ol++) {
- XkbPointPtr gpts;
- register int p;
- if ((shape->num_outlines>1)&&(ol==shape->approx))
- continue;
- gpts= ol->points;
- if (ol->num_points==1) {
- uipts[0].x= xoff; uipts[0].y= yoff;
- uipts[1].x= xoff+gpts[0].x; uipts[1].y= yoff;
- uipts[2].x= xoff+gpts[0].x; uipts[2].y= yoff+gpts[0].y;
- uipts[3].x= xoff; uipts[3].y= yoff+gpts[0].y;
- p= 4;
- }
- else if (ol->num_points==2) {
- uipts[0].x= xoff+gpts[0].x; uipts[0].y= yoff+gpts[0].y;
- uipts[1].x= xoff+gpts[1].x; uipts[1].y= yoff+gpts[0].y;
- uipts[2].x= xoff+gpts[1].x; uipts[2].y= yoff+gpts[1].y;
- uipts[3].x= xoff+gpts[0].x; uipts[3].y= yoff+gpts[1].y;
- p= 4;
- }
- else {
- for (p=0;p<ol->num_points;p++) {
- uipts[p].x= xoff+gpts[p].x;
- uipts[p].y= yoff+gpts[p].y;
- }
- p= ol->num_points;
- }
- if (rangle!=0.0)
- _RotatePoints(rangle,rotx,roty,p,uipts);
- if (key) {
- if (o==0) {
- XSetForeground(view->dpy,view->gc,
- view->xkb->geom->base_color->pixel);
- _DrawSolidPoints(view,p,uipts,xpts);
- XSetForeground(view->dpy,view->gc,
- view->xkb->geom->label_color->pixel);
- }
- _DrawPoints(view,p,uipts,xpts);
- }
- else {
- _DrawPoints(view,p,uipts,xpts);
- }
- }
- _XkbFree(uipts);
- _XkbFree(xpts);
- return;
-}
-
-static void
-_DrawRect( XkbUI_ViewPtr view,
- double rangle,
- int x1,
- int y1,
- int x2,
- int y2,
- Bool key)
-{
-XkbUI_PointRec uipts[4];
-XPoint xpts[4];
-
- XSetForeground(view->dpy,view->gc,view->xkb->geom->label_color->pixel);
- uipts[0].x= x1; uipts[0].y= y1;
- uipts[1].x= x2; uipts[1].y= y1;
- uipts[2].x= x2; uipts[2].y= y2;
- uipts[3].x= x1; uipts[3].y= y2;
- if (rangle!=0.0)
- _RotatePoints(rangle,0,0,4,uipts);
- if (key) {
- XSetForeground(view->dpy,view->gc,view->xkb->geom->base_color->pixel);
- _DrawSolidPoints(view,4,uipts,xpts);
- XSetForeground(view->dpy,view->gc,view->xkb->geom->label_color->pixel);
- _DrawPoints(view,4,uipts,xpts);
- }
- else {
- _DrawPoints(view,4,uipts,xpts);
- }
- return;
-}
-
-static void
-_DrawDoodad( XkbUI_ViewPtr view,
- double rangle,
- int xoff,
- int yoff,
- XkbDoodadPtr doodad)
-{
-int x;
-int y;
-XkbShapePtr shape;
-Bool solid;
-
- x= doodad->any.left+xoff;
- y= doodad->any.top+yoff;
- shape= NULL;
- solid= False;
- switch (doodad->any.type) {
- case XkbOutlineDoodad:
- shape= XkbShapeDoodadShape(view->xkb->geom,(&doodad->shape));
- break;
- case XkbSolidDoodad:
- shape= XkbShapeDoodadShape(view->xkb->geom,(&doodad->shape));
- solid= True;
- break;
- case XkbTextDoodad:
- break;
- case XkbIndicatorDoodad:
- shape= XkbIndicatorDoodadShape(view->xkb->geom,&doodad->indicator);
- solid= True;
- break;
- case XkbLogoDoodad:
- shape= XkbLogoDoodadShape(view->xkb->geom,&doodad->logo);
- solid= True;
- break;
- }
- if (shape)
- _DrawShape(view,rangle,x,y,x,y,shape,solid);
- return;
-}
-
-static void
-_DrawRow( XkbUI_ViewPtr view,
- double rangle,
- int xoff,
- int yoff,
- XkbRowPtr row)
-{
-register int k,x,y;
-XkbKeyPtr key;
-
- x= xoff+row->left; y= yoff+row->top;
- for (k=0,key=row->keys;k<row->num_keys;k++,key++) {
- XkbShapePtr shape;
- shape= XkbKeyShape(view->xkb->geom,key);
- if (row->vertical) {
- y+= key->gap;
- _DrawShape(view,rangle,x,y,xoff,yoff,shape,True);
- y+= shape->bounds.y2;
- }
- else {
- x+= key->gap;
- _DrawShape(view,rangle,x,y,xoff,yoff,shape,True);
- x+= shape->bounds.x2;
- }
- }
- return;
-}
-
-static void
-_DrawSection(XkbUI_ViewPtr view,XkbSectionPtr section)
-{
-double rangle;
-
- rangle= ((((double)(section->angle%3600))/3600.0)*(2.0*M_PI));
- if (section->doodads) {
- XkbDrawablePtr first,draw;
- first= XkbGetOrderedDrawables(NULL,section);
- if (first) {
- for (draw=first;draw!=NULL;draw=draw->next) {
- _DrawDoodad(view,rangle,section->left,section->top,draw->u.doodad);
- }
- XkbFreeOrderedDrawables(first);
- }
- }
- if (section->rows) {
- register int r;
- XkbRowPtr row;
- for (r=0,row=section->rows;r<section->num_rows;r++,row++) {
- _DrawRow(view,rangle,section->left,section->top,row);
- }
- }
- return;
-}
-
-static void
-_DrawAll(XkbUI_ViewPtr view)
-{
-XkbGeometryPtr geom;
-XkbDrawablePtr first,draw;
-Bool dfltBorder;
-
- geom= view->xkb->geom;
- first= XkbGetOrderedDrawables(geom,NULL);
- if (first) {
- dfltBorder= True;
- for (draw=first;draw!=NULL;draw=draw->next) {
- char *name;
- if ((draw->type!=XkbDW_Doodad)||
- ((draw->u.doodad->any.type!=XkbOutlineDoodad)&&
- (draw->u.doodad->any.type!=XkbSolidDoodad))) {
- continue;
- }
- name= XkbAtomGetString(view->dpy,draw->u.doodad->any.name);
- if ((name!=NULL)&&(_XkbStrCaseCmp(name,"edges")==0)) {
- dfltBorder= False;
- break;
- }
- }
- if (dfltBorder)
- _DrawRect(view,0.0,0,0,geom->width_mm,geom->height_mm,True);
- for (draw=first;draw!=NULL;draw=draw->next) {
- switch (draw->type) {
- case XkbDW_Section:
- _DrawSection(view,draw->u.section);
- break;
- case XkbDW_Doodad:
- _DrawDoodad(view,0.0,0,0,draw->u.doodad);
- break;
- }
- }
- XkbFreeOrderedDrawables(first);
- }
- XFlush(view->dpy);
- return;
-}
-
-static void
-_RedrawKey(XkbUI_ViewPtr view,KeyCode kc)
-{
-/* _DrawAll(view);*/
- return;
-}
-
-/***====================================================================***/
-
-Bool
-XkbUI_SetKeyAppearance(XkbUI_ViewPtr view,KeyCode kc,unsigned int flags)
-{
-XkbDescPtr xkb;
-unsigned old;
-
- if ((!view)||(!view->xkb))
- return False;
- xkb= view->xkb;
- if ((kc<xkb->min_key_code)||(kc>xkb->max_key_code))
- return False;
- old= view->state[kc];
- view->state[kc]= (flags&(~XkbUI_Obscured));
- if (old&XkbUI_Obscured)
- view->state[kc]|= XkbUI_Obscured;
- else if (old!=view->state[kc])
- _RedrawKey(view,kc);
- return True;
-}
-
-Bool
-XkbUI_SetKeyAppearanceByName( XkbUI_ViewPtr view,
- XkbKeyNamePtr name,
- unsigned int flags)
-{
-KeyCode kc;
-
- if ((!view)||(!view->xkb)||(!name))
- return False;
- kc= XkbFindKeycodeByName(view->xkb,name->name,True);
- if (!kc)
- return False;
- return XkbUI_SetKeyAppearance(view,kc,flags);
-}
-
-Bool
-XkbUI_ResetKeyAppearance( XkbUI_ViewPtr view,
- unsigned int mask,
- unsigned int values)
-{
-register int i;
-unsigned new_val;
-
- if ((!view)||(!view->xkb))
- return False;
- if (!mask)
- return True;
- for (i=view->xkb->min_key_code;i<=view->xkb->max_key_code;i++) {
- new_val= (view->state[i]&(~mask));
- new_val|= (mask&values);
- XkbUI_SetKeyAppearance(view,i,new_val);
- }
- return True;
-}
-
-Bool
-XkbUI_DrawRegion(XkbUI_ViewPtr view,XRectangle *viewport)
-{
- if (!view)
- return False;
- _DrawAll(view);
- return True;
-}
-
-Bool
-XkbUI_DrawChanged( XkbUI_ViewPtr view,
- XRectangle * viewport,
- XkbChangesPtr changes,
- int num_keys,
- XkbKeyNamePtr keys)
-{
- return False;
-}
-
-Bool
-XkbUI_Select( XkbUI_ViewPtr view,
- XPoint * coord,
- unsigned int which,
- XkbSectionPtr section)
-{
- return False;
-}
diff --git a/nx-X11/lib/xkbui/XKBui.h b/nx-X11/lib/xkbui/XKBui.h
deleted file mode 100644
index 36c66df59..000000000
--- a/nx-X11/lib/xkbui/XKBui.h
+++ /dev/null
@@ -1,194 +0,0 @@
-#ifndef XKBUI_H
-#define XKBUI_H 1
-/* $XConsortium: XKBui.h /main/2 1995/12/07 21:18:19 kaleb $ */
-/************************************************************
- Copyright (c) 1996 by Silicon Graphics Computer Systems, Inc.
-
- Permission to use, copy, modify, and distribute this
- software and its documentation for any purpose and without
- fee is hereby granted, provided that the above copyright
- notice appear in all copies and that both that copyright
- notice and this permission notice appear in supporting
- documentation, and that the name of Silicon Graphics not be
- used in advertising or publicity pertaining to distribution
- of the software without specific prior written permission.
- Silicon Graphics makes no representation about the suitability
- of this software for any purpose. It is provided "as is"
- without any express or implied warranty.
-
- SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
- SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
- GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
- DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
- THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
- ********************************************************/
-/* $XFree86$ */
-
-#include <X11/Xlib.h>
-#include <X11/XKBlib.h>
-#include <X11/extensions/XKBgeom.h>
-
-typedef struct _XkbUI_View *XkbUI_ViewPtr;
-
-typedef struct _XkbUI_ViewOpts {
- unsigned int present;
- unsigned int fg;
- unsigned int bg;
- unsigned int label_mode;
- unsigned int color_mode;
- XRectangle viewport;
- unsigned int margin_width;
- unsigned int margin_height;
- Colormap cmap;
-} XkbUI_ViewOptsRec,*XkbUI_ViewOptsPtr;
-
- /*
- * legal values for present field of a view options
- */
-#define XkbUI_BackgroundMask (1<<0)
-#define XkbUI_ForegroundMask (1<<1)
-#define XkbUI_LabelModeMask (1<<2)
-#define XkbUI_ColorModeMask (1<<3)
-#define XkbUI_WidthMask (1<<4)
-#define XkbUI_HeightMask (1<<5)
-#define XkbUI_XOffsetMask (1<<6)
-#define XkbUI_YOffsetMask (1<<7)
-#define XkbUI_ColormapMask (1<<8)
-#define XkbUI_MarginWidthMask (1<<9)
-#define XkbUI_MarginHeightMask (1<<10)
-
-#define XkbUI_SizeMask (XkbUI_WidthMask|XkbUI_HeightMask)
-#define XkbUI_OffsetMask (XkbUI_XOffsetMask|XkbUI_YOffsetMask)
-#define XkbUI_MarginMask (XkbUI_MarginWidthMask|XkbUI_MarginHeightMask)
-#define XkbUI_AllViewOptsMask (0x7ff)
-
- /*
- * legal values for the label_mode of a view options
- */
-#define XkbUI_NoLabels 0
-#define XkbUI_KeyCodes 1
-#define XkbUI_KeyNames 2
-#define XkbUI_StateSyms 3
-#define XkbUI_MultiSyms 4
-
-typedef struct _XkbUI_Select {
- unsigned type;
- XkbSectionPtr section;
- XkbKeyPtr key;
- XkbDoodadPtr doodad;
-} XkbUI_SelectRec,*XkbUI_SelectPtr;
-
- /*
- * legal values for 'type' field of a selection report
- */
-
-#define XkbUI_Keys 0
-#define XkbUI_Indicators 1
-#define XkbUI_TextLabels 2
-#define XkbUI_SolidShapes 3
-#define XkbUI_Outlines 4
-#define XkbUI_Logos 5
-#define XkbUI_Sections 6
-
- /*
- * legal values for 'which' field of a select call
- */
-#define XkbUI_KeysMask (1<<0)
-#define XkbUI_IndicatorsMask (1<<1)
-#define XkbUI_TextLabelsMask (1<<2)
-#define XkbUI_SolidShapesMask (1<<3)
-#define XkbUI_OutlinesMask (1<<4)
-#define XkbUI_LogosMask (1<<5)
-#define XkbUI_SectionsMask (1<<6)
-
- /*
- * legal values for key appearance flag
- */
-#define XkbUI_KeyDown (1<<0)
-#define XkbUI_Highlight (1<<1)
-
-_XFUNCPROTOBEGIN
-
-extern XkbUI_ViewPtr XkbUI_SimpleInit(
- Display * /* dpy */,
- Window /* win */,
- int /* width */,
- int /* height */
-);
-
-extern XkbUI_ViewPtr XkbUI_Init(
- Display * /* dpy */,
- Window /* win */,
- int /* width */,
- int /* height */,
- XkbDescPtr /* xkb */,
- XkbUI_ViewOptsPtr /* view */
-);
-
-extern Status XkbUI_SetViewOpts(
- XkbUI_ViewPtr /* view */,
- XkbUI_ViewOptsPtr /* opts */
-);
-
-extern Status XbUI_GetViewOpts(
- XkbUI_ViewPtr /* view */,
- XkbUI_ViewOptsPtr /* opts_rtrn */
-);
-
-extern Status XkbUI_SetCanvasSize(
- XkbUI_ViewPtr /* view */,
- int /* width */,
- int /* height */
-);
-
-extern Status XkbUI_GetCanvasSize(
- XkbUI_ViewPtr /* view */,
- int * /* width_rtrn */,
- int * /* height_rtrn */
-);
-
-extern Bool XkbUI_SetKeyAppearance(
- XkbUI_ViewPtr /* view */,
- KeyCode /* kc */,
- unsigned /* flags */
-);
-
-extern Bool XkbUI_SetKeyAppearanceByName(
- XkbUI_ViewPtr /* view */,
- XkbKeyNamePtr /* name */,
- unsigned /* flags */
-);
-
-extern Bool XkbUI_ResetKeyAppearance(
- XkbUI_ViewPtr /* view */,
- unsigned int /* mask */,
- unsigned int /* values */
-);
-
-extern Bool XkbUI_DrawRegion(
- XkbUI_ViewPtr /* view */,
- XRectangle * /* viewport */
-);
-
-extern Bool XkbUI_DrawChanged(
- XkbUI_ViewPtr /* view */,
- XRectangle * /* viewport */,
- XkbChangesPtr /* changes */,
- int /* num_keys */,
- XkbKeyNamePtr /* keys */
-);
-
-extern Bool XkbUI_Select(
- XkbUI_ViewPtr /* view */,
- XPoint * /* coord */,
- unsigned int /* which */,
- XkbSectionPtr /* section */
-);
-
-_XFUNCPROTOEND
-
-#endif /* XKBUI_H */
diff --git a/nx-X11/lib/xkbui/XKBuiPriv.h b/nx-X11/lib/xkbui/XKBuiPriv.h
deleted file mode 100644
index c78b08e5c..000000000
--- a/nx-X11/lib/xkbui/XKBuiPriv.h
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifndef XKBUIPRIV_H
-#define XKBUIPRIV_H 1
-/* $XConsortium: XKBuiPriv.h /main/2 1995/12/07 21:18:19 kaleb $ */
-/************************************************************
- Copyright (c) 1996 by Silicon Graphics Computer Systems, Inc.
-
- Permission to use, copy, modify, and distribute this
- software and its documentation for any purpose and without
- fee is hereby granted, provided that the above copyright
- notice appear in all copies and that both that copyright
- notice and this permission notice appear in supporting
- documentation, and that the name of Silicon Graphics not be
- used in advertising or publicity pertaining to distribution
- of the software without specific prior written permission.
- Silicon Graphics makes no representation about the suitability
- of this software for any purpose. It is provided "as is"
- without any express or implied warranty.
-
- SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
- SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
- GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
- DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
- THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
- ********************************************************/
-
-#include "XKBui.h"
-
-typedef struct _XkbUI_Point {
- double x;
- double y;
-} XkbUI_PointRec,*XkbUI_PointPtr;
-
-typedef struct _XkbUI_View {
- Display * dpy;
- XkbDescPtr xkb;
- Window win;
- GC gc;
- XkbUI_ViewOptsRec opts;
- unsigned int canvas_width;
- unsigned int canvas_height;
- unsigned char state[XkbMaxLegalKeyCode];
-
- double xscale;
- double yscale;
-} XkbUI_ViewRec;
-
-#define _XkbAlloc(s) malloc((s))
-#define _XkbCalloc(n,s) calloc((n),(s))
-#define _XkbRealloc(o,s) realloc((o),(s))
-#define _XkbTypedAlloc(t) ((t *)malloc(sizeof(t)))
-#define _XkbTypedCalloc(n,t) ((t *)calloc((n),sizeof(t)))
-#define _XkbTypedRealloc(o,n,t) \
- ((o)?(t *)realloc((o),(n)*sizeof(t)):_XkbTypedCalloc(n,t))
-#define _XkbClearElems(a,f,l,t) bzero(&(a)[f],((l)-(f)+1)*sizeof(t))
-#define _XkbFree(p) free(p)
-
- /*
- * private values for key appearance flags
- * must not conflict with values from XKBui.h
- */
-#define XkbUI_Obscured (1<<7)
-
-_XFUNCPROTOBEGIN
-
-_XFUNCPROTOEND
-
-#endif /* XKBUIPRIV_H */
diff --git a/nx-X11/lib/xkbui/xkbui-def.cpp b/nx-X11/lib/xkbui/xkbui-def.cpp
deleted file mode 100644
index 4facda60e..000000000
--- a/nx-X11/lib/xkbui/xkbui-def.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-LIBRARY xkbui
-VERSION LIBRARY_VERSION
-EXPORTS
- XbUI_GetViewOpts
- XkbUI_DrawChanged
- XkbUI_DrawRegion
- XkbUI_GetCanvasSize
- XkbUI_Init
- XkbUI_ResetKeyAppearance
- XkbUI_Select
- XkbUI_SetCanvasSize
- XkbUI_SetKeyAppearance
- XkbUI_SetKeyAppearanceByName
- XkbUI_SetViewOpts
- XkbUI_SimpleInit
-/* $XFree86$ */