added third, tiny version number to mklib scripts
[mesa.git] / src / glu / mesa / Makefile.X11
1 # $Id: Makefile.X11,v 1.3 1999/09/15 15:11:01 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 VPATH = RCS
13
14 INCDIR = ../include
15 LIBDIR = ../lib
16
17 SOURCES = glu.c mipmap.c nurbs.c nurbscrv.c nurbssrf.c nurbsutl.c \
18 project.c quadric.c tess.c tess_fist.c tess_hash.c tess_heap.c
19
20 OBJECTS = $(SOURCES:.c=.o)
21
22
23
24 ##### RULES #####
25
26 .c.o:
27 $(CC) -c -I$(INCDIR) $(CFLAGS) $<
28
29
30
31 ##### TARGETS #####
32
33 default:
34 @echo "Specify a target configuration"
35
36 clean:
37 -rm *.o *~
38
39 targets: $(LIBDIR)/$(GLU_LIB)
40
41 # Make the library:
42 $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
43 $(MAKELIB) $(GLU_LIB) $(MAJOR) $(MINOR) $(TINY) $(OBJECTS)
44 mv $(GLU_LIB)* $(LIBDIR)
45
46 include ../Make-config
47
48 include depend
49
50
51
52 #
53 # Run 'make depend' to update the dependencies if you change what's included
54 # by any source file.
55 #
56 dep: $(SOURCES)
57 makedepend -fdepend -Y -I../include $(SOURCES)