mesa/vbo: fix compile and replay of nodes ending in a FALLBACK
[mesa.git] / progs / trivial / Makefile
1 # progs/tests/Makefile
2
3
4 # These programs aren't intended to be included with the normal distro.
5 # They're not too interesting but they're good for testing.
6
7 TOP = ../..
8 include $(TOP)/configs/current
9
10
11 LIBS = -L$(TOP)/$(LIB_DIR) -l $(GLEW_LIB) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
12
13 SOURCES = \
14 clear-fbo-tex.c \
15 clear-fbo.c \
16 clear-scissor.c \
17 clear-undefined.c \
18 clear-repeat.c \
19 clear-random.c \
20 clear.c \
21 dlist-dangling.c \
22 dlist-flat-tri.c \
23 dlist-mat-tri.c \
24 dlist-tri-flat-tri.c \
25 dlist-tri-mat-tri.c \
26 dlist-recursive-call.c \
27 dlist-begin-call-end.c \
28 dlist-edgeflag-dangling.c \
29 dlist-edgeflag.c \
30 dlist-degenerate.c \
31 drawarrays.c \
32 draw2arrays.c \
33 drawelements.c \
34 drawrange.c \
35 flat-clip.c \
36 fs-tri.c \
37 line-clip.c \
38 line-cull.c \
39 line-flat.c \
40 line-smooth.c \
41 line-stipple-wide.c \
42 line-userclip-clip.c \
43 line-userclip-nop-clip.c \
44 line-userclip-nop.c \
45 line-userclip.c \
46 line-wide.c \
47 line.c \
48 lineloop-clip.c \
49 lineloop-elts.c \
50 lineloop.c \
51 linestrip-flat-stipple.c \
52 linestrip-stipple-wide.c \
53 linestrip-stipple.c \
54 linestrip.c \
55 long-fixed-func.c \
56 pgon-mode.c \
57 point-clip.c \
58 point-param.c \
59 point-sprite.c \
60 point-wide.c \
61 point-wide-smooth.c \
62 point.c \
63 poly-flat.c \
64 poly-flat-clip.c \
65 poly-flat-unfilled-clip.c \
66 poly-unfilled.c \
67 poly.c \
68 quad-clip-all-vertices.c \
69 quad-clip-nearplane.c \
70 quad-clip.c \
71 quad-degenerate.c \
72 quad-flat.c \
73 quad-offset-factor.c \
74 quad-offset-unfilled.c \
75 quad-offset-units.c \
76 quad-tex-2d.c \
77 quad-tex-3d.c \
78 quad-tex-alpha.c \
79 quad-tex-pbo.c \
80 quad-tex-sub.c \
81 quad-unfilled-clip.c \
82 quad-unfilled-stipple.c \
83 quad-unfilled.c \
84 quad.c \
85 quads.c \
86 quadstrip-clip.c \
87 quadstrip-cont.c \
88 quadstrip-flat.c \
89 quadstrip.c \
90 tri-alpha.c \
91 tri-array-interleaved.c \
92 tri-blend-color.c \
93 tri-blend-max.c \
94 tri-blend-min.c \
95 tri-blend-revsub.c \
96 tri-blend-sub.c \
97 tri-blend.c \
98 tri-clip.c \
99 tri-cull-both.c \
100 tri-cull.c \
101 tri-logicop-none.c \
102 tri-logicop-xor.c \
103 tri-dlist.c \
104 tri-edgeflag.c \
105 tri-fbo-tex-mip.c \
106 tri-fbo-tex.c \
107 tri-fbo.c \
108 tri-flat-clip.c \
109 tri-flat.c \
110 tri-fog.c \
111 tri-fp.c \
112 tri-fp-const-imm.c \
113 tri-lit.c \
114 tri-lit-material.c \
115 tri-mask-tri.c \
116 tri-orig.c \
117 tri-query.c \
118 tri-repeat.c \
119 tri-scissor-tri.c \
120 tri-stencil.c \
121 tri-stipple.c \
122 tri-multitex-vbo.c \
123 tri-tex.c \
124 tri-tex-3d.c \
125 tri-tri.c \
126 tri-unfilled-fog.c \
127 tri-unfilled-edgeflag.c \
128 tri-unfilled-clip.c \
129 tri-unfilled-smooth.c \
130 tri-unfilled-tri.c \
131 tri-unfilled-tri-lit.c \
132 tri-unfilled-userclip-stip.c \
133 tri-unfilled-userclip.c \
134 tri-unfilled.c \
135 tri-userclip.c \
136 tri-viewport.c \
137 tri-z-eq.c \
138 tri-z.c \
139 tri.c \
140 trifan-flat.c \
141 trifan-flat-clip.c \
142 trifan-flat-unfilled-clip.c \
143 trifan-unfilled.c \
144 trifan.c \
145 tristrip-clip.c \
146 tristrip-flat.c \
147 tristrip.c \
148 vbo-drawarrays.c \
149 vbo-noninterleaved.c \
150 vbo-drawelements.c \
151 vbo-drawrange.c \
152 vp-array.c \
153 vp-array-int.c \
154 vp-clip.c \
155 vp-line-clip.c \
156 vp-tri.c \
157 vp-tri-invariant.c \
158 vp-tri-swap.c \
159 vp-tri-tex.c \
160 vp-tri-imm.c \
161 vp-tri-cb.c \
162 vp-tri-cb-pos.c \
163 vp-tri-cb-tex.c \
164 vp-unfilled.c
165
166 PROGS = $(SOURCES:%.c=%)
167
168 INCLUDES = -I. -I$(TOP)/include -I../samples
169
170 UTIL_FILES = readtex.h readtex.c
171
172
173 ##### RULES #####
174
175 .SUFFIXES:
176 .SUFFIXES: .c
177
178 .c:
179 $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
180
181 .c.o:
182 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
183
184 .S.o:
185 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
186
187
188 ##### TARGETS #####
189
190 default: $(UTIL_FILES) $(PROGS)
191
192 clean:
193 -rm -f $(PROGS)
194 -rm -f *.o
195 -rm -f getproclist.h
196
197
198 # auto code generation
199 getprocaddress: getprocaddress.c getproclist.h
200
201 getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
202 python getprocaddress.py > getproclist.h
203
204
205 texrect: texrect.o readtex.o
206 $(APP_CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
207
208 texrect.o: texrect.c readtex.h
209 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
210
211 invert: invert.o readtex.o
212 $(APP_CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
213
214 invert.o: invert.c readtex.h
215 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
216
217 readtex.o: readtex.c
218 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
219
220
221 readtex.h: $(TOP)/progs/util/readtex.h
222 ln -s $(TOP)/progs/util/readtex.h .
223
224 readtex.c: $(TOP)/progs/util/readtex.c
225 ln -s $(TOP)/progs/util/readtex.c .
226
227
228 fs-tri: fs-tri.c extfuncs.h
229
230
231 extfuncs.h: $(TOP)/progs/util/extfuncs.h
232 cp $< .
233
234
235 # Emacs tags
236 tags:
237 etags `find . -name \*.[ch]` `find ../include`