jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame^] | 1 | # $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 | |
| 18 | INCDIR = ../include |
| 19 | LIBDIR = ../lib |
| 20 | |
| 21 | GL_LIBS = -L$(LIBDIR) -L/boot/home/config/lib -Xlinker -rpath $(LIBDIR) -lbe -lglut -lMesaGLU -lMesaGL $(XLIBS) |
| 22 | |
| 23 | LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB) |
| 24 | |
| 25 | PROGS = 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 | |
| 47 | default: |
| 48 | @echo "Specify a target configuration" |
| 49 | |
| 50 | clean: |
| 51 | -rm *.o *~ |
| 52 | |
| 53 | realclean: |
| 54 | -rm $(PROGS) |
| 55 | -rm *.o *~ |
| 56 | |
| 57 | targets: $(PROGS) |
| 58 | |
| 59 | # execute all programs |
| 60 | exec: $(PROGS) |
| 61 | @for prog in $(PROGS) ; \ |
| 62 | do \ |
| 63 | echo -n "Running $$prog ..." ; \ |
| 64 | $$prog ; \ |
| 65 | echo ; \ |
| 66 | done |
| 67 | |
| 68 | |
| 69 | include ../Make-config |
| 70 | |