1 # $Id: Makefile.X11,v 1.4 2001/03/28 20:17:55 gareth Exp $
3 # Mesa 3-D graphics library
5 # Copyright (C) 1995-2001 Brian Paul
7 # Makefile for SGI SI GLU library
14 GLU_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
18 INCDIRS = -I../include -Iinclude -Iinternals -Ilibnurbs/internals -Ilibnurbs/interface -Ilibnurbs/nurbtess
40 libnurbs/interface/bezierEval.cc \
41 libnurbs/interface/bezierPatch.cc \
42 libnurbs/interface/bezierPatchMesh.cc \
43 libnurbs/interface/glcurveval.cc \
44 libnurbs/interface/glinterface.cc \
45 libnurbs/interface/glrenderer.cc \
46 libnurbs/interface/glsurfeval.cc \
47 libnurbs/interface/incurveeval.cc \
48 libnurbs/interface/insurfeval.cc \
49 libnurbs/internals/arc.cc \
50 libnurbs/internals/arcsorter.cc \
51 libnurbs/internals/arctess.cc \
52 libnurbs/internals/backend.cc \
53 libnurbs/internals/basiccrveval.cc \
54 libnurbs/internals/basicsurfeval.cc \
55 libnurbs/internals/bin.cc \
56 libnurbs/internals/bufpool.cc \
57 libnurbs/internals/cachingeval.cc \
58 libnurbs/internals/ccw.cc \
59 libnurbs/internals/coveandtiler.cc \
60 libnurbs/internals/curve.cc \
61 libnurbs/internals/curvelist.cc \
62 libnurbs/internals/curvesub.cc \
63 libnurbs/internals/dataTransform.cc \
64 libnurbs/internals/displaylist.cc \
65 libnurbs/internals/flist.cc \
66 libnurbs/internals/flistsorter.cc \
67 libnurbs/internals/hull.cc \
68 libnurbs/internals/intersect.cc \
69 libnurbs/internals/knotvector.cc \
70 libnurbs/internals/mapdesc.cc \
71 libnurbs/internals/mapdescv.cc \
72 libnurbs/internals/maplist.cc \
73 libnurbs/internals/mesher.cc \
74 libnurbs/internals/monoTriangulationBackend.cc \
75 libnurbs/internals/monotonizer.cc \
76 libnurbs/internals/mycode.cc \
77 libnurbs/internals/nurbsinterfac.cc \
78 libnurbs/internals/nurbstess.cc \
79 libnurbs/internals/patch.cc \
80 libnurbs/internals/patchlist.cc \
81 libnurbs/internals/quilt.cc \
82 libnurbs/internals/reader.cc \
83 libnurbs/internals/renderhints.cc \
84 libnurbs/internals/slicer.cc \
85 libnurbs/internals/sorter.cc \
86 libnurbs/internals/splitarcs.cc \
87 libnurbs/internals/subdivider.cc \
88 libnurbs/internals/tobezier.cc \
89 libnurbs/internals/trimline.cc \
90 libnurbs/internals/trimregion.cc \
91 libnurbs/internals/trimvertpool.cc \
92 libnurbs/internals/uarray.cc \
93 libnurbs/internals/varray.cc \
94 libnurbs/nurbtess/directedLine.cc \
95 libnurbs/nurbtess/gridWrap.cc \
96 libnurbs/nurbtess/monoChain.cc \
97 libnurbs/nurbtess/monoPolyPart.cc \
98 libnurbs/nurbtess/monoTriangulation.cc \
99 libnurbs/nurbtess/partitionX.cc \
100 libnurbs/nurbtess/partitionY.cc \
101 libnurbs/nurbtess/polyDBG.cc \
102 libnurbs/nurbtess/polyUtil.cc \
103 libnurbs/nurbtess/primitiveStream.cc \
104 libnurbs/nurbtess/quicksort.cc \
105 libnurbs/nurbtess/rectBlock.cc \
106 libnurbs/nurbtess/sampleComp.cc \
107 libnurbs/nurbtess/sampleCompBot.cc \
108 libnurbs/nurbtess/sampleCompRight.cc \
109 libnurbs/nurbtess/sampleCompTop.cc \
110 libnurbs/nurbtess/sampleMonoPoly.cc \
111 libnurbs/nurbtess/sampledLine.cc \
112 libnurbs/nurbtess/searchTree.cc
114 SOURCES = $(C_SOURCES) $(CC_SOURCES)
116 C_OBJECTS = $(C_SOURCES:.c=.o)
117 CC_OBJECTS = $(CC_SOURCES:.cc=.o)
118 OBJECTS = $(C_OBJECTS) $(CC_OBJECTS)
124 $(CC) -c $(INCDIRS) $(CFLAGS) -DLIBRARYBUILD $< -o $@
127 $(CPLUSPLUS) -c $(INCDIRS) $(CCFLAGS) -DLIBRARYBUILD $< -o $@
134 @echo "Specify a target configuration"
137 -rm *.o */*.o */*/*.o
139 targets: $(LIBDIR)/$(GLU_LIB)
142 $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
143 $(MAKELIB) $(GLU_LIB) $(GLU_MAJOR) $(GLU_MINOR) $(GLU_TINY) $(OBJECTS)
144 rm -f $(LIBDIR)/$(GLU_LIB)*
145 mv $(GLU_LIB)* $(LIBDIR)
147 include ../Make-config
154 # Run 'make depend' to update the dependencies if you change what's included
155 # by any source file.
158 makedepend -fdepend -Y -I../include $(SOURCES)