no depend file
[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 bufferobj.c \
23 cva.c \
24 dinoshade.c \
25 fogcoord.c \
26 fptest1.c \
27 fptexture.c \
28 getprocaddress.c \
29 manytex.c \
30 multipal.c \
31 pbo.c \
32 projtex.c \
33 seccolor.c \
34 sharedtex.c \
35 stencilwrap.c \
36 tex1d.c \
37 texline.c \
38 texrect.c \
39 texwrap.c \
40 vparray.c \
41 vptest1.c \
42 vptest2.c \
43 vptest3.c \
44 vptorus.c \
45 vpwarpmesh.c \
46 yuvrect.c \
47 yuvsquare.c
48
49 PROGS = $(SOURCES:%.c=%)
50
51 INCLUDES = -I. -I$(TOP)/include
52
53
54 ##### RULES #####
55
56 .SUFFIXES:
57 .SUFFIXES: .c
58
59 .c:
60 $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
61
62 .c.o:
63 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
64
65 .S.o:
66 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
67
68
69 ##### TARGETS #####
70
71 default: $(PROGS)
72
73 clean:
74 rm -f $(PROGS)
75 rm -f *.o
76 rm -f getproclist.h
77
78
79 # auto code generation
80 getprocaddress: getprocaddress.c getproclist.h
81
82 getproclist.h: $(TOP)/src/mesa/glapi/APIspec getprocaddress.c getprocaddress.py
83 python getprocaddress.py > getproclist.h
84
85
86 texrect: texrect.o readtex.o
87 $(CC) texrect.o readtex.o $(LIBS) -o $@
88
89 texrect.o: texrect.c readtex.h
90 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
91
92 readtex.o: readtex.c
93 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
94
95
96 readtex.h: $(TOP)/progs/util/readtex.h
97 ln -s $(TOP)/progs/util/readtex.h .
98
99 readtex.c: $(TOP)/progs/util/readtex.c
100 ln -s $(TOP)/progs/util/readtex.c .
101
102
103
104
105 # Emacs tags
106 tags:
107 etags `find . -name \*.[ch]` `find ../include`