start implementing relational operators
[mesa.git] / progs / fp / 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 tri-abs.c \
15 tri-add.c \
16 tri-cmp.c \
17 tri-cos.c \
18 tri-dp3.c \
19 tri-dp4.c \
20 tri-dph.c \
21 tri-dst.c \
22 tri-ex2.c \
23 tri-flr.c \
24 tri-frc.c \
25 tri-kil.c \
26 tri-lg2.c \
27 tri-lit.c \
28 tri-lrp.c \
29 tri-mad.c \
30 tri-max.c \
31 tri-min.c \
32 tri-mov.c \
33 tri-mul.c \
34 tri-pow.c \
35 tri-param.c \
36 tri-rcp.c \
37 tri-rsq.c \
38 tri-scs.c \
39 tri-sge.c \
40 tri-sge2.c \
41 tri-sin.c \
42 tri-slt.c \
43 tri-sub.c \
44 tri-swz.c \
45 tri-swz2.c \
46 tri-tex.c \
47 tri-xpd.c \
48 tri-position.c \
49 point-position.c \
50 tri-depth.c \
51 tri-depth2.c \
52 tri-depthwrite.c \
53 tri-depthwrite2.c \
54
55 NOTDONE=\
56 tri-txb.c \
57 tri-txp.c \
58 tri-depthwrite.c \
59 tri-fogoption.c
60
61
62 PROGS = $(SOURCES:%.c=%)
63
64 INCLUDES = -I. -I$(TOP)/include -I../samples
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`