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