miniglx test programs
[mesa.git] / progs / miniglx / 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. They're not too interesting but they're good for testing.
5
6
7 CC = gcc
8 CFLAGS = -g -I../include
9 LIBS = -L../lib -lGL -lGLU -lglut -lm -Wl,-rpath,../lib
10
11 PROGS = miniglxtest miniglxsample sample_server sample_server2 manytex texline
12
13
14 ##### RULES #####
15
16 .SUFFIXES:
17 .SUFFIXES: .c
18
19 .c:
20 $(CC) $(CFLAGS) $< $(LIBS) -o $@
21
22
23 ##### TARGETS #####
24
25 default: $(PROGS)
26
27 clean:
28 rm -f $(PROGS)
29 rm -f *.o
30