Added -perf option to measure frame rate. This is useful for measuring
[mesa.git] / progs / samples / Makefile.BeOS-R4
1 # $Id: Makefile.BeOS-R4,v 1.2 1999/09/17 00:08:38 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.1
5 # Copyright (C) 1995-1999 Brian Paul
6 #
7 # This file is in the public domain.
8
9
10 # Makefile for sample programs for BeOS R4
11
12
13
14
15 ##### MACROS #####
16
17 INCDIR = ../include
18 LIBDIR = ../lib
19
20 GL_LIBS = -L$(LIBDIR) -L/boot/home/config/lib -Xlinker -rpath $(LIBDIR) -lbe -lglut -lGLU -lGL $(XLIBS)
21
22 LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
23
24 PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
25 font line logo olympic overlay point prim select \
26 shape sphere star stencil stretch texture tri wave
27
28
29 ##### RULES #####
30
31 .SUFFIXES:
32 .SUFFIXES: .c
33
34 .c: $(LIB_DEP)
35 $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
36
37
38
39 ##### TARGETS #####
40
41 default:
42 @echo "Specify a target configuration"
43
44 clean:
45 -rm *.o *~
46
47 realclean:
48 -rm $(PROGS)
49 -rm *.o *~
50
51 targets: $(PROGS)
52
53 # execute all programs
54 exec: $(PROGS)
55 @for prog in $(PROGS) ; \
56 do \
57 echo -n "Running $$prog ..." ; \
58 $$prog ; \
59 echo ; \
60 done
61
62
63 include ../Make-config
64