Sync usage with man page.
[netbsd-mini2440.git] / x11 / lib / GLU / Makefile
blobb48ed282109ec4c637ceb7f3560b36334db630d0
1 # $NetBSD: Makefile,v 1.6 2004/08/05 01:28:48 lukem Exp $
3 NOLINT= 1 # XTODO: tess.ln SIGSEGVs lint :(
5 .include <bsd.own.mk>
7 LIB= GLU
9 GLUDIR= ${X11SRCDIR.xc}/extras/ogl-sample/main/gfx/lib/glu
11 SRCS.libutil= error.c glue.c mipmap.c project.c quad.c registry.c
12 .PATH: ${GLUDIR}/libutil
14 SRCS.libtess= dict.c geom.c memalloc.c mesh.c normal.c priorityq.c \
15 render.c sweep.c tess.c tessmono.c
16 .PATH: ${GLUDIR}/libtess
18 SRCS.interface= bezierEval.cc bezierPatch.cc bezierPatchMesh.cc \
19 glcurveval.cc glinterface.cc glrenderer.cc \
20 glsurfeval.cc incurveeval.cc insurfeval.cc
21 .PATH: ${GLUDIR}/libnurbs/interface
22 .for fn in ${SRCS.interface}
23 CPPFLAGS.${fn}+=-I${GLUDIR}/libnurbs/internals \
24 -I${GLUDIR}/libnurbs/nurbtess \
25 -DLIBRARYBUILD
26 .endfor
28 SRCS.internals= arc.cc arcsorter.cc arctess.cc backend.cc \
29 basiccrveval.cc basicsurfeval.cc bin.cc bufpool.cc \
30 cachingeval.cc ccw.cc coveandtiler.cc curve.cc \
31 curvelist.cc curvesub.cc dataTransform.cc displaylist.cc \
32 flist.cc flistsorter.cc hull.cc intersect.cc \
33 knotvector.cc mapdesc.cc mapdescv.cc maplist.cc \
34 mesher.cc monoTriangulationBackend.cc monotonizer.cc \
35 mycode.cc nurbsinterfac.cc nurbstess.cc patch.cc \
36 patchlist.cc quilt.cc reader.cc renderhints.cc \
37 slicer.cc sorter.cc splitarcs.cc subdivider.cc \
38 tobezier.cc trimline.cc trimregion.cc trimvertpool.cc \
39 uarray.cc varray.cc
40 .PATH: ${GLUDIR}/libnurbs/internals
41 .for fn in ${SRCS.internals}
42 CPPFLAGS.${fn}+=-I${GLUDIR}/libnurbs/nurbtess \
43 -I${GLUDIR}/libutil \
44 -DLIBRARYBUILD -D_EXTENSIONS_
45 .endfor
47 SRCS.nurbtess= directedLine.cc gridWrap.cc monoChain.cc monoPolyPart.cc \
48 monoTriangulation.cc partitionX.cc partitionY.cc \
49 polyDBG.cc polyUtil.cc primitiveStream.cc quicksort.cc \
50 rectBlock.cc sampleComp.cc sampleCompBot.cc \
51 sampleCompRight.cc sampleCompTop.cc sampleMonoPoly.cc \
52 sampledLine.cc searchTree.cc
53 .PATH: ${GLUDIR}/libnurbs/nurbtess
54 .for fn in ${SRCS.nurbtess}
55 CPPFLAGS.${fn}+=-DLIBRARYBUILD
56 .endfor
58 CPPFLAGS+= -I${GLUDIR}/include -DNDEBUG
60 SRCS= ${SRCS.libutil} ${SRCS.libtess} \
61 ${SRCS.interface} ${SRCS.internals} ${SRCS.nurbtess}
63 LIBDPLIBS=\
64 GL ${.CURDIR}/../GL
66 LDADD+= -lstdc++ -lm
67 DPADD+= ${LIBSTDCXX} ${LIBM}
69 .include <bsd.x11.mk>
70 .include <bsd.lib.mk>