Add test for GL_EXT_gpu_program_parameters.
[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 arbvptest1.c \
22 arbvptest3.c \
23 arbvptorus.c \
24 arbvpwarpmesh.c \
25 blendminmax.c \
26 blendsquare.c \
27 bufferobj.c \
28 bug_3050.c \
29 bug_3101.c \
30 bug_3195.c \
31 copypixrate.c \
32 crossbar.c \
33 cva.c \
34 dinoshade.c \
35 floattex.c \
36 fbotest1.c \
37 fbotest2.c \
38 fbotexture.c \
39 fog.c \
40 fogcoord.c \
41 fptest1.c \
42 fptexture.c \
43 getprocaddress.c \
44 interleave.c \
45 invert.c \
46 jkrahntest.c \
47 manytex.c \
48 mipmap_limits.c \
49 multipal.c \
50 no_s3tc.c \
51 packedpixels.c \
52 pbo.c \
53 prog_parameter.c \
54 projtex.c \
55 readrate.c \
56 seccolor.c \
57 sharedtex.c \
58 stencilwrap.c \
59 stencil_wrap.c \
60 subtexrate.c \
61 tex1d.c \
62 texcompress2.c \
63 texfilt.c \
64 texline.c \
65 texobjshare.c \
66 texrect.c \
67 texwrap.c \
68 vao-01.c \
69 vao-02.c \
70 vparray.c \
71 vptest1.c \
72 vptest2.c \
73 vptest3.c \
74 vptorus.c \
75 vpwarpmesh.c \
76 yuvrect.c \
77 yuvsquare.c \
78 zreaddraw.c
79
80 PROGS = $(SOURCES:%.c=%)
81
82 INCLUDES = -I. -I$(TOP)/include
83
84 UTIL_FILES = readtex.h readtex.c
85
86
87 ##### RULES #####
88
89 .SUFFIXES:
90 .SUFFIXES: .c
91
92 .c:
93 $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
94
95 .c.o:
96 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
97
98 .S.o:
99 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
100
101
102 ##### TARGETS #####
103
104 default: $(UTIL_FILES) $(PROGS)
105
106 clean:
107 rm -f $(PROGS)
108 rm -f *.o
109 rm -f getproclist.h
110
111
112 # auto code generation
113 getprocaddress: getprocaddress.c getproclist.h
114
115 getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
116 python getprocaddress.py > getproclist.h
117
118 afsmultiarb: afsmultiarb.o readtex.o
119 $(CC) $(CFLAGS) afsmultiarb.o readtex.o $(LIBS) -o $@
120
121 afsmultiarb.o: afsmultiarb.c readtex.h
122 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
123
124 texrect: texrect.o readtex.o
125 $(CC) $(CFLAGS) texrect.o readtex.o $(LIBS) -o $@
126
127 texrect.o: texrect.c readtex.h
128 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
129
130 bug_3195: bug_3195.o readtex.o
131 $(CC) $(CFLAGS) bug_3195.o readtex.o $(LIBS) -o $@
132
133 bug_3195.o: bug_3195.c readtex.h
134 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
135
136 invert: invert.o readtex.o
137 $(CC) $(CFLAGS) invert.o readtex.o $(LIBS) -o $@
138
139 invert.o: invert.c readtex.h
140 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
141
142 readtex.o: readtex.c
143 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
144
145
146 readtex.h: $(TOP)/progs/util/readtex.h
147 ln -s $(TOP)/progs/util/readtex.h .
148
149 readtex.c: $(TOP)/progs/util/readtex.c
150 ln -s $(TOP)/progs/util/readtex.c .
151
152
153
154
155 # Emacs tags
156 tags:
157 etags `find . -name \*.[ch]` `find ../include`