Fix up mix of man(7)/mdoc(7).
[netbsd-mini2440.git] / x11 / lib / GL / Makefile
blob99c8f016c49999ceb4af56533ce78834189076fa
1 # $NetBSD: Makefile,v 1.14 2006/04/21 21:46:06 sketch Exp $
3 .include <bsd.own.mk>
5 LIB= GL
7 # glx
8 .PATH: ${X11SRCDIR.xc}/lib/GL/glx
9 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/glapi
10 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/drivers/dri/common
11 SRCS.glx= clientattrib.c compsize.c dispatch.c eval.c g_render.c \
12 g_single.c g_vendpriv.c glthread.c glxcmds.c glxext.c \
13 glxextensions.c indirect_init.c \
14 pixel.c pixelstore.c render2.c renderpix.c single2.c \
15 singlepix.c vertarr.c xfont.c glx_pbuffer.c glx_query.c \
16 glx_texture_compression.c
18 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/drivers/dri/common
19 SRCS.glx+= glcontextmodes.c
21 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/glapi
22 SRCS.glx+= glapi.c
24 .if ${MACHINE_ARCH} == "i386"
25 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/mesa/x86
26 SRCS.glx+= glapi_x86.S
27 CPPFLAGS+= -DUSE_X86_ASM -I${X11SRCDIR.xc}/extras/Mesa/src/X86
28 # -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS)
29 .endif
32 .if ${X11DRI} != "no"
33 # dri
34 .PATH: ${X11SRCDIR.xc}/lib/GL/dri
35 SRCS.dri= XF86dri.c dri_glx.c
36 .for fn in ${SRCS.dri}
37 CPPFLAGS.${fn}=-DDEFAULT_DRIVER_DIR=\"${X11USRLIBDIR}/modules\"
38 .endfor
41 # drm
42 .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/linux/drm
43 SRCS.drm= xf86drm.c xf86drmHash.c xf86drmRandom.c xf86drmSL.c
46 # mesa
47 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src
48 SRCS.mesa= accum.c api_arrayelt.c api_eval.c api_loopback.c \
49 api_noop.c api_validate.c attrib.c blend.c buffers.c \
50 clip.c colortab.c context.c convolve.c debug.c depth.c \
51 dispatch.c dlist.c drawpix.c enable.c enums.c \
52 MESAeval.c extensions.c feedback.c fog.c get.c \
53 MESApixel.c glthread.c hash.c hint.c histogram.c image.c \
54 imports.c light.c lines.c matrix.c mmath.c \
55 points.c polygon.c rastpos.c state.c stencil.c \
56 texcompress.c texformat.c teximage.c texobj.c texstate.c \
57 texstore.c texutil.c varray.c vtxfmt.c vpexec.c \
58 vpparse.c vpstate.c
60 # XXX avoid source name clashes with glx
61 BUILDSYMLINKS= ${X11SRCDIR.xc}/extras/Mesa/src/pixel.c MESApixel.c \
62 ${X11SRCDIR.xc}/extras/Mesa/src/eval.c MESAeval.c
65 # array_cache
66 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/array_cache
67 SRCS.ac= ac_context.c ac_import.c
70 # math
71 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/math
72 SRCS.math= m_debug_clip.c m_debug_norm.c m_debug_xform.c \
73 m_eval.c m_matrix.c m_translate.c m_vector.c m_xform.c
76 # swrast
77 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/swrast
78 SRCS.swrast= s_aaline.c s_aatriangle.c s_accum.c s_alpha.c \
79 s_alphabuf.c s_bitmap.c s_blend.c s_buffers.c \
80 s_context.c s_copypix.c s_depth.c s_drawpix.c \
81 s_feedback.c s_fog.c s_histogram.c s_imaging.c \
82 s_lines.c s_logic.c s_masking.c s_pixeltex.c \
83 s_points.c s_readpix.c s_span.c s_stencil.c \
84 s_texstore.c s_texture.c s_triangle.c s_zoom.c
87 # swrast_setup
88 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/swrast_setup
89 SRCS.ss= ss_context.c ss_triangle.c ss_vb.c
92 # tnl
93 .PATH: ${X11SRCDIR.xc}/extras/Mesa/src/tnl
94 SRCS.tnl= t_array_api.c t_array_import.c t_context.c t_eval_api.c \
95 t_imm_alloc.c t_imm_api.c t_imm_debug.c t_imm_dlist.c \
96 t_imm_elt.c t_imm_eval.c t_imm_exec.c t_imm_fixup.c \
97 t_pipeline.c t_vb_fog.c t_vb_light.c t_vb_normals.c \
98 t_vb_points.c t_vb_program.c t_vb_render.c t_vb_texgen.c \
99 t_vb_texmat.c t_vb_vertex.c
102 .for fn in ${SRCS.glx} ${SRCS.dri} ${SRCS.drm} ${SRCS.mesa} ${SRCS.ac} \
103 ${SRCS.math} ${SRCS.swrast} ${SRCS.ss} ${SRCS.tnl}
104 CPPFLAGS.${fn}+=-I${X11SRCDIR.xc}/lib/GL/dri \
105 -I${X11SRCDIR.xc}/lib/GL/glx \
106 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support \
107 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel \
108 -I${X11SRCDIR.xc}/programs/Xserver/GL/dri \
109 -I${X11SRCDIR.xc}/extras/Mesa/include \
110 -I${X11SRCDIR.xc}/extras/Mesa/src/mesa/glapi
111 CPPFLAGS.${fn}+=${X11FLAGS.DRI}
113 .endfor
115 SRCS+= ${SRCS.dri} ${SRCS.drm} ${SRCS.mesa} ${SRCS.ac} ${SRCS.math} \
116 ${SRCS.swrast} ${SRCS.ss} ${SRCS.tnl}
117 .endif
119 SRCS+= ${SRCS.glx}
121 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 \
122 -I${DESTDIR}${X11INCDIR}/X11/extensions \
123 -I${X11SRCDIR.xc}/lib/GL/include \
124 -I${X11SRCDIR.xc}/extras/Mesa/include \
125 -I${X11SRCDIR.xc}/extras/Mesa/src/mesa/glapi \
126 -I${X11SRCDIR.xc}/extras/Mesa/src/mesa/main \
127 -I${X11SRCDIR.xc}/extras/Mesa/src/mesa/drivers/dri/common \
128 ${X11FLAGS.THREADS} ${X11FLAGS.EXTENSION} -DGLXEXT \
129 -DGLX_USE_MESA
131 LIBDPLIBS=\
132 Xext ${.CURDIR}/../Xext \
133 X11 ${.CURDIR}/../X11/dynamic
135 .include <bsd.x11.mk>
136 .include <bsd.lib.mk>