added readpix program
[mesa.git] / progs / demos / Makefile.X11
1 # $Id: Makefile.X11,v 1.6 2000/03/01 16:24:29 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.3
5 # Copyright (C) 1995-2000 Brian Paul
6
7 # Makefile for GLUT-based demo programs for Unix/X11
8
9
10 ##### MACROS #####
11
12 INCDIR = ../include
13 LIBDIR = ../lib
14
15 GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL $(APP_LIB_DEPS)
16
17 LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
18
19 PROGS = bounce clearspd drawpix gamma gears glinfo gloss glutfx isosurf \
20 morph3d multiarb osdemo paltex pointblast readpix reflect \
21 renormal spectex stex3d tessdemo texcyl texdown texobj trispd winpos \
22
23
24 ##### RULES #####
25
26 .SUFFIXES:
27 .SUFFIXES: .c
28
29 .c: $(LIB_DEP)
30 $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
31
32
33
34 ##### TARGETS #####
35
36 default:
37 @echo "Specify a target configuration"
38
39 clean:
40 -rm *.o *~
41
42 realclean:
43 -rm $(PROGS)
44 -rm *.o *~
45
46 targets: $(PROGS)
47
48 # execute all programs
49 exec: $(PROGS)
50 @for prog in $(PROGS) ; \
51 do \
52 echo -n "Running $$prog ..." ; \
53 $$prog ; \
54 echo ; \
55 done
56
57
58 include ../Make-config
59