set default window pos
[mesa.git] / progs / demos / Makefile.X11
1 # $Id: Makefile.X11,v 1.11 2000/04/24 15:29:11 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 geartrain glinfo gloss \
20 glutfx isosurf lodbias morph3d multiarb occlude osdemo paltex \
21 pixeltex pointblast readpix reflect renormal spectex stex3d \
22 tessdemo texcyl texdown texobj trispd winpos
23
24
25 ##### RULES #####
26
27 .SUFFIXES:
28 .SUFFIXES: .c
29
30 .c: $(LIB_DEP)
31 $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
32
33
34
35 ##### TARGETS #####
36
37 default:
38 @echo "Specify a target configuration"
39
40 clean:
41 -rm *.o *~
42
43 realclean:
44 -rm $(PROGS)
45 -rm *.o *~
46
47 targets: $(PROGS)
48
49 # execute all programs
50 exec: $(PROGS)
51 @for prog in $(PROGS) ; \
52 do \
53 echo -n "Running $$prog ..." ; \
54 $$prog ; \
55 echo ; \
56 done
57
58
59 include ../Make-config
60