1 # $NetBSD: Makefile,v 1.19 2005/09/24 13:51:46 chs Exp $
3 NOLINT
= 1 # XTODO: 3dnow.ln barfs on src/math/m_vertices.h
9 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/drivers
/common
12 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/drivers
/osmesa
15 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/main
16 SRCS
+= accum.c api_arrayelt.c api_loopback.c api_noop.c \
17 api_validate.c attrib.c blend.c buffers.c clip.c colortab.c \
18 context.c convolve.c debug.c depth.c dlist.c drawpix.c \
19 enable.c enums.c eval.c extensions.c feedback.c fog.c
get.c \
20 hash.c hint.c histogram.c image.c imports.c light.c lines.c \
21 matrix.c occlude.c pixel.c points.c polygon.c rastpos.c \
22 state.c stencil.c texcompress.c texcompress_fxt1.c texcompress_s3tc.c \
23 texformat.c teximage.c texobj.c texstate.c texstore.c \
26 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/array_cache
27 SRCS
+= ac_context.c ac_import.c
29 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/math
30 SRCS
+= m_debug_clip.c m_debug_norm.c m_debug_xform.c m_eval.c \
31 m_matrix.c m_translate.c m_vector.c m_xform.c
33 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/shader
34 SRCS
+= arbprogram.c arbfragparse.c arbprogparse.c arbvertparse.c \
35 bufferobj.c grammar_mesa.c \
36 nvfragparse.c nvprogram.c nvvertexec.c nvvertparse.c \
39 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/swrast
40 SRCS
+= s_aaline.c s_aatriangle.c s_accum.c s_alpha.c s_alphabuf.c \
42 s_bitmap.c s_blend.c s_buffers.c s_context.c s_copypix.c \
43 s_depth.c s_drawpix.c s_feedback.c s_fog.c s_imaging.c \
44 s_lines.c s_logic.c s_masking.c s_nvfragprog.c s_pixeltex.c \
45 s_points.c s_readpix.c s_span.c s_stencil.c s_texstore.c \
46 s_texture.c s_triangle.c s_zoom.c
48 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/swrast_setup
49 SRCS
+= ss_context.c ss_triangle.c
51 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/tnl
52 SRCS
+= t_array_api.c t_array_import.c t_context.c \
53 t_pipeline.c t_save_api.c t_save_loopback.c t_save_playback.c \
54 t_vb_fog.c t_vb_light.c t_vb_normals.c t_vb_points.c \
55 t_vb_program.c t_vb_render.c t_vb_texgen.c t_vb_texmat.c \
56 t_vb_vertex.c t_vertex.c t_vertex_c.c t_vtx_api.c t_vtx_eval.c \
57 t_vtx_exec.c t_vtx_generic.c t_save_playback.c
60 CPPFLAGS
+= ${X11FLAGS.DRI
}
63 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}/X11 \
64 -I
${X11SRCDIR.xc
}/lib
/GL
/include \
65 -I
${X11SRCDIR.xc
}/extras
/Mesa
/include \
66 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa \
67 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/main \
68 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/glapi \
69 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/shader \
70 ${X11FLAGS.THREADS
} ${X11FLAGS.EXTENSION
} \
71 -DGLXEXT
-DGLX_USE_MESA
73 .if
${MACHINE_ARCH} == "i386"
74 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/x86
75 SRCS
+= common_x86.c common_x86_asm.S x86.c x86_cliptest.S \
76 x86_xform2.S x86_xform3.S x86_xform4.S \
78 3dnow.c
3dnow_normal.S
3dnow_xform1.S \
79 3dnow_xform2.S
3dnow_xform3.S
3dnow_xform4.S \
80 sse.c sse_normal.S sse_xform1.S \
81 sse_xform2.S sse_xform3.S sse_xform4.S \
82 t_vtx_x86.c t_vtx_x86_gcc.S
84 CPPFLAGS
+= -DUSE_X86_ASM
-DUSE_MMX_ASM
-DUSE_3DNOW_ASM
-DUSE_SSE_ASM
85 COMPILE.S
= ${COMPILE.s
} # XXX don't want -traditional-cpp
86 AFLAGS
+= -DUSE_MMX_ASM
-DUSE_3DNOW_ASM
-DUSE_SSE_ASM
87 AFLAGS
+= -DUSE_GAS
-I.
-I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/x86
90 .if
${MACHINE_ARCH} == "sparc" ||
${MACHINE_ARCH} == "sparc64"
91 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
/mesa
/sparc
92 SRCS
+= sparc.c xform.S clip.S norm.S
93 CPPFLAGS
+= -DUSE_SPARC_ASM
94 COMPILE.S
= ${COMPILE.s
} # XXX don't want -traditional-cpp
95 AFLAGS
+= -DUSE_GAS
-I.
-I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/SPARC
98 .
include "${NETBSDSRCDIR}/x11/tools/gen_matypes/Makefile.gen_matypes"
100 matypes.h
: ${GEN_MATYPES}
103 ${GEN_MATYPES} > ${.TARGET
}
104 CLEANFILES
+= matypes.h
114 .
include <bsd.x11.mk
>
115 .
include <bsd.lib.mk
>