link with -lGLU -lGL instead of -lMesaGLU -lMesaGL
[mesa.git] / progs / redbook / Makefile.X11
1 # $Id: Makefile.X11,v 1.1 1999/08/19 00:55:40 jtg Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.1
5 # Copyright (C) 1995-1998 Brian Paul
6
7 # Makefile for programs from the OpenGL Programming Guide
8
9
10 ##### MACROS #####
11
12 INCDIR = ../include
13 LIBDIR = ../lib
14
15 GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lm $(XLIBS)
16
17 LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
18
19 PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \
20 bezcurve bezmesh checker clip colormat cube depthcue dof \
21 double drawf feedback fog fogindex font hello image light \
22 lines list material mipmap model movelight nurbs pickdepth \
23 picksquare plane planet polyoff polys quadric robot sccolorlight \
24 scene scenebamb sceneflat select smooth stencil stroke surface \
25 teaambient teapots tess tesswind texbind texgen texprox texsub \
26 texturesurf torus trim unproject varray wrap
27
28
29
30 ##### RULES #####
31
32 .SUFFIXES:
33 .SUFFIXES: .c
34
35 .c: $(LIB_DEP)
36 $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
37
38
39
40 ##### TARGETS ######
41
42 default:
43 @echo "Specify a target configuration"
44
45 clean:
46 -rm *.o *~
47
48 realclean:
49 -rm $(PROGS)
50 -rm *.o *~
51
52 targets: $(PROGS)
53
54 # execute all programs
55 exec: $(PROGS)
56 @for prog in $(PROGS) ; \
57 do \
58 echo -n "Running $$prog ..." ; \
59 $$prog ; \
60 echo ; \
61 done
62
63
64 include ../Make-config