tests: added arbgpuprog, for compile-testing ARB vertex/fragment programs
[mesa.git] / progs / tests / 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$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
12
13 SOURCES = \
14 afsmultiarb.c \
15 antialias.c \
16 arbfpspec.c \
17 arbfptest1.c \
18 arbfptexture.c \
19 arbfptrig.c \
20 arbgpuprog.c \
21 arbnpot.c \
22 arbnpot-mipmap.c \
23 arbvptest1.c \
24 arbvptest3.c \
25 arbvptorus.c \
26 arbvpwarpmesh.c \
27 arraytexture.c \
28 blendminmax.c \
29 blendsquare.c \
30 blendxor.c \
31 bufferobj.c \
32 bumpmap.c \
33 bug_3050.c \
34 bug_3101.c \
35 bug_3195.c \
36 bug_texstore_i8.c \
37 calibrate_rast.c \
38 copypixrate.c \
39 crossbar.c \
40 cva.c \
41 drawbuffers.c \
42 exactrast.c \
43 floattex.c \
44 fbotest1.c \
45 fbotest2.c \
46 fillrate.c \
47 fog.c \
48 fogcoord.c \
49 fptest1.c \
50 fptexture.c \
51 getprocaddress.c \
52 getteximage.c \
53 glutfx.c \
54 interleave.c \
55 invert.c \
56 jkrahntest.c \
57 lineclip.c \
58 manytex.c \
59 mapbufrange.c \
60 mapvbo.c \
61 minmag.c \
62 mipgen.c \
63 mipmap_comp.c \
64 mipmap_limits.c \
65 mipmap_view.c \
66 multipal.c \
67 no_s3tc.c \
68 packedpixels.c \
69 pbo.c \
70 prog_parameter.c \
71 quads.c \
72 random.c \
73 readrate.c \
74 rubberband.c \
75 scissor.c \
76 scissor-viewport.c \
77 seccolor.c \
78 shader_api.c \
79 sharedtex.c \
80 stencil_twoside.c \
81 stencilwrap.c \
82 stencil_wrap.c \
83 streaming_rect \
84 subtex \
85 subtexrate.c \
86 tex1d.c \
87 texcompress2.c \
88 texdown \
89 texfilt.c \
90 texline.c \
91 texobj.c \
92 texobjshare.c \
93 texrect.c \
94 texwrap.c \
95 unfilledclip.c \
96 vao-01.c \
97 vao-02.c \
98 vparray.c \
99 vptest1.c \
100 vptest2.c \
101 vptest3.c \
102 vptorus.c \
103 vpwarpmesh.c \
104 yuvrect.c \
105 yuvsquare.c \
106 zcomp.c \
107 zdrawpix.c \
108 zreaddraw.c
109
110 PROGS = $(SOURCES:%.c=%)
111
112 INCLUDES = -I. -I$(TOP)/include
113
114 UTIL_FILES = readtex.h readtex.c
115
116
117 ##### TARGETS #####
118
119 default: $(UTIL_FILES) $(PROGS)
120
121 clean:
122 -rm -f $(PROGS)
123 -rm -f *.o
124 -rm -f getproclist.h
125
126 ##### RULES #####
127
128 .SUFFIXES:
129 .SUFFIXES: .c
130
131 .c:
132 $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
133
134 .c.o:
135 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
136
137 .S.o:
138 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
139
140 # auto code generation
141 getprocaddress: getprocaddress.c getproclist.h
142
143 getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
144 python getprocaddress.py > getproclist.h
145
146 arraytexture: arraytexture.o readtex.o
147 $(APP_CC) $(CFLAGS) arraytexture.o readtex.o $(LIBS) -o $@
148
149 arraytexture.o: arraytexture.c readtex.h
150 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) arraytexture.c -o $@
151
152 afsmultiarb: afsmultiarb.o readtex.o
153 $(APP_CC) $(CFLAGS) $(LDFLAGS) afsmultiarb.o readtex.o $(LIBS) -o $@
154
155 afsmultiarb.o: afsmultiarb.c readtex.h
156 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) afsmultiarb.c -o $@
157
158 bumpmap: bumpmap.o readtex.o
159 $(CC) $(CFLAGS) $(LDFLAGS) bumpmap.o readtex.o $(LIBS) -o $@
160
161 bumpmap.o: bumpmap.c readtex.h
162 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) bumpmap.c -o $@
163
164 drawbuffers: drawbuffers.o
165 $(APP_CC) $(CFLAGS) $(LDFLAGS) drawbuffers.o $(LIBS) -o $@
166
167 drawbuffers.o: drawbuffers.c extfuncs.h
168 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) drawbuffers.c -o $@
169
170 texrect: texrect.o readtex.o
171 $(APP_CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
172
173 texrect.o: texrect.c readtex.h
174 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) texrect.c -o $@
175
176 bug_3195: bug_3195.o readtex.o
177 $(APP_CC) $(CFLAGS) $(LDFLAGS) bug_3195.o readtex.o $(LIBS) -o $@
178
179 bug_3195.o: bug_3195.c readtex.h
180 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) bug_3195.c -o $@
181
182 invert: invert.o readtex.o
183 $(APP_CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
184
185 invert.o: invert.c readtex.h
186 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) invert.c -o $@
187
188 mipmap_view: mipmap_view.o readtex.o
189 $(APP_CC) $(CFLAGS) mipmap_view.o readtex.o $(LIBS) -o $@
190
191 mipmap_view.o: mipmap_view.c readtex.h
192 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
193
194 mipmap_limits: mipmap_limits.o readtex.o
195 $(APP_CC) $(CFLAGS) mipmap_limits.o readtex.o $(LIBS) -o $@
196
197 mipmap_limits.o: mipmap_limits.c readtex.h
198 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
199
200 fillrate: fillrate.o readtex.o
201 $(APP_CC) $(CFLAGS) fillrate.o readtex.o $(LIBS) -o $@
202
203 fillrate.o: fillrate.c readtex.h
204 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
205
206
207
208
209 floattex: floattex.o readtex.o shaderutil.o
210 $(APP_CC) $(CFLAGS) $(LDFLAGS) floattex.o readtex.o shaderutil.o $(LIBS) -o $@
211
212 floattex.o: floattex.c readtex.h shaderutil.h
213 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) floattex.c -o $@
214
215
216 readtex.o: readtex.c
217 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) readtex.c -o $@
218
219 readtex.h: $(TOP)/progs/util/readtex.h
220 ln -s $(TOP)/progs/util/readtex.h .
221
222 readtex.c: $(TOP)/progs/util/readtex.c
223 ln -s $(TOP)/progs/util/readtex.c .
224
225
226
227 extfuncs.h: $(TOP)/progs/util/extfuncs.h
228 ln -s $(TOP)/progs/util/extfuncs.h .
229
230
231
232 shaderutil.c: $(TOP)/progs/util/shaderutil.c
233 cp $< .
234
235 shaderutil.h: $(TOP)/progs/util/shaderutil.h
236 cp $< .
237
238 shaderutil.o: shaderutil.c shaderutil.h
239 $(APP_CC) -c -I$(INCDIR) $(INCLUDES) $(CFLAGS) shaderutil.c
240
241
242
243 # Emacs tags
244 tags:
245 etags `find . -name \*.[ch]` `find ../include`