pad GLU_TINY to 6 digits
[mesa.git] / src / glu / mesa / Makefile.X11
1 # $Id: Makefile.X11,v 1.5 1999/09/17 12:06:56 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.1
5 # Copyright (C) 1995-1999 Brian Paul
6
7 # Makefile for GLU library
8
9
10 ##### MACROS #####
11
12 GLU_MAJOR = 1
13 GLU_MINOR = 2
14 GLU_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
15
16 VPATH = RCS
17
18 INCDIR = ../include
19 LIBDIR = ../lib
20
21 SOURCES = glu.c mipmap.c nurbs.c nurbscrv.c nurbssrf.c nurbsutl.c \
22 project.c quadric.c tess.c tess_fist.c tess_hash.c tess_heap.c
23
24 OBJECTS = $(SOURCES:.c=.o)
25
26
27
28 ##### RULES #####
29
30 .c.o:
31 $(CC) -c -I$(INCDIR) $(CFLAGS) $<
32
33
34
35 ##### TARGETS #####
36
37 default:
38 @echo "Specify a target configuration"
39
40 clean:
41 -rm *.o *~
42
43 targets: $(LIBDIR)/$(GLU_LIB)
44
45 # Make the library:
46 $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
47 $(MAKELIB) $(GLU_LIB) $(GLU_MAJOR) $(GLU_MINOR) $(GLU_TINY) $(OBJECTS)
48 mv $(GLU_LIB)* $(LIBDIR)
49
50 include ../Make-config
51
52 include depend
53
54
55
56 #
57 # Run 'make depend' to update the dependencies if you change what's included
58 # by any source file.
59 #
60 dep: $(SOURCES)
61 makedepend -fdepend -Y -I../include $(SOURCES)