added readpix program
[mesa.git] / progs / demos / Makefile.BeOS-R4
1 # $Id: Makefile.BeOS-R4,v 1.5 2000/03/01 16:24:29 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.3
5 # Copyright (C) 1995-2000 Brian Paul
6
7
8 # Makefile for GLUT-based demo programs for BeOS R4
9
10
11 ##### MACROS #####
12
13 INCDIR = ../include
14 LIBDIR = ../lib
15
16 GL_LIBS = -L$(LIBDIR) -L/boot/home/config/lib -Xlinker -rpath $(LIBDIR) -lbe -lglut -lGLU -lGL $(XLIBS)
17
18 LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
19
20 PROGS = bounce clearspd drawpix gamma gears glinfo gloss isosurf \
21 morph3d multiarb osdemo paltex pointblast readpix reflect \
22 renormal spectex stex3d 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