Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
[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 = $(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 calibrate_rast.c \
34 copypixrate.c \
35 crossbar.c \
36 cva.c \
37 dinoshade.c \
38 drawbuffers.c \
39 floattex.c \
40 fbotest1.c \
41 fbotest2.c \
42 fbotexture.c \
43 fillrate.c \
44 fog.c \
45 fogcoord.c \
46 fptest1.c \
47 fptexture.c \
48 getprocaddress.c \
49 interleave.c \
50 invert.c \
51 jkrahntest.c \
52 manytex.c \
53 minmag.c \
54 mipmap_limits.c \
55 mipmap_view.c \
56 multipal.c \
57 no_s3tc.c \
58 packedpixels.c \
59 pbo.c \
60 prog_parameter.c \
61 projtex.c \
62 random.c \
63 readrate.c \
64 seccolor.c \
65 sharedtex.c \
66 stencilwrap.c \
67 stencil_wrap.c \
68 subtex \
69 subtexrate.c \
70 tex1d.c \
71 texcompress2.c \
72 texfilt.c \
73 texline.c \
74 texobjshare.c \
75 texrect.c \
76 texwrap.c \
77 vao-01.c \
78 vao-02.c \
79 vparray.c \
80 vptest1.c \
81 vptest2.c \
82 vptest3.c \
83 vptorus.c \
84 vpwarpmesh.c \
85 yuvrect.c \
86 yuvsquare.c \
87 zcomp.c \
88 zdrawpix.c \
89 zreaddraw.c
90
91 PROGS = $(SOURCES:%.c=%)
92
93 INCLUDES = -I. -I$(TOP)/include
94
95 UTIL_FILES = readtex.h readtex.c
96
97
98 ##### RULES #####
99
100 .SUFFIXES:
101 .SUFFIXES: .c
102
103 .c:
104 $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
105
106 .c.o:
107 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
108
109 .S.o:
110 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
111
112
113 ##### TARGETS #####
114
115 default: $(UTIL_FILES) $(PROGS)
116
117 clean:
118 rm -f $(PROGS)
119 rm -f *.o
120 rm -f getproclist.h
121
122
123 # auto code generation
124 getprocaddress: getprocaddress.c getproclist.h
125
126 getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
127 python getprocaddress.py > getproclist.h
128
129 arraytexture: arraytexture.o readtex.o
130 $(CC) $(CFLAGS) arraytexture.o readtex.o $(LIBS) -o $@
131
132 arraytexture.o: arraytexture.c readtex.h
133 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
134
135 afsmultiarb: afsmultiarb.o readtex.o
136 $(CC) $(CFLAGS) afsmultiarb.o readtex.o $(LIBS) -o $@
137
138 afsmultiarb.o: afsmultiarb.c readtex.h
139 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
140
141 drawbuffers: drawbuffers.o
142 $(CC) $(CFLAGS) drawbuffers.o $(LIBS) -o $@
143
144 drawbuffers.o: drawbuffers.c extfuncs.h
145 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
146
147 texrect: texrect.o readtex.o
148 $(CC) $(CFLAGS) texrect.o readtex.o $(LIBS) -o $@
149
150 texrect.o: texrect.c readtex.h
151 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
152
153 bug_3195: bug_3195.o readtex.o
154 $(CC) $(CFLAGS) bug_3195.o readtex.o $(LIBS) -o $@
155
156 bug_3195.o: bug_3195.c readtex.h
157 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
158
159 invert: invert.o readtex.o
160 $(CC) $(CFLAGS) invert.o readtex.o $(LIBS) -o $@
161
162 invert.o: invert.c readtex.h
163 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
164
165 mipmap_view: mipmap_view.o readtex.o
166 $(CC) $(CFLAGS) mipmap_view.o readtex.o $(LIBS) -o $@
167
168 mipmap_view.o: mipmap_view.c readtex.h
169 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
170
171
172 fillrate: fillrate.o readtex.o
173 $(CC) $(CFLAGS) fillrate.o readtex.o $(LIBS) -o $@
174
175 fillrate.o: fillrate.c readtex.h
176 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
177
178
179
180 readtex.o: readtex.c
181 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
182
183
184 readtex.h: $(TOP)/progs/util/readtex.h
185 ln -s $(TOP)/progs/util/readtex.h .
186
187 readtex.c: $(TOP)/progs/util/readtex.c
188 ln -s $(TOP)/progs/util/readtex.c .
189
190 extfuncs.h: $(TOP)/progs/util/extfuncs.h
191 ln -s $(TOP)/progs/util/extfuncs.h .
192
193
194
195 # Emacs tags
196 tags:
197 etags `find . -name \*.[ch]` `find ../include`