2005-09-24 17:51:46 +04:00
|
|
|
# $NetBSD: Makefile,v 1.7 2005/09/24 13:51:46 chs Exp $
|
2003-09-11 22:37:05 +04:00
|
|
|
|
|
|
|
NOLINT= 1 # XTODO: tess.ln SIGSEGVs lint :(
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
LIB= GLU
|
|
|
|
|
|
|
|
GLUDIR= ${X11SRCDIR.xc}/extras/ogl-sample/main/gfx/lib/glu
|
|
|
|
|
|
|
|
SRCS.libutil= error.c glue.c mipmap.c project.c quad.c registry.c
|
|
|
|
.PATH: ${GLUDIR}/libutil
|
|
|
|
|
|
|
|
SRCS.libtess= dict.c geom.c memalloc.c mesh.c normal.c priorityq.c \
|
|
|
|
render.c sweep.c tess.c tessmono.c
|
|
|
|
.PATH: ${GLUDIR}/libtess
|
|
|
|
|
|
|
|
SRCS.interface= bezierEval.cc bezierPatch.cc bezierPatchMesh.cc \
|
|
|
|
glcurveval.cc glinterface.cc glrenderer.cc \
|
|
|
|
glsurfeval.cc incurveeval.cc insurfeval.cc
|
|
|
|
.PATH: ${GLUDIR}/libnurbs/interface
|
|
|
|
.for fn in ${SRCS.interface}
|
|
|
|
CPPFLAGS.${fn}+=-I${GLUDIR}/libnurbs/internals \
|
|
|
|
-I${GLUDIR}/libnurbs/nurbtess \
|
|
|
|
-DLIBRARYBUILD
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
SRCS.internals= arc.cc arcsorter.cc arctess.cc backend.cc \
|
|
|
|
basiccrveval.cc basicsurfeval.cc bin.cc bufpool.cc \
|
|
|
|
cachingeval.cc ccw.cc coveandtiler.cc curve.cc \
|
|
|
|
curvelist.cc curvesub.cc dataTransform.cc displaylist.cc \
|
|
|
|
flist.cc flistsorter.cc hull.cc intersect.cc \
|
|
|
|
knotvector.cc mapdesc.cc mapdescv.cc maplist.cc \
|
|
|
|
mesher.cc monoTriangulationBackend.cc monotonizer.cc \
|
|
|
|
mycode.cc nurbsinterfac.cc nurbstess.cc patch.cc \
|
|
|
|
patchlist.cc quilt.cc reader.cc renderhints.cc \
|
|
|
|
slicer.cc sorter.cc splitarcs.cc subdivider.cc \
|
|
|
|
tobezier.cc trimline.cc trimregion.cc trimvertpool.cc \
|
|
|
|
uarray.cc varray.cc
|
|
|
|
.PATH: ${GLUDIR}/libnurbs/internals
|
|
|
|
.for fn in ${SRCS.internals}
|
|
|
|
CPPFLAGS.${fn}+=-I${GLUDIR}/libnurbs/nurbtess \
|
|
|
|
-I${GLUDIR}/libutil \
|
|
|
|
-DLIBRARYBUILD -D_EXTENSIONS_
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
SRCS.nurbtess= directedLine.cc gridWrap.cc monoChain.cc monoPolyPart.cc \
|
|
|
|
monoTriangulation.cc partitionX.cc partitionY.cc \
|
|
|
|
polyDBG.cc polyUtil.cc primitiveStream.cc quicksort.cc \
|
|
|
|
rectBlock.cc sampleComp.cc sampleCompBot.cc \
|
|
|
|
sampleCompRight.cc sampleCompTop.cc sampleMonoPoly.cc \
|
|
|
|
sampledLine.cc searchTree.cc
|
|
|
|
.PATH: ${GLUDIR}/libnurbs/nurbtess
|
|
|
|
.for fn in ${SRCS.nurbtess}
|
|
|
|
CPPFLAGS.${fn}+=-DLIBRARYBUILD
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${GLUDIR}/include -DNDEBUG
|
|
|
|
|
|
|
|
SRCS= ${SRCS.libutil} ${SRCS.libtess} \
|
|
|
|
${SRCS.interface} ${SRCS.internals} ${SRCS.nurbtess}
|
|
|
|
|
2005-09-24 17:51:46 +04:00
|
|
|
LIBDPLIBS=\
|
|
|
|
GL ${.CURDIR}/../GL
|
2004-08-04 12:37:04 +04:00
|
|
|
|
|
|
|
LDADD+= -lstdc++ -lm
|
|
|
|
DPADD+= ${LIBSTDCXX} ${LIBM}
|
2003-09-11 22:37:05 +04:00
|
|
|
|
|
|
|
.include <bsd.x11.mk>
|
2003-09-14 00:17:57 +04:00
|
|
|
.include <bsd.lib.mk>
|