Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | #!gmake\r |
2 | \r | |
3 | # XSLT processor - other possibilities like Saxon exist\r | |
4 | XSLT = xsltproc\r | |
5 | SED = sed\r | |
6 | CAT = cat\r | |
7 | FOPDIR = /cygdrive/c/man_pages/fop-0.94\r | |
8 | \r | |
9 | FOP = $(FOPDIR)/fop.bat\r | |
10 | CONFIG = $(FOPDIR)/user.cfg\r | |
11 | \r | |
12 | # Location of locally customized stylesheet, which imports\r | |
13 | # the Docbook modular stylesheets, and the specifically\r | |
14 | # stylesheet to convert Docbook+MathML => XHTML+MathML\r | |
15 | DB2XHTML = ./ogl_prep_xml.xsl\r | |
16 | #DB2PDF = ../../../../../../../../docbook-xsl-1.73.2/fo/docbook.xsl\r | |
17 | DB2PDF = ./opengl-pdf.xsl\r | |
18 | #CONFIG = ../../../../../../../../fop-0.94/user.cfg\r | |
19 | \r | |
20 | OUTFILE = glReference\r | |
21 | \r | |
22 | .SUFFIXES: .gl .xml .html .xhtml .ck.xhtml .tex .pdf .3G .tar .tar.gz\r | |
23 | .PHONY: man html pdf tex\r | |
24 | \r | |
25 | # ARB Ecosystem man pages\r | |
26 | ARBXML = \\r | |
27 | glBlendEquationSeparate.xml \\r | |
28 | glStencilFuncSeparate.xml \\r | |
29 | glStencilMaskSeparate.xml \\r | |
30 | glStencilOpSeparate.xml\r | |
31 | \r | |
32 | # SuperBible GL 1.5 man pages\r | |
33 | SUPERBIBLEXML = \\r | |
34 | glBeginQuery.xml \\r | |
35 | glBindBuffer.xml \\r | |
36 | glBufferData.xml \\r | |
37 | glBufferSubData.xml \\r | |
38 | glDeleteBuffers.xml \\r | |
39 | glDeleteQueries.xml \\r | |
40 | glGenBuffers.xml \\r | |
41 | glGenQueries.xml \\r | |
42 | glGetBufferParameteriv.xml \\r | |
43 | glGetBufferPointerv.xml \\r | |
44 | glGetBufferSubData.xml \\r | |
45 | glGetQueryiv.xml \\r | |
46 | glGetQueryObject.xml \\r | |
47 | glIsBuffer.xml \\r | |
48 | glIsQuery.xml \\r | |
49 | glMapBuffer.xml\r | |
50 | \r | |
51 | # 3Dlabs GL 2.0 man pages\r | |
52 | 3DLABSXML = \\r | |
53 | glAttachShader.xml \\r | |
54 | glBindAttribLocation.xml \\r | |
55 | glCompileShader.xml \\r | |
56 | glCreateProgram.xml \\r | |
57 | glCreateShader.xml \\r | |
58 | glDeleteProgram.xml \\r | |
59 | glDeleteShader.xml \\r | |
60 | glDetachShader.xml \\r | |
61 | glDrawBuffers.xml \\r | |
62 | glEnableVertexAttribArray.xml \\r | |
63 | glGetActiveAttrib.xml \\r | |
64 | glGetActiveUniform.xml \\r | |
65 | glGetAttachedShaders.xml \\r | |
66 | glGetAttribLocation.xml \\r | |
67 | glGetProgram.xml \\r | |
68 | glGetProgramInfoLog.xml \\r | |
69 | glGetShader.xml \\r | |
70 | glGetShaderInfoLog.xml \\r | |
71 | glGetShaderSource.xml \\r | |
72 | glGetUniform.xml \\r | |
73 | glGetUniformLocation.xml \\r | |
74 | glGetVertexAttrib.xml \\r | |
75 | glGetVertexAttribPointerv.xml \\r | |
76 | glIsProgram.xml \\r | |
77 | glIsShader.xml \\r | |
78 | glLinkProgram.xml \\r | |
79 | glShaderSource.xml \\r | |
80 | glUniform.xml \\r | |
81 | glUseProgram.xml \\r | |
82 | glValidateProgram.xml \\r | |
83 | glVertexAttrib.xml \\r | |
84 | glVertexAttribPointer.xml\r | |
85 | \r | |
86 | # SGI OpenGL 1.4 man pages\r | |
87 | SGIGLXML = \\r | |
88 | glAccum.xml \\r | |
89 | glActiveTexture.xml \\r | |
90 | glAlphaFunc.xml \\r | |
91 | glAreTexturesResident.xml \\r | |
92 | glArrayElement.xml \\r | |
93 | glBegin.xml \\r | |
94 | glBindTexture.xml \\r | |
95 | glBitmap.xml \\r | |
96 | glBlendColor.xml \\r | |
97 | glBlendEquation.xml \\r | |
98 | glBlendFuncSeparate.xml \\r | |
99 | glBlendFunc.xml \\r | |
100 | glCallLists.xml \\r | |
101 | glCallList.xml \\r | |
102 | glClearAccum.xml \\r | |
103 | glClearColor.xml \\r | |
104 | glClearDepth.xml \\r | |
105 | glClearIndex.xml \\r | |
106 | glClearStencil.xml \\r | |
107 | glClear.xml \\r | |
108 | glClientActiveTexture.xml \\r | |
109 | glClipPlane.xml \\r | |
110 | glColorMask.xml \\r | |
111 | glColorMaterial.xml \\r | |
112 | glColorPointer.xml \\r | |
113 | glColorSubTable.xml \\r | |
114 | glColorTableParameter.xml \\r | |
115 | glColorTable.xml \\r | |
116 | glColor.xml \\r | |
117 | glCompressedTexImage1D.xml \\r | |
118 | glCompressedTexImage2D.xml \\r | |
119 | glCompressedTexImage3D.xml \\r | |
120 | glCompressedTexSubImage1D.xml \\r | |
121 | glCompressedTexSubImage2D.xml \\r | |
122 | glCompressedTexSubImage3D.xml \\r | |
123 | glConvolutionFilter1D.xml \\r | |
124 | glConvolutionFilter2D.xml \\r | |
125 | glConvolutionParameter.xml \\r | |
126 | glCopyColorSubTable.xml \\r | |
127 | glCopyColorTable.xml \\r | |
128 | glCopyConvolutionFilter1D.xml \\r | |
129 | glCopyConvolutionFilter2D.xml \\r | |
130 | glCopyPixels.xml \\r | |
131 | glCopyTexImage1D.xml \\r | |
132 | glCopyTexImage2D.xml \\r | |
133 | glCopyTexSubImage1D.xml \\r | |
134 | glCopyTexSubImage2D.xml \\r | |
135 | glCopyTexSubImage3D.xml \\r | |
136 | glCullFace.xml \\r | |
137 | glDeleteLists.xml \\r | |
138 | glDeleteTextures.xml \\r | |
139 | glDepthFunc.xml \\r | |
140 | glDepthMask.xml \\r | |
141 | glDepthRange.xml \\r | |
142 | glDrawArrays.xml \\r | |
143 | glDrawBuffer.xml \\r | |
144 | glDrawElements.xml \\r | |
145 | glDrawPixels.xml \\r | |
146 | glDrawRangeElements.xml \\r | |
147 | glEdgeFlagPointer.xml \\r | |
148 | glEdgeFlag.xml \\r | |
149 | glEnableClientState.xml \\r | |
150 | glEnable.xml \\r | |
151 | glEvalCoord.xml \\r | |
152 | glEvalMesh.xml \\r | |
153 | glEvalPoint.xml \\r | |
154 | glFeedbackBuffer.xml \\r | |
155 | glFinish.xml \\r | |
156 | glFlush.xml \\r | |
157 | glFogCoordPointer.xml \\r | |
158 | glFogCoord.xml \\r | |
159 | glFog.xml \\r | |
160 | glFrontFace.xml \\r | |
161 | glFrustum.xml \\r | |
162 | glGenLists.xml \\r | |
163 | glGenTextures.xml \\r | |
164 | glGetClipPlane.xml \\r | |
165 | glGetColorTableParameter.xml \\r | |
166 | glGetColorTable.xml \\r | |
167 | glGetCompressedTexImage.xml \\r | |
168 | glGetConvolutionFilter.xml \\r | |
169 | glGetConvolutionParameter.xml \\r | |
170 | glGetError.xml \\r | |
171 | glGetHistogramParameter.xml \\r | |
172 | glGetHistogram.xml \\r | |
173 | glGetLight.xml \\r | |
174 | glGetMap.xml \\r | |
175 | glGetMaterial.xml \\r | |
176 | glGetMinmaxParameter.xml \\r | |
177 | glGetMinmax.xml \\r | |
178 | glGetPixelMap.xml \\r | |
179 | glGetPointerv.xml \\r | |
180 | glGetPolygonStipple.xml \\r | |
181 | glGetSeparableFilter.xml \\r | |
182 | glGetString.xml \\r | |
183 | glGetTexEnv.xml \\r | |
184 | glGetTexGen.xml \\r | |
185 | glGetTexImage.xml \\r | |
186 | glGetTexLevelParameter.xml \\r | |
187 | glGetTexParameter.xml \\r | |
188 | glGet.xml \\r | |
189 | glHint.xml \\r | |
190 | glHistogram.xml \\r | |
191 | glIndexMask.xml \\r | |
192 | glIndexPointer.xml \\r | |
193 | glIndex.xml \\r | |
194 | glInitNames.xml \\r | |
195 | glInterleavedArrays.xml \\r | |
196 | glIsEnabled.xml \\r | |
197 | glIsList.xml \\r | |
198 | glIsTexture.xml \\r | |
199 | glLightModel.xml \\r | |
200 | glLight.xml \\r | |
201 | glLineStipple.xml \\r | |
202 | glLineWidth.xml \\r | |
203 | glListBase.xml \\r | |
204 | glLoadIdentity.xml \\r | |
205 | glLoadMatrix.xml \\r | |
206 | glLoadName.xml \\r | |
207 | glLoadTransposeMatrix.xml \\r | |
208 | glLogicOp.xml \\r | |
209 | glMap1.xml \\r | |
210 | glMap2.xml \\r | |
211 | glMapGrid.xml \\r | |
212 | glMaterial.xml \\r | |
213 | glMatrixMode.xml \\r | |
214 | glMinmax.xml \\r | |
215 | glMultiDrawArrays.xml \\r | |
216 | glMultiDrawElements.xml \\r | |
217 | glMultiTexCoord.xml \\r | |
218 | glMultMatrix.xml \\r | |
219 | glMultTransposeMatrix.xml \\r | |
220 | glNewList.xml \\r | |
221 | glNormalPointer.xml \\r | |
222 | glNormal.xml \\r | |
223 | glOrtho.xml \\r | |
224 | glPassThrough.xml \\r | |
225 | glPixelMap.xml \\r | |
226 | glPixelStore.xml \\r | |
227 | glPixelTransfer.xml \\r | |
228 | glPixelZoom.xml \\r | |
229 | glPointParameter.xml \\r | |
230 | glPointSize.xml \\r | |
231 | glPolygonMode.xml \\r | |
232 | glPolygonOffset.xml \\r | |
233 | glPolygonStipple.xml \\r | |
234 | glPrioritizeTextures.xml \\r | |
235 | glPushAttrib.xml \\r | |
236 | glPushClientAttrib.xml \\r | |
237 | glPushMatrix.xml \\r | |
238 | glPushName.xml \\r | |
239 | glRasterPos.xml \\r | |
240 | glReadBuffer.xml \\r | |
241 | glReadPixels.xml \\r | |
242 | glRect.xml \\r | |
243 | glRenderMode.xml \\r | |
244 | glResetHistogram.xml \\r | |
245 | glResetMinmax.xml \\r | |
246 | glRotate.xml \\r | |
247 | glSampleCoverage.xml \\r | |
248 | glScale.xml \\r | |
249 | glScissor.xml \\r | |
250 | glSecondaryColorPointer.xml \\r | |
251 | glSecondaryColor.xml \\r | |
252 | glSelectBuffer.xml \\r | |
253 | glSeparableFilter2D.xml \\r | |
254 | glShadeModel.xml \\r | |
255 | glStencilFunc.xml \\r | |
256 | glStencilMask.xml \\r | |
257 | glStencilOp.xml \\r | |
258 | glTexCoordPointer.xml \\r | |
259 | glTexCoord.xml \\r | |
260 | glTexEnv.xml \\r | |
261 | glTexGen.xml \\r | |
262 | glTexImage1D.xml \\r | |
263 | glTexImage2D.xml \\r | |
264 | glTexImage3D.xml \\r | |
265 | glTexParameter.xml \\r | |
266 | glTexSubImage1D.xml \\r | |
267 | glTexSubImage2D.xml \\r | |
268 | glTexSubImage3D.xml \\r | |
269 | glTranslate.xml \\r | |
270 | glVertexPointer.xml \\r | |
271 | glVertex.xml \\r | |
272 | glViewport.xml \\r | |
273 | glWindowPos.xml\r | |
274 | \r | |
275 | # SGI GLU 1.3 man pages\r | |
276 | SGIGLUXML = \\r | |
277 | gluBeginCurve.xml \\r | |
278 | gluBeginPolygon.xml \\r | |
279 | gluBeginSurface.xml \\r | |
280 | gluBeginTrim.xml \\r | |
281 | gluBuild1DMipmapLevels.xml \\r | |
282 | gluBuild1DMipmaps.xml \\r | |
283 | gluBuild2DMipmapLevels.xml \\r | |
284 | gluBuild2DMipmaps.xml \\r | |
285 | gluBuild3DMipmapLevels.xml \\r | |
286 | gluBuild3DMipmaps.xml \\r | |
287 | gluCheckExtension.xml \\r | |
288 | gluCylinder.xml \\r | |
289 | gluDeleteNurbsRenderer.xml \\r | |
290 | gluDeleteQuadric.xml \\r | |
291 | gluDeleteTess.xml \\r | |
292 | gluDisk.xml \\r | |
293 | gluErrorString.xml \\r | |
294 | gluGetNurbsProperty.xml \\r | |
295 | gluGetString.xml \\r | |
296 | gluGetTessProperty.xml \\r | |
297 | gluLoadSamplingMatrices.xml \\r | |
298 | gluLookAt.xml \\r | |
299 | gluNewNurbsRenderer.xml \\r | |
300 | gluNewQuadric.xml \\r | |
301 | gluNewTess.xml \\r | |
302 | gluNextContour.xml \\r | |
303 | gluNurbsCallbackDataEXT.xml \\r | |
304 | gluNurbsCallbackData.xml \\r | |
305 | gluNurbsCallback.xml \\r | |
306 | gluNurbsCurve.xml \\r | |
307 | gluNurbsProperty.xml \\r | |
308 | gluNurbsSurface.xml \\r | |
309 | gluOrtho2D.xml \\r | |
310 | gluPartialDisk.xml \\r | |
311 | gluPerspective.xml \\r | |
312 | gluPickMatrix.xml \\r | |
313 | gluProject.xml \\r | |
314 | gluPwlCurve.xml \\r | |
315 | gluQuadricCallback.xml \\r | |
316 | gluQuadricDrawStyle.xml \\r | |
317 | gluQuadricNormals.xml \\r | |
318 | gluQuadricOrientation.xml \\r | |
319 | gluQuadricTexture.xml \\r | |
320 | gluScaleImage.xml \\r | |
321 | gluSphere.xml \\r | |
322 | gluTessBeginContour.xml \\r | |
323 | gluTessBeginPolygon.xml \\r | |
324 | gluTessCallback.xml \\r | |
325 | gluTessEndPolygon.xml \\r | |
326 | gluTessNormal.xml \\r | |
327 | gluTessProperty.xml \\r | |
328 | gluTessVertex.xml \\r | |
329 | gluUnProject4.xml \\r | |
330 | gluUnProject.xml\r | |
331 | \r | |
332 | # SGI GLX 1.4 man pages\r | |
333 | SGIGLXXML = \\r | |
334 | glXChooseFBConfig.xml \\r | |
335 | glXChooseVisual.xml \\r | |
336 | glXCopyContext.xml \\r | |
337 | glXCreateContext.xml \\r | |
338 | glXCreateGLXPixmap.xml \\r | |
339 | glXCreateNewContext.xml \\r | |
340 | glXCreatePbuffer.xml \\r | |
341 | glXCreatePixmap.xml \\r | |
342 | glXCreateWindow.xml \\r | |
343 | glXDestroyContext.xml \\r | |
344 | glXDestroyGLXPixmap.xml \\r | |
345 | glXDestroyPbuffer.xml \\r | |
346 | glXDestroyPixmap.xml \\r | |
347 | glXDestroyWindow.xml \\r | |
348 | glXFreeContextEXT.xml \\r | |
349 | glXGetClientString.xml \\r | |
350 | glXGetConfig.xml \\r | |
351 | glXGetContextIDEXT.xml \\r | |
352 | glXGetCurrentContext.xml \\r | |
353 | glXGetCurrentDisplay.xml \\r | |
354 | glXGetCurrentDrawable.xml \\r | |
355 | glXGetCurrentReadDrawable.xml \\r | |
356 | glXGetFBConfigAttrib.xml \\r | |
357 | glXGetFBConfigs.xml \\r | |
358 | glXGetProcAddress.xml \\r | |
359 | glXGetSelectedEvent.xml \\r | |
360 | glXGetVisualFromFBConfig.xml \\r | |
361 | glXImportContextEXT.xml \\r | |
362 | glXIntro.xml \\r | |
363 | glXIsDirect.xml \\r | |
364 | glXMakeContextCurrent.xml \\r | |
365 | glXMakeCurrent.xml \\r | |
366 | glXQueryContextInfoEXT.xml \\r | |
367 | glXQueryContext.xml \\r | |
368 | glXQueryExtensionsString.xml \\r | |
369 | glXQueryExtension.xml \\r | |
370 | glXQueryServerString.xml \\r | |
371 | glXQueryVersion.xml \\r | |
372 | glXSelectEvent.xml \\r | |
373 | glXSwapBuffers.xml \\r | |
374 | glXUseXFont.xml \\r | |
375 | glXWaitGL.xml \\r | |
376 | glXWaitX.xml\r | |
377 | \r | |
378 | # XML man page source and XHTML targets\r | |
379 | GLXML = $(SGIGLXML) $(3DLABSXML) $(SUPERBIBLEXML) $(ARBXML)\r | |
380 | GLUXML = $(SGIGLUXML)\r | |
381 | GLXXML = $(SGIGLXXML)\r | |
382 | XML = $(GLXML) $(GLUXML) $(GLXXML)\r | |
383 | \r | |
384 | \r | |
385 | default: pdf\r | |
386 | \r | |
387 | %.xml: ../%.xml ogl_prep_xml.xsl\r | |
388 | $(XSLT) --xinclude -o $@ $(DB2XHTML) $<\r | |
389 | \r | |
390 | $(OUTFILE).xml.tmp: $(ARBXML)\r | |
391 | $(RM) glReference.xml.tmp\r | |
392 | $(CAT) header >> $(OUTFILE).xml.tmp\r | |
393 | $(CAT) gl*.xml >> $(OUTFILE).xml.tmp\r | |
394 | $(CAT) footer >> $(OUTFILE).xml.tmp\r | |
395 | \r | |
396 | %.pdf: $(OUTFILE).xml.tmp\r | |
397 | # $(FOP) -c $(CONFIG) -xml $(OUTFILE).xml.tmp -xsl $(DB2PDF) -pdf $(OUTFILE).pdf\r | |
398 | $(FOP) -xml $(OUTFILE).xml.tmp -xsl $(DB2PDF) -pdf $(OUTFILE).pdf\r | |
399 | \r | |
400 | \r | |
401 | \r | |
402 | #default: pdf\r | |
403 | \r | |
404 | #default: remove_temp $(XML) xml pdf\r | |
405 | \r | |
406 | xml: glReference.xml\r | |
407 | \r | |
408 | pdf: glReference.pdf\r | |
409 | \r | |
410 | remove_temp:\r | |
411 | $(RM) *.tmp\r | |
412 | \r | |
413 | clean:\r | |
414 | $(RM) $(XML) $(OUTFILE).pdf *.tmp\r |