prevent spaces in fp register names
[mesa.git] / progs / xdemos / Makefile.X11
1 # $Id: Makefile.X11,v 1.6 1999/11/25 17:42:01 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.3
5 # Copyright (C) 1995-1999 Brian Paul
6
7 # Makefile for non-GLUT (X11, SVGA, etc) demo programs
8
9
10 ##### MACROS #####
11
12 INCDIR = ../include
13 LIBDIR = ../lib
14
15 GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL $(XLIBS)
16
17 LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
18
19 PROGS = glxdemo glxpixmap offset xdemo glxinfo xfont glxdpyinfo wincopy
20
21
22
23 ##### RULES #####
24
25 .SUFFIXES:
26 .SUFFIXES: .c
27
28 .c: $(LIB_DEP)
29 $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
30
31
32
33 ##### TARGETS #####
34
35 default:
36 @echo "Specify a target configuration"
37
38 clean:
39 -rm *.o *~
40
41 realclean:
42 -rm $(PROGS)
43 -rm *.o *~
44
45 targets: $(PROGS)
46
47 # execute all programs
48 exec: $(PROGS)
49 @for prog in $(PROGS) ; \
50 do \
51 echo -n "Running $$prog ..." ; \
52 $$prog ; \
53 echo ; \
54 done
55
56
57 include ../Make-config
58