blob: f99e8edf4c67dcc90771b3d9c4582fc9e2702b7f [file] [log] [blame]
jtgafb833d1999-08-19 00:55:39 +00001# $Id: Makefile.BeOS-R4,v 1.1 1999/08/19 00:55:40 jtg Exp $
2
3# Makefile for OpenGL Programming Guide programs for BeOS R4
4# This file is in the public domain.
5
6
7# $Log: Makefile.BeOS-R4,v $
8# Revision 1.1 1999/08/19 00:55:40 jtg
9# Initial revision
10#
11# Revision 1.1 1999/02/25 02:13:06 brianp
12# initial check-in
13#
14
15
16##### MACROS #####
17
18INCDIR = ../include
19LIBDIR = ../lib
20
21GL_LIBS = -L$(LIBDIR) -L/boot/home/config/lib -Xlinker -rpath $(LIBDIR) -lbe -lglut -lMesaGLU -lMesaGL $(XLIBS)
22
23LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
24
25PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \
26 bezcurve bezmesh checker clip colormat cube depthcue dof \
27 double drawf feedback fog fogindex font hello image light \
28 lines list material mipmap model movelight nurbs pickdepth \
29 picksquare plane planet polyoff polys robot sccolorlight \
30 scene scenebamb sceneflat select smooth stencil stroke surface \
31 teaambient teapots tess tesswind texbind texgen texprox texsub \
32 texturesurf torus unproject varray wrap
33
34
35##### RULES #####
36
37.SUFFIXES:
38.SUFFIXES: .c
39
40.c: $(LIB_DEP)
41 $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
42
43
44
45##### TARGETS #####
46
47default:
48 @echo "Specify a target configuration"
49
50clean:
51 -rm *.o *~
52
53realclean:
54 -rm $(PROGS)
55 -rm *.o *~
56
57targets: $(PROGS)
58
59# execute all programs
60exec: $(PROGS)
61 @for prog in $(PROGS) ; \
62 do \
63 echo -n "Running $$prog ..." ; \
64 $$prog ; \
65 echo ; \
66 done
67
68
69include ../Make-config
70