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