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