mesa: add dedicated point-wide-smooth test, restore original tri.c as tri-orig.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 = $(APP_LIB_DEPS)
12
13 SOURCES = \
14 clear-fbo-tex.c \
15 clear-fbo.c \
16 clear-scissor.c \
17 clear.c \
18 dlist-dangling.c \
19 dlist-edgeflag-dangling.c \
20 dlist-edgeflag.c \
21 drawarrays.c \
22 drawelements.c \
23 drawrange.c \
24 flat-clip.c \
25 fs-tri.c \
26 line-clip.c \
27 line-cull.c \
28 line-smooth.c \
29 line-stipple-wide.c \
30 line-userclip-clip.c \
31 line-userclip-nop-clip.c \
32 line-userclip-nop.c \
33 line-userclip.c \
34 line-wide.c \
35 line.c \
36 lineloop-clip.c \
37 lineloop-elts.c \
38 lineloop.c \
39 linestrip-flat-stipple.c \
40 linestrip-stipple-wide.c \
41 linestrip-stipple.c \
42 linestrip.c \
43 pgon-mode.c \
44 point-clip.c \
45 point-param.c \
46 point-sprite.c \
47 point-wide.c \
48 point-wide-smooth.c \
49 point.c \
50 poly-flat.c \
51 poly-unfilled.c \
52 poly.c \
53 quad-clip-all-vertices.c \
54 quad-clip-nearplane.c \
55 quad-clip.c \
56 quad-degenerate.c \
57 quad-flat.c \
58 quad-offset-factor.c \
59 quad-offset-unfilled.c \
60 quad-offset-units.c \
61 quad-tex-2d.c \
62 quad-tex-3d.c \
63 quad-tex-alpha.c \
64 quad-tex-pbo.c \
65 quad-unfilled-clip.c \
66 quad-unfilled-stipple.c \
67 quad-unfilled.c \
68 quad.c \
69 quads.c \
70 quadstrip-cont.c \
71 quadstrip-flat.c \
72 quadstrip.c \
73 tri-orig.c \
74 tri-alpha.c \
75 tri-blend-color.c \
76 tri-blend-max.c \
77 tri-blend-min.c \
78 tri-blend-revsub.c \
79 tri-blend-sub.c \
80 tri-blend.c \
81 tri-clip.c \
82 tri-cull-both.c \
83 tri-cull.c \
84 tri-dlist.c \
85 tri-edgeflag.c \
86 tri-fbo-tex.c \
87 tri-fbo.c \
88 tri-flat-clip.c \
89 tri-flat.c \
90 tri-fog.c \
91 tri-mask-tri.c \
92 tri-query.c \
93 tri-scissor-tri.c \
94 tri-stencil.c \
95 tri-tex-3d.c \
96 tri-tri.c \
97 tri-unfilled-clip.c \
98 tri-unfilled-smooth.c \
99 tri-unfilled-userclip-stip.c \
100 tri-unfilled-userclip.c \
101 tri-unfilled.c \
102 tri-userclip.c \
103 tri-z-eq.c \
104 tri-z.c \
105 tri.c \
106 tristrip-clip.c \
107 tristrip.c \
108 vbo-drawarrays.c \
109 vbo-drawelements.c \
110 vbo-drawrange.c \
111 vp-array.c \
112 vp-clip.c \
113 vp-line-clip.c \
114 vp-tri.c \
115 vp-unfilled.c
116
117 PROGS = $(SOURCES:%.c=%)
118
119 INCLUDES = -I. -I$(TOP)/include -I../samples
120
121 UTIL_FILES = readtex.h readtex.c
122
123
124 ##### RULES #####
125
126 .SUFFIXES:
127 .SUFFIXES: .c
128
129 .c:
130 $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
131
132 .c.o:
133 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
134
135 .S.o:
136 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
137
138
139 ##### TARGETS #####
140
141 default: $(UTIL_FILES) $(PROGS)
142
143 clean:
144 rm -f $(PROGS)
145 rm -f *.o
146 rm -f getproclist.h
147
148
149 # auto code generation
150 getprocaddress: getprocaddress.c getproclist.h
151
152 getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
153 python getprocaddress.py > getproclist.h
154
155
156 texrect: texrect.o readtex.o
157 $(CC) texrect.o readtex.o $(LIBS) -o $@
158
159 texrect.o: texrect.c readtex.h
160 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
161
162 invert: invert.o readtex.o
163 $(CC) invert.o readtex.o $(LIBS) -o $@
164
165 invert.o: invert.c readtex.h
166 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
167
168 readtex.o: readtex.c
169 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
170
171
172 readtex.h: $(TOP)/progs/util/readtex.h
173 ln -s $(TOP)/progs/util/readtex.h .
174
175 readtex.c: $(TOP)/progs/util/readtex.c
176 ln -s $(TOP)/progs/util/readtex.c .
177
178
179 fs-tri: fs-tri.c extfuncs.h
180
181
182 extfuncs.h: $(TOP)/progs/util/extfuncs.h
183 cp $< .
184
185
186 # Emacs tags
187 tags:
188 etags `find . -name \*.[ch]` `find ../include`