NetBSD/x11/lib/OSmesa/Makefile
rtr 247dcd3422 + update .PATH for sparc clip.S
+ enable MIEXT_* by default since it is required by Xdmx and all archs
  build it

This makes -m sparc build src/x11
2005-03-22 19:47:59 +00:00

108 lines
3.5 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2005/03/22 19:47:59 rtr Exp $
NOLINT= 1 # XTODO: 3dnow.ln barfs on src/math/m_vertices.h
.include <bsd.own.mk>
LIB= OSMesa
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/drivers/osmesa
SRCS= osmesa.c
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/main
SRCS+= accum.c api_arrayelt.c api_loopback.c api_noop.c \
api_validate.c attrib.c blend.c buffers.c clip.c colortab.c \
context.c convolve.c debug.c depth.c dlist.c drawpix.c \
enable.c enums.c eval.c extensions.c feedback.c fog.c get.c \
hash.c hint.c histogram.c image.c imports.c light.c lines.c \
matrix.c pixel.c points.c polygon.c rastpos.c \
state.c stencil.c texformat.c teximage.c texobj.c \
texstate.c texstore.c varray.c vtxfmt.c
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/array_cache
SRCS+= ac_context.c ac_import.c
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/math
SRCS+= m_debug_clip.c m_debug_norm.c m_debug_xform.c m_eval.c \
m_matrix.c m_translate.c m_vector.c m_xform.c
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/swrast
SRCS+= s_aaline.c s_aatriangle.c s_accum.c s_alpha.c s_alphabuf.c \
s_bitmap.c s_blend.c s_buffers.c s_context.c s_copypix.c \
s_depth.c s_drawpix.c s_feedback.c s_fog.c \
s_imaging.c s_lines.c s_logic.c s_masking.c s_pixeltex.c \
s_points.c s_readpix.c s_span.c s_stencil.c s_texstore.c \
s_texture.c s_triangle.c s_zoom.c
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/swrast_setup
SRCS+= ss_context.c ss_triangle.c
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/tnl
SRCS+= t_array_api.c t_array_import.c t_context.c \
t_pipeline.c t_vb_fog.c t_vb_light.c t_vb_normals.c \
t_vb_points.c t_vb_render.c t_vb_texgen.c t_vb_texmat.c \
t_vb_vertex.c
.if ${X11DRI} != "no"
CPPFLAGS+= ${X11FLAGS.DRI}
.endif
# XXX removed in xf44 if not found to be needed remove by > xf44
# config.c, m_debug_vertex.c, m_vertices.c, mem.c, s_pb.c, s_scissor.c
CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 \
-I${X11SRCDIR.xc}/lib/GL/include \
-I${X11SRCDIR.xc}/extras/Mesa/include \
-I${X11SRCDIR.xc}/extras/Mesa/src/mesa \
-I${X11SRCDIR.xc}/extras/Mesa/src/mesa/main \
-I${X11SRCDIR.xc}/extras/Mesa/src/mesa/glapi \
-I${X11SRCDIR.xc}/extras/Mesa/src/mesa/shader \
${X11FLAGS.THREADS} \
-DGLXEXT -DGLX_USE_MESA
.if ${MACHINE_ARCH} == "i386"
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/x86
SRCS+= common_x86.c common_x86_asm.S x86.c x86_cliptest.S \
x86_xform2.S x86_xform3.S x86_xform4.S \
mmx_blend.S \
3dnow.c 3dnow_normal.S 3dnow_xform1.S \
3dnow_xform2.S 3dnow_xform3.S 3dnow_xform4.S \
sse.c sse_normal.S sse_xform1.S \
sse_xform2.S sse_xform3.S sse_xform4.S
# XXX removed in xf44 if not found to be needed remove by > xf44
# 3dnow_vertex.S, sse_vertex.S, x86_vertex.S
CPPFLAGS+= -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
COMPILE.S= ${COMPILE.s} # XXX don't want -traditional-cpp
AFLAGS+= -DUSE_GAS -I. -I${X11SRCDIR.xc}/extras/Mesa/src/mesa/x86
.endif
.if ${MACHINE_CPU} == "sh5"
COPTS.s_triangle.c= -O0
.endif
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/sparc
SRCS+= sparc.c xform.S clip.S norm.S
CPPFLAGS+= -DUSE_SPARC_ASM
COMPILE.S= ${COMPILE.s} # XXX don't want -traditional-cpp
AFLAGS+= -DUSE_GAS -I. -I${X11SRCDIR.xc}/extras/Mesa/src/SPARC
.endif
.include "${NETBSDSRCDIR}/x11/tools/gen_matypes/Makefile.gen_matypes"
matypes.h: ${GEN_MATYPES}
${_MKTARGET_CREATE}
rm -f ${.TARGET}
${GEN_MATYPES} > ${.TARGET}
CLEANFILES+= matypes.h
DPSRCS+= matypes.h
LIBDPLIBS= GL ${.CURDIR}/../GL
.include <bsd.x11.mk>
.include <bsd.lib.mk>