OSDN Git Service

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