Sync usage with man page.
[netbsd-mini2440.git] / external / mit / xorg / lib / libGLU / Makefile
blobdcf83fcfb7746a91d012c3f5bcd8753544f1c3be
1 # $NetBSD: Makefile,v 1.3 2008/12/06 19:32:05 mrg Exp $
3 NOLINT= 1 # XTODO: tess.ln SIGSEGVs lint :(
5 .include <bsd.own.mk>
7 LIB= GLU
8 LIBISCXX= yes
10 GLUDIR= ${X11SRCDIR.MesaLib}/src/glu/sgi
12 SRCS.libutil= error.c glue.c mipmap.c project.c quad.c registry.c
13 .PATH: ${GLUDIR}/libutil
15 SRCS.libtess= dict.c geom.c memalloc.c mesh.c normal.c priorityq.c \
16 render.c sweep.c tess.c tessmono.c
17 .PATH: ${GLUDIR}/libtess
19 SRCS.interface= bezierEval.cc bezierPatch.cc bezierPatchMesh.cc \
20 glcurveval.cc glinterface.cc glrenderer.cc \
21 glsurfeval.cc incurveeval.cc insurfeval.cc
22 .PATH: ${GLUDIR}/libnurbs/interface
23 .for fn in ${SRCS.interface}
24 CPPFLAGS.${fn}+=-I${GLUDIR}/libnurbs/internals \
25 -I${GLUDIR}/libnurbs/nurbtess \
26 -DLIBRARYBUILD
27 .endfor
29 SRCS.internals= arc.cc arcsorter.cc arctess.cc backend.cc \
30 basiccrveval.cc basicsurfeval.cc bin.cc bufpool.cc \
31 cachingeval.cc ccw.cc coveandtiler.cc curve.cc \
32 curvelist.cc curvesub.cc dataTransform.cc displaylist.cc \
33 flist.cc flistsorter.cc hull.cc intersect.cc \
34 knotvector.cc mapdesc.cc mapdescv.cc maplist.cc \
35 mesher.cc monoTriangulationBackend.cc monotonizer.cc \
36 mycode.cc nurbsinterfac.cc nurbstess.cc patch.cc \
37 patchlist.cc quilt.cc reader.cc renderhints.cc \
38 slicer.cc sorter.cc splitarcs.cc subdivider.cc \
39 tobezier.cc trimline.cc trimregion.cc trimvertpool.cc \
40 uarray.cc varray.cc
41 .PATH: ${GLUDIR}/libnurbs/internals
42 .for fn in ${SRCS.internals}
43 CPPFLAGS.${fn}+=-I${GLUDIR}/libnurbs/internals \
44 -I${GLUDIR}/libnurbs/nurbtess \
45 -I${GLUDIR}/libutil \
46 -DLIBRARYBUILD -D_EXTENSIONS_
47 .endfor
49 SRCS.nurbtess= directedLine.cc gridWrap.cc monoChain.cc monoPolyPart.cc \
50 monoTriangulation.cc partitionX.cc partitionY.cc \
51 polyDBG.cc polyUtil.cc primitiveStream.cc quicksort.cc \
52 rectBlock.cc sampleComp.cc sampleCompBot.cc \
53 sampleCompRight.cc sampleCompTop.cc sampleMonoPoly.cc \
54 sampledLine.cc searchTree.cc
55 .PATH: ${GLUDIR}/libnurbs/nurbtess
56 .for fn in ${SRCS.nurbtess}
57 CPPFLAGS.${fn}+=-I${GLUDIR}/libnurbs/internals \
58 -I${GLUDIR}/libnurbs/nurbtess \
59 -DLIBRARYBUILD
60 .endfor
62 CPPFLAGS+= -I${GLUDIR}/include
63 CPPFLAGS+= -DPTHREADS -DUSE_XSHM -DHZ=100 -DNDEBUG -DLIBRARYBUILD
65 SRCS= ${SRCS.libutil} ${SRCS.libtess} \
66 ${SRCS.interface} ${SRCS.internals} ${SRCS.nurbtess}
68 CFLAGS+= -fno-strict-aliasing -fvisibility=hidden -pthread
70 .PATH: ${X11SRCDIR.MesaLib}/include/GL
71 INCS= glu.h glu_mangle.h
72 INCSDIR=${X11INCDIR}/GL
74 LIBDPLIBS= Xext ${.CURDIR}/../libXext \
75 X11 ${.CURDIR}/../libX11/dynamic \
76 GL ${.CURDIR}/../libGL \
77 Xxf86vm ${.CURDIR}/../libXxf86vm \
78 Xfixes ${.CURDIR}/../libXfixes \
79 Xdamage ${.CURDIR}/../libXdamage \
80 drm ${.CURDIR}/../libdrm
82 LDADD+= -lstdc++ -lm
83 DPADD+= ${LIBSTDCXX} ${LIBM}
85 PKGCONFIG= glu
86 PKGDIST.glu= ${X11SRCDIR.MesaLib}/src/glu
87 PKGCONFIG_VERSION.glu= 7.4.2
89 .include <bsd.x11.mk>
90 .include <bsd.lib.mk>