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