Add regression test for bug #3101.
[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 = antialias.c \
14 arbfpspec.c \
15 arbfptest1.c \
16 arbfptexture.c \
17 arbfptrig.c \
18 arbvptest1.c \
19 arbvptest3.c \
20 arbvptorus.c \
21 arbvpwarpmesh.c \
22 blendminmax.c \
23 blendsquare.c \
24 bufferobj.c \
25 bug_3101.c \
26 crossbar.c \
27 cva.c \
28 dinoshade.c \
29 floattex.c \
30 fbotest1.c \
31 fbotexture.c \
32 fogcoord.c \
33 fptest1.c \
34 fptexture.c \
35 getprocaddress.c \
36 invert.c \
37 manytex.c \
38 multipal.c \
39 no_s3tc.c \
40 packedpixels.c \
41 pbo.c \
42 projtex.c \
43 seccolor.c \
44 sharedtex.c \
45 stencilwrap.c \
46 stencil_wrap.c \
47 tex1d.c \
48 texline.c \
49 texobjshare.c \
50 texrect.c \
51 texwrap.c \
52 vparray.c \
53 vptest1.c \
54 vptest2.c \
55 vptest3.c \
56 vptorus.c \
57 vpwarpmesh.c \
58 yuvrect.c \
59 yuvsquare.c \
60 zreaddraw.c
61
62 PROGS = $(SOURCES:%.c=%)
63
64 INCLUDES = -I. -I$(TOP)/include
65
66 UTIL_FILES = readtex.h readtex.c
67
68
69 ##### RULES #####
70
71 .SUFFIXES:
72 .SUFFIXES: .c
73
74 .c:
75 $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
76
77 .c.o:
78 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
79
80 .S.o:
81 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
82
83
84 ##### TARGETS #####
85
86 default: $(UTIL_FILES) $(PROGS)
87
88 clean:
89 rm -f $(PROGS)
90 rm -f *.o
91 rm -f getproclist.h
92
93
94 # auto code generation
95 getprocaddress: getprocaddress.c getproclist.h
96
97 getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
98 python getprocaddress.py > getproclist.h
99
100
101 texrect: texrect.o readtex.o
102 $(CC) texrect.o readtex.o $(LIBS) -o $@
103
104 texrect.o: texrect.c readtex.h
105 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
106
107 invert: invert.o readtex.o
108 $(CC) invert.o readtex.o $(LIBS) -o $@
109
110 invert.o: invert.c readtex.h
111 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
112
113 readtex.o: readtex.c
114 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
115
116
117 readtex.h: $(TOP)/progs/util/readtex.h
118 ln -s $(TOP)/progs/util/readtex.h .
119
120 readtex.c: $(TOP)/progs/util/readtex.c
121 ln -s $(TOP)/progs/util/readtex.c .
122
123
124
125
126 # Emacs tags
127 tags:
128 etags `find . -name \*.[ch]` `find ../include`