added an error check
[mesa.git] / progs / tests / Makefile
1
2 # Simple makefile for compiling test programs on Linux
3 # These programs aren't intended to be included with the normal
4 # distro as they're not too interesting but good for testing during
5 # development.
6
7
8 CC = gcc
9 CFLAGS = -g -I../include
10 LIBS = -L../lib -lglut -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXext -lm
11
12 PROGS = cva \
13 dinoshade \
14 fogcoord \
15 manytex \
16 multipal \
17 projtex \
18 seccolor \
19 sharedtex \
20 texline \
21 texwrap \
22 vptest1 \
23 vptest2 \
24 vptest3 \
25 vptorus \
26 vpwarpmesh
27
28
29 ##### RULES #####
30
31 .SUFFIXES:
32 .SUFFIXES: .c
33
34 .c:
35 $(CC) $(CFLAGS) $< $(LIBS) -o $@
36
37
38 ##### TARGETS #####
39
40 default: $(PROGS)
41
42 clean:
43 rm -f $(PROGS)
44 rm -f *.o