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