2006-04-22 01:46:06 +04:00
|
|
|
# $NetBSD: Makefile,v 1.14 2006/04/21 21:46:06 sketch Exp $
|
2003-09-12 06:49:56 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
LIB= GL
|
|
|
|
|
2004-03-06 06:05:39 +03:00
|
|
|
# glx
|
2003-09-12 06:49:56 +04:00
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/GL/glx
|
2005-03-20 00:41:58 +03:00
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/glapi
|
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/drivers/dri/common
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.glx= clientattrib.c compsize.c dispatch.c eval.c g_render.c \
|
|
|
|
g_single.c g_vendpriv.c glthread.c glxcmds.c glxext.c \
|
2005-03-21 02:52:05 +03:00
|
|
|
glxextensions.c indirect_init.c \
|
2004-03-06 06:05:39 +03:00
|
|
|
pixel.c pixelstore.c render2.c renderpix.c single2.c \
|
2005-03-21 02:52:05 +03:00
|
|
|
singlepix.c vertarr.c xfont.c glx_pbuffer.c glx_query.c \
|
|
|
|
glx_texture_compression.c
|
2004-03-06 06:05:39 +03:00
|
|
|
|
2005-03-21 02:52:05 +03:00
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/drivers/dri/common
|
|
|
|
SRCS.glx+= glcontextmodes.c
|
|
|
|
|
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/glapi
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.glx+= glapi.c
|
|
|
|
|
|
|
|
.if ${MACHINE} == "i386"
|
2005-03-20 00:41:58 +03:00
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/x86
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.glx+= glapi_x86.S
|
2004-04-05 16:01:42 +04:00
|
|
|
CPPFLAGS+= -DUSE_X86_ASM -I${X11SRCDIR.xc}/extras/Mesa/src/X86
|
|
|
|
# -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
|
2004-03-06 06:05:39 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
|
|
.if ${X11DRI} != "no"
|
|
|
|
# dri
|
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/GL/dri
|
|
|
|
SRCS.dri= XF86dri.c dri_glx.c
|
|
|
|
.for fn in ${SRCS.dri}
|
|
|
|
CPPFLAGS.${fn}=-DDEFAULT_DRIVER_DIR=\"${X11USRLIBDIR}/modules\"
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
|
|
|
|
# drm
|
|
|
|
.PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/linux/drm
|
|
|
|
SRCS.drm= xf86drm.c xf86drmHash.c xf86drmRandom.c xf86drmSL.c
|
|
|
|
|
|
|
|
|
|
|
|
# mesa
|
2003-09-12 06:49:56 +04:00
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.mesa= accum.c api_arrayelt.c api_eval.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 \
|
|
|
|
dispatch.c dlist.c drawpix.c enable.c enums.c \
|
|
|
|
MESAeval.c extensions.c feedback.c fog.c get.c \
|
|
|
|
MESApixel.c glthread.c hash.c hint.c histogram.c image.c \
|
|
|
|
imports.c light.c lines.c matrix.c mmath.c \
|
|
|
|
points.c polygon.c rastpos.c state.c stencil.c \
|
|
|
|
texcompress.c texformat.c teximage.c texobj.c texstate.c \
|
|
|
|
texstore.c texutil.c varray.c vtxfmt.c vpexec.c \
|
|
|
|
vpparse.c vpstate.c
|
|
|
|
|
|
|
|
# XXX avoid source name clashes with glx
|
|
|
|
BUILDSYMLINKS= ${X11SRCDIR.xc}/extras/Mesa/src/pixel.c MESApixel.c \
|
|
|
|
${X11SRCDIR.xc}/extras/Mesa/src/eval.c MESAeval.c
|
|
|
|
|
|
|
|
|
|
|
|
# array_cache
|
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/array_cache
|
|
|
|
SRCS.ac= ac_context.c ac_import.c
|
|
|
|
|
|
|
|
|
|
|
|
# math
|
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/math
|
|
|
|
SRCS.math= 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
|
|
|
|
|
|
|
|
|
|
|
|
# swrast
|
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/swrast
|
|
|
|
SRCS.swrast= 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_histogram.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
|
|
|
|
|
|
|
|
|
|
|
|
# swrast_setup
|
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/swrast_setup
|
|
|
|
SRCS.ss= ss_context.c ss_triangle.c ss_vb.c
|
|
|
|
|
|
|
|
|
|
|
|
# tnl
|
|
|
|
.PATH: ${X11SRCDIR.xc}/extras/Mesa/src/tnl
|
|
|
|
SRCS.tnl= t_array_api.c t_array_import.c t_context.c t_eval_api.c \
|
|
|
|
t_imm_alloc.c t_imm_api.c t_imm_debug.c t_imm_dlist.c \
|
|
|
|
t_imm_elt.c t_imm_eval.c t_imm_exec.c t_imm_fixup.c \
|
|
|
|
t_pipeline.c t_vb_fog.c t_vb_light.c t_vb_normals.c \
|
|
|
|
t_vb_points.c t_vb_program.c t_vb_render.c t_vb_texgen.c \
|
|
|
|
t_vb_texmat.c t_vb_vertex.c
|
|
|
|
|
|
|
|
|
2006-04-22 01:46:06 +04:00
|
|
|
.for fn in ${SRCS.glx} ${SRCS.dri} ${SRCS.drm} ${SRCS.mesa} ${SRCS.ac} \
|
2004-03-06 06:05:39 +03:00
|
|
|
${SRCS.math} ${SRCS.swrast} ${SRCS.ss} ${SRCS.tnl}
|
|
|
|
CPPFLAGS.${fn}+=-I${X11SRCDIR.xc}/lib/GL/dri \
|
|
|
|
-I${X11SRCDIR.xc}/lib/GL/glx \
|
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support \
|
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel \
|
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/GL/dri \
|
2005-03-20 00:41:58 +03:00
|
|
|
-I${X11SRCDIR.xc}/extras/Mesa/include \
|
|
|
|
-I${X11SRCDIR.xc}/extras/Mesa/src/mesa/glapi
|
2004-03-06 06:05:39 +03:00
|
|
|
CPPFLAGS.${fn}+=${X11FLAGS.DRI}
|
|
|
|
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
SRCS+= ${SRCS.dri} ${SRCS.drm} ${SRCS.mesa} ${SRCS.ac} ${SRCS.math} \
|
|
|
|
${SRCS.swrast} ${SRCS.ss} ${SRCS.tnl}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SRCS+= ${SRCS.glx}
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2003-09-30 10:41:29 +04:00
|
|
|
CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 \
|
|
|
|
-I${DESTDIR}${X11INCDIR}/X11/extensions \
|
2003-09-12 06:49:56 +04:00
|
|
|
-I${X11SRCDIR.xc}/lib/GL/include \
|
2005-03-20 00:41:58 +03:00
|
|
|
-I${X11SRCDIR.xc}/extras/Mesa/include \
|
|
|
|
-I${X11SRCDIR.xc}/extras/Mesa/src/mesa/glapi \
|
|
|
|
-I${X11SRCDIR.xc}/extras/Mesa/src/mesa/main \
|
|
|
|
-I${X11SRCDIR.xc}/extras/Mesa/src/mesa/drivers/dri/common \
|
2005-05-14 23:27:56 +04:00
|
|
|
${X11FLAGS.THREADS} ${X11FLAGS.EXTENSION} -DGLXEXT \
|
|
|
|
-DGLX_USE_MESA
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2005-09-24 17:51:46 +04:00
|
|
|
LIBDPLIBS=\
|
|
|
|
Xext ${.CURDIR}/../Xext \
|
|
|
|
X11 ${.CURDIR}/../X11/dynamic
|
2003-09-12 06:49:56 +04:00
|
|
|
|
|
|
|
.include <bsd.x11.mk>
|
2003-09-14 00:17:57 +04:00
|
|
|
.include <bsd.lib.mk>
|