include more low-level bindings
[clinton/guile-figl.git] / upstream-man-pages / manglsl / xhtml / Makefile
1 #!gmake
2
3 # XSLT processor - other possibilities like Saxon exist
4 XSLT = xsltproc --nonet
5 SED = sed
6 PERL = perl
7
8 # Location of locally customized stylesheet, which imports
9 # the Docbook modular stylesheets, and specifically the
10 # stylesheet to convert Docbook+MathML => XHTML+MathML
11 DB2XHTML = opengl-man.xsl
12 # ../../mancommon/opengl-man.xsl
13 PREPROCESSOR = preprocess.sed
14 POSTPROCESSOR = postprocess.sed
15
16 .SUFFIXES: .gl .xml .html .xhtml .ck.xhtml .tex .pdf .3G .tar .tar.gz
17 .PHONY: man html pdf tex
18
19 # ../../mancommon/opengl-man.xsl
20
21 %.xml: ../%.xml $(DB2XHTML) $(PREPROCESSOR) $(POSTPROCESSOR)
22 $(SED) -f $(PREPROCESSOR) $< > $@.pre
23 $(XSLT) --xinclude -o $@.tmp $(DB2XHTML) $@.pre
24 $(SED) -f $(POSTPROCESSOR) $@.tmp > $@
25 $(RM) $@.pre
26 $(RM) $@.tmp
27
28 Angle_and_Trigonometry_Functions = \
29 radians.xml \
30 degrees.xml \
31 sin.xml \
32 cos.xml \
33 tan.xml \
34 asin.xml \
35 acos.xml \
36 atan.xml \
37 sinh.xml \
38 cosh.xml \
39 tanh.xml \
40 asinh.xml \
41 acosh.xml \
42 atanh.xml
43
44 Exponential_Functions = \
45 pow.xml \
46 exp.xml \
47 log.xml \
48 exp2.xml \
49 log2.xml \
50 sqrt.xml \
51 inversesqrt.xml
52
53 Common_Functions = \
54 abs.xml \
55 sign.xml \
56 floor.xml \
57 trunc.xml \
58 round.xml \
59 roundEven.xml \
60 ceil.xml \
61 fract.xml \
62 mod.xml \
63 modf.xml \
64 min.xml \
65 max.xml \
66 clamp.xml \
67 mix.xml \
68 step.xml \
69 smoothstep.xml \
70 isnan.xml \
71 isinf.xml \
72 floatBitsToInt.xml \
73 intBitsToFloat.xml \
74 fma.xml \
75 frexp.xml \
76 ldexp.xml
77
78 FloatingPoint_Pack_and_Unpack_Functions = \
79 packUnorm2x16.xml \
80 unpackUnorm2x16.xml \
81 packDouble2x32.xml \
82 unpackDouble2x32.xml \
83 packHalf2x16.xml \
84 unpackHalf2x16.xml
85
86 Geometric_Functions = \
87 length.xml \
88 distance.xml \
89 dot.xml \
90 cross.xml \
91 normalize.xml \
92 faceforward.xml \
93 reflect.xml \
94 refract.xml
95
96 Matrix_Functions = \
97 matrixCompMult.xml \
98 outerProduct.xml \
99 transpose.xml \
100 determinant.xml \
101 inverse.xml
102
103 Vector_Relational_Functions = \
104 lessThan.xml \
105 lessThanEqual.xml \
106 greaterThan.xml \
107 greaterThanEqual.xml \
108 equal.xml \
109 notEqual.xml \
110 any.xml \
111 all.xml \
112 not.xml
113
114 Integer_Functions = \
115 uaddCarry.xml \
116 usubBorrow.xml \
117 umulExtended.xml \
118 bitfieldExtract.xml \
119 bitfieldInsert.xml \
120 bitfieldReverse.xml \
121 bitCount.xml \
122 findLSB.xml \
123 findMSB.xml
124
125 Texture_Query_Functions = \
126 textureSize.xml \
127 textureQueryLod.xml \
128 textureQueryLevels.xml
129
130 Texel_Lookup_Functions = \
131 texture.xml \
132 textureProj.xml \
133 textureLod.xml \
134 textureOffset.xml \
135 texelFetch.xml \
136 texelFetchOffset.xml \
137 textureProjOffset.xml \
138 textureLodOffset.xml \
139 textureProjLod.xml \
140 textureProjLodOffset.xml \
141 textureGrad.xml \
142 textureGradOffset.xml \
143 textureProjGrad.xml \
144 textureProjGradOffset.xml
145
146 Texture_Gather_Functions = \
147 textureGather.xml \
148 textureGatherOffset.xml \
149 textureGatherOffsets.xml
150
151 Derivative_Functions = \
152 dFdx.xml \
153 fwidth.xml
154
155 Interpolation_Functions = \
156 interpolateAtCentroid.xml \
157 interpolateAtSample.xml \
158 interpolateAtOffset.xml
159
160 Noise_Functions = \
161 noise.xml
162
163 Geometry_Shader_Functions = \
164 EmitStreamVertex.xml \
165 EmitVertex.xml \
166 EndStreamPrimitive.xml \
167 EndPrimitive.xml
168
169 Invocation_Control_Functions = \
170 barrier.xml
171
172 Atomic_Counter_Functions = \
173 atomicCounterIncrement.xml \
174 atomicCounterDecrement.xml \
175 atomicCounter.xml
176
177 Image_Functions = \
178 imageLoad.xml \
179 imageStore.xml \
180 imageAtomicAdd.xml \
181 imageAtomicAnd.xml \
182 imageAtomicOr.xml \
183 imageAtomicXor.xml \
184 imageAtomicMin.xml \
185 imageAtomicMax.xml \
186 imageAtomicExchange.xml \
187 imageAtomicCompSwap.xml \
188 imageSize.xml
189
190 Barrier_Functions =\
191 memoryBarrier.xml \
192 memoryBarrierAtomicCounter.xml \
193 memoryBarrierBuffer.xml \
194 memoryBarrierImage.xml \
195 memoryBarrierShared.xml \
196 groupMemoryBarrier.xml
197
198 Atomic_Memory_Functions = \
199 atomicAdd.xml \
200 atomicMin.xml \
201 atomicMax.xml \
202 atomicAnd.xml \
203 atomicOr.xml \
204 atomicXor.xml \
205 atomicExchange.xml \
206 atomicCompSwap.xml
207
208 Builtin_Variables = \
209 gl_ClipDistance.xml \
210 gl_FragCoord.xml \
211 gl_FragDepth.xml \
212 gl_FrontFacing.xml \
213 gl_GlobalInvocationID.xml \
214 gl_InstanceID.xml \
215 gl_InvocationID.xml \
216 gl_Layer.xml \
217 gl_LocalInvocationID.xml \
218 gl_LocalInvocationIndex.xml \
219 gl_NumSamples.xml \
220 gl_NumWorkGroups.xml \
221 gl_PatchVerticesIn.xml \
222 gl_PointCoord.xml \
223 gl_PointSize.xml \
224 gl_Position.xml \
225 gl_PrimitiveID.xml \
226 gl_PrimitiveIDIn.xml \
227 gl_SampleID.xml \
228 gl_SampleMask.xml \
229 gl_SampleMaskIn.xml \
230 gl_SamplePosition.xml \
231 gl_TessCoord.xml \
232 gl_TessLevelInner.xml \
233 gl_TessLevelOuter.xml \
234 gl_VertexID.xml \
235 gl_ViewportIndex.xml \
236 gl_WorkGroupID.xml \
237 gl_WorkGroupSize.xml
238
239 GLSLXML = \
240 $(Angle_and_Trigonometry_Functions) \
241 $(Exponential_Functions) \
242 $(Common_Functions) \
243 $(FloatingPoint_Pack_and_Unpack_Functions) \
244 $(Geometric_Functions) \
245 $(Matrix_Functions) \
246 $(Vector_Relational_Functions) \
247 $(Integer_Functions) \
248 $(Texture_Query_Functions) \
249 $(Texel_Lookup_Functions) \
250 $(Texture_Gather_Functions) \
251 $(Derivative_Functions) \
252 $(Interpolation_Functions) \
253 $(Noise_Functions) \
254 $(Geometry_Shader_Functions) \
255 $(Invocation_Control_Functions) \
256 $(Atomic_Counter_Functions) \
257 $(Image_Functions) \
258 $(Barrier_Functions) \
259 $(Atomic_Memory_Functions) \
260 \
261 $(Builtin_Variables)
262
263 XML = $(GLSLXML)
264
265 default: all
266
267 index.html: makeindex.pl $(XML) Makefile
268 $(PERL) makeindex.pl $(dir $<) $(dir $<).. > $@
269
270 all: $(XML) index.html Makefile
271
272 clean:
273 $(RM) $(TEX_FILES) *.log *.aux *.toc *.dvi *.out
274
275 clobber: clean
276 $(RM) $(XML) $(PDF_FILES)