2015-01-25 08:09:12 -07:00
|
|
|
# $OpenBSD: Makefile.inc,v 1.10 2015/01/25 15:09:14 jsg Exp $
|
2014-07-09 15:32:40 -06:00
|
|
|
.include "../config.mk"
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2012-08-26 12:46:42 -06:00
|
|
|
MESA= ${.CURDIR}/../../../../dist/Mesa/src/mesa
|
|
|
|
MAPI= ${.CURDIR}/../../../../dist/Mesa/src/mapi
|
|
|
|
GLSL= ${.CURDIR}/../../../../dist/Mesa/src/glsl
|
|
|
|
GALLIUM= ${.CURDIR}/../../../../dist/Mesa/src/gallium
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2012-08-26 12:46:42 -06:00
|
|
|
MESA_INCLUDE= ${.CURDIR}/../../../../dist/Mesa/include
|
2010-05-22 14:14:14 -06:00
|
|
|
|
2008-02-02 10:24:30 -07:00
|
|
|
CPPFLAGS+= \
|
|
|
|
-I. \
|
2011-10-23 07:57:36 -06:00
|
|
|
-I${MAPI} \
|
2008-02-02 10:24:30 -07:00
|
|
|
-I${MESA_INCLUDE} \
|
|
|
|
-I${MESA_INCLUDE}/GL/internal \
|
|
|
|
-I${MESA} \
|
2015-01-25 08:09:12 -07:00
|
|
|
-I${MESA}/.. \
|
2008-02-02 10:24:30 -07:00
|
|
|
-I${MESA}/main \
|
|
|
|
-I${MESA}/math \
|
|
|
|
-I${MESA}/tnl \
|
2011-10-23 07:57:36 -06:00
|
|
|
-I${GLSL} \
|
2014-07-09 15:32:40 -06:00
|
|
|
-I${GALLIUM}/auxiliary \
|
2010-05-22 14:14:14 -06:00
|
|
|
-I${.OBJDIR}/shader/slang \
|
2013-09-05 09:11:54 -06:00
|
|
|
-I${.CURDIR}/../../generated \
|
|
|
|
-I${.CURDIR}/../../generated/main \
|
2008-02-02 10:24:30 -07:00
|
|
|
-I${X11BASE}/include \
|
|
|
|
-D_REENTRANT \
|
2014-07-09 15:32:40 -06:00
|
|
|
-DIN_DRI_DRIVER
|
2008-02-02 10:24:30 -07:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
CPPFLAGS += \
|
2008-05-31 10:36:47 -06:00
|
|
|
-I${MESA}/x86 \
|
2008-02-02 10:24:30 -07:00
|
|
|
-DUSE_X86_ASM \
|
|
|
|
-DUSE_MMX_ASM \
|
|
|
|
-DUSE_3DNOW_ASM \
|
|
|
|
-DUSE_SSE_ASM
|
|
|
|
.elif ${MACHINE_ARCH} == "amd64"
|
2008-05-31 10:36:47 -06:00
|
|
|
CPPFLAGS += \
|
|
|
|
-I${MESA}/x86 \
|
|
|
|
-D__GLX_ALIGN64 -DUSE_X86_64_ASM
|
2008-02-02 10:24:30 -07:00
|
|
|
.endif
|
|
|
|
|
2011-10-23 07:57:36 -06:00
|
|
|
# this is part of MAIN_SOURCES
|
|
|
|
MAIN_ES_SOURCES = \
|
2013-09-05 09:11:54 -06:00
|
|
|
es1_conversion.c
|
2011-10-23 07:57:36 -06:00
|
|
|
|
2008-02-02 10:24:30 -07:00
|
|
|
# main
|
2011-10-23 07:57:36 -06:00
|
|
|
MAIN_SOURCES = \
|
2008-02-02 10:24:30 -07:00
|
|
|
api_arrayelt.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
api_exec.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
api_loopback.c \
|
|
|
|
api_validate.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
accum.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
arbprogram.c \
|
|
|
|
atifragshader.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
attrib.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
arrayobj.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
blend.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
blit.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
bufferobj.c \
|
|
|
|
buffers.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
clear.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
clip.c \
|
|
|
|
colortab.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
compute.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
condrender.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
context.c \
|
|
|
|
convolve.c \
|
2015-01-25 08:09:12 -07:00
|
|
|
copyimage.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
cpuinfo.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
debug.c \
|
|
|
|
depth.c \
|
|
|
|
dlist.c \
|
|
|
|
drawpix.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
drawtex.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
enable.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
errors.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
eval.c \
|
|
|
|
execmem.c \
|
|
|
|
extensions.c \
|
|
|
|
fbobject.c \
|
|
|
|
feedback.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
ffvertex_prog.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
fog.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
formatquery.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
formats.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
format_pack.c \
|
|
|
|
format_unpack.c \
|
2015-01-25 08:09:12 -07:00
|
|
|
format_utils.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
framebuffer.c \
|
|
|
|
get.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
genmipmap.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
getstring.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
glformats.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
hash.c \
|
|
|
|
hint.c \
|
|
|
|
histogram.c \
|
|
|
|
image.c \
|
|
|
|
imports.c \
|
|
|
|
light.c \
|
|
|
|
lines.c \
|
|
|
|
matrix.c \
|
|
|
|
mipmap.c \
|
|
|
|
mm.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
multisample.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
objectlabel.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
pack.c \
|
2012-08-17 07:57:59 -06:00
|
|
|
pbo.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
performance_monitor.c \
|
|
|
|
pipelineobj.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
pixel.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
pixelstore.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
pixeltransfer.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
points.c \
|
|
|
|
polygon.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
queryobj.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
querymatrix.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
rastpos.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
readpix.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
remap.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
renderbuffer.c \
|
2012-08-17 07:57:59 -06:00
|
|
|
samplerobj.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
scissor.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
set.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
shaderapi.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
shaderimage.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
shaderobj.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
shared.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
state.c \
|
|
|
|
stencil.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
syncobj.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
texcompress.c \
|
2015-01-25 08:09:12 -07:00
|
|
|
texcompress_bptc.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
texcompress_cpal.c \
|
2012-08-17 07:57:59 -06:00
|
|
|
texcompress_rgtc.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
texcompress_s3tc.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
texcompress_fxt1.c \
|
|
|
|
texcompress_etc.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
texenv.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
texformat.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
texgen.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
texgetimage.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
teximage.c \
|
|
|
|
texobj.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
texparam.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
texstate.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
texstorage.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
texstore.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
textureview.c \
|
2012-08-17 07:57:59 -06:00
|
|
|
texturebarrier.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
transformfeedback.c \
|
|
|
|
uniforms.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
varray.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
vdpau.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
version.c \
|
|
|
|
viewport.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
vtxfmt.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
enums.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
${MAIN_ES_SOURCES}
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2012-08-17 07:57:59 -06:00
|
|
|
MAIN_CXX_SOURCES = \
|
2013-09-05 09:11:54 -06:00
|
|
|
ff_fragment_shader.cpp \
|
|
|
|
shader_query.cpp \
|
|
|
|
uniform_query.cpp
|
2012-08-17 07:57:59 -06:00
|
|
|
|
2008-02-02 10:24:30 -07:00
|
|
|
# math
|
|
|
|
MATH_SOURCES= \
|
|
|
|
m_debug_clip.c \
|
|
|
|
m_debug_norm.c \
|
|
|
|
m_debug_xform.c \
|
|
|
|
m_eval.c \
|
|
|
|
m_matrix.c \
|
|
|
|
m_translate.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
m_vector.c
|
|
|
|
|
|
|
|
MATH_XFORM_SOURCES = \
|
2008-02-02 10:24:30 -07:00
|
|
|
m_xform.c
|
|
|
|
|
2009-05-17 14:20:23 -06:00
|
|
|
# swrast
|
|
|
|
SWRAST_SOURCES= \
|
|
|
|
s_aaline.c \
|
|
|
|
s_aatriangle.c \
|
|
|
|
s_alpha.c \
|
|
|
|
s_atifragshader.c \
|
|
|
|
s_bitmap.c \
|
|
|
|
s_blend.c \
|
|
|
|
s_blit.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
s_clear.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
s_copypix.c \
|
|
|
|
s_context.c \
|
|
|
|
s_depth.c \
|
|
|
|
s_drawpix.c \
|
|
|
|
s_feedback.c \
|
|
|
|
s_fog.c \
|
|
|
|
s_fragprog.c \
|
|
|
|
s_lines.c \
|
|
|
|
s_logic.c \
|
|
|
|
s_masking.c \
|
|
|
|
s_points.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
s_renderbuffer.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
s_span.c \
|
|
|
|
s_stencil.c \
|
|
|
|
s_texcombine.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
s_texfetch.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
s_texfilter.c \
|
2012-08-17 07:57:59 -06:00
|
|
|
s_texrender.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
s_texture.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
s_triangle.c \
|
|
|
|
s_zoom.c
|
|
|
|
|
|
|
|
# swrast_setup
|
|
|
|
SWRAST_SETUP_SOURCES= \
|
|
|
|
ss_context.c \
|
|
|
|
ss_triangle.c
|
2008-02-02 10:24:30 -07:00
|
|
|
|
|
|
|
# tnl
|
2011-10-23 07:57:36 -06:00
|
|
|
TNL_SOURCES = \
|
2008-02-02 10:24:30 -07:00
|
|
|
t_context.c \
|
|
|
|
t_pipeline.c \
|
|
|
|
t_draw.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
t_rasterpos.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
t_vb_program.c \
|
|
|
|
t_vb_render.c \
|
|
|
|
t_vb_texgen.c \
|
|
|
|
t_vb_texmat.c \
|
|
|
|
t_vb_vertex.c \
|
|
|
|
t_vb_fog.c \
|
|
|
|
t_vb_light.c \
|
|
|
|
t_vb_normals.c \
|
|
|
|
t_vb_points.c \
|
|
|
|
t_vp_build.c \
|
|
|
|
t_vertex.c \
|
|
|
|
t_vertex_sse.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
t_vertex_generic.c
|
|
|
|
|
|
|
|
VBO_SOURCES = \
|
|
|
|
vbo_context.c \
|
|
|
|
vbo_exec.c \
|
|
|
|
vbo_exec_api.c \
|
|
|
|
vbo_exec_array.c \
|
|
|
|
vbo_exec_draw.c \
|
|
|
|
vbo_exec_eval.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
vbo_noop.c \
|
|
|
|
vbo_primitive_restart.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
vbo_rebase.c \
|
|
|
|
vbo_split.c \
|
|
|
|
vbo_split_copy.c \
|
|
|
|
vbo_split_inplace.c \
|
|
|
|
vbo_save.c \
|
|
|
|
vbo_save_api.c \
|
|
|
|
vbo_save_draw.c \
|
|
|
|
vbo_save_loopback.c
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2012-08-26 12:46:42 -06:00
|
|
|
STATETRACKER_SOURCES = \
|
|
|
|
st_atom.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
st_atom_array.c \
|
2012-08-26 12:46:42 -06:00
|
|
|
st_atom_blend.c \
|
|
|
|
st_atom_clip.c \
|
|
|
|
st_atom_constbuf.c \
|
|
|
|
st_atom_depth.c \
|
|
|
|
st_atom_framebuffer.c \
|
|
|
|
st_atom_msaa.c \
|
|
|
|
st_atom_pixeltransfer.c \
|
|
|
|
st_atom_sampler.c \
|
|
|
|
st_atom_scissor.c \
|
|
|
|
st_atom_shader.c \
|
|
|
|
st_atom_rasterizer.c \
|
|
|
|
st_atom_stipple.c \
|
|
|
|
st_atom_texture.c \
|
|
|
|
st_atom_viewport.c \
|
|
|
|
st_cb_bitmap.c \
|
|
|
|
st_cb_blit.c \
|
|
|
|
st_cb_bufferobjects.c \
|
|
|
|
st_cb_clear.c \
|
|
|
|
st_cb_condrender.c \
|
|
|
|
st_cb_flush.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
st_cb_msaa.c \
|
2012-08-26 12:46:42 -06:00
|
|
|
st_cb_drawpixels.c \
|
|
|
|
st_cb_drawtex.c \
|
|
|
|
st_cb_eglimage.c \
|
|
|
|
st_cb_fbo.c \
|
|
|
|
st_cb_feedback.c \
|
|
|
|
st_cb_program.c \
|
|
|
|
st_cb_queryobj.c \
|
|
|
|
st_cb_rasterpos.c \
|
|
|
|
st_cb_readpixels.c \
|
|
|
|
st_cb_syncobj.c \
|
|
|
|
st_cb_strings.c \
|
|
|
|
st_cb_texture.c \
|
|
|
|
st_cb_texturebarrier.c \
|
|
|
|
st_cb_viewport.c \
|
|
|
|
st_cb_xformfb.c \
|
|
|
|
st_context.c \
|
|
|
|
st_debug.c \
|
|
|
|
st_draw.c \
|
|
|
|
st_draw_feedback.c \
|
|
|
|
st_extensions.c \
|
|
|
|
st_format.c \
|
|
|
|
st_gen_mipmap.c \
|
|
|
|
st_manager.c \
|
|
|
|
st_mesa_to_tgsi.c \
|
|
|
|
st_program.c \
|
2014-07-09 15:32:40 -06:00
|
|
|
st_texture.c \
|
|
|
|
st_vdpau.c
|
2012-08-26 12:46:42 -06:00
|
|
|
|
2013-09-05 09:11:54 -06:00
|
|
|
STATETRACKER_CXX_SOURCES = \
|
|
|
|
st_glsl_to_tgsi.cpp
|
|
|
|
|
2011-10-23 07:57:36 -06:00
|
|
|
PROGRAM_SOURCES = \
|
2008-02-02 10:24:30 -07:00
|
|
|
arbprogparse.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
hash_table.c \
|
|
|
|
lex.yy.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
program.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
program_parse.tab.c \
|
|
|
|
program_parse_extra.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
prog_cache.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
prog_execute.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
prog_hash_table.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
prog_instruction.c \
|
2009-05-17 14:20:23 -06:00
|
|
|
prog_noise.c \
|
2013-09-05 09:11:54 -06:00
|
|
|
prog_opt_constant_fold.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
prog_optimize.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
prog_parameter.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
prog_parameter_layout.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
prog_print.c \
|
|
|
|
prog_statevars.c \
|
|
|
|
programopt.c \
|
2011-10-23 07:57:36 -06:00
|
|
|
symbol_table.c
|
|
|
|
|
2013-09-05 09:11:54 -06:00
|
|
|
PROGRAM_CXX_SOURCES = \
|
|
|
|
string_to_uint_map.cpp
|
|
|
|
|
2011-10-23 07:57:36 -06:00
|
|
|
SHADER_CXX_SOURCES = \
|
|
|
|
ir_to_mesa.cpp \
|
|
|
|
sampler.cpp
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2015-01-25 08:09:12 -07:00
|
|
|
.if ${MACHINE_ARCH} == i386 || ${MACHINE_ARCH} == amd64
|
2008-02-02 10:24:30 -07:00
|
|
|
ASM_C_SOURCES= \
|
|
|
|
common_x86.c \
|
2010-05-22 14:14:14 -06:00
|
|
|
x86_xform.c \
|
2008-02-02 10:24:30 -07:00
|
|
|
3dnow.c \
|
|
|
|
sse.c \
|
2015-01-25 08:09:12 -07:00
|
|
|
x86sse.c \
|
|
|
|
x86-64.c
|
|
|
|
.endif
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2015-01-25 08:09:12 -07:00
|
|
|
.if ${MACHINE_ARCH} == i386
|
2008-02-02 10:24:30 -07:00
|
|
|
ASM_SOURCES= \
|
|
|
|
common_x86_asm.S \
|
|
|
|
x86_xform2.S \
|
|
|
|
x86_xform3.S \
|
|
|
|
x86_xform4.S \
|
|
|
|
x86_cliptest.S \
|
|
|
|
mmx_blend.S \
|
|
|
|
3dnow_xform1.S \
|
|
|
|
3dnow_xform2.S \
|
|
|
|
3dnow_xform3.S \
|
|
|
|
3dnow_xform4.S \
|
|
|
|
3dnow_normal.S \
|
|
|
|
sse_xform1.S \
|
|
|
|
sse_xform2.S \
|
|
|
|
sse_xform3.S \
|
|
|
|
sse_xform4.S \
|
|
|
|
sse_normal.S \
|
|
|
|
read_rgba_span_x86.S
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == amd64
|
|
|
|
ASM_SOURCES = \
|
|
|
|
xform4.S
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == sparc
|
|
|
|
ASM_C_SOURCES= \
|
|
|
|
sparc.c
|
|
|
|
SPARC_SOURCES = \
|
|
|
|
clip.S \
|
|
|
|
norm.S \
|
|
|
|
xform.S
|
|
|
|
.endif
|
|
|
|
|
2009-05-17 14:20:23 -06:00
|
|
|
COMMON_DRIVER_SOURCES = \
|
2010-05-22 14:14:14 -06:00
|
|
|
driverfuncs.c \
|
|
|
|
meta.c
|
2009-05-17 14:20:23 -06:00
|
|
|
|
|
|
|
MESA_SOURCES = \
|
2008-02-02 10:24:30 -07:00
|
|
|
$(MAIN_SOURCES) \
|
|
|
|
$(MATH_SOURCES) \
|
2011-10-23 07:57:36 -06:00
|
|
|
$(MATH_XFORM_SOURCES) \
|
2008-02-02 10:24:30 -07:00
|
|
|
$(VBO_SOURCES) \
|
|
|
|
$(TNL_SOURCES) \
|
2011-10-23 07:57:36 -06:00
|
|
|
$(PROGRAM_SOURCES) \
|
2008-02-02 10:24:30 -07:00
|
|
|
$(SWRAST_SOURCES) \
|
|
|
|
$(SWRAST_SETUP_SOURCES) \
|
2008-11-02 08:01:32 -07:00
|
|
|
$(COMMON_DRIVER_SOURCES) \
|
2011-10-23 07:57:36 -06:00
|
|
|
$(ASM_C_SOURCES)
|
|
|
|
|
|
|
|
MESA_CXX_SOURCES = \
|
2012-08-17 07:57:59 -06:00
|
|
|
$(MAIN_CXX_SOURCES) \
|
2013-09-05 09:11:54 -06:00
|
|
|
$(PROGRAM_CXX_SOURCES) \
|
2011-10-23 07:57:36 -06:00
|
|
|
$(SHADER_CXX_SOURCES)
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2012-08-26 12:46:42 -06:00
|
|
|
MESAGALLIUM_SOURCES = \
|
|
|
|
${MAIN_SOURCES} \
|
|
|
|
${MATH_SOURCES} \
|
|
|
|
${VBO_SOURCES} \
|
|
|
|
${PROGRAM_SOURCES} \
|
|
|
|
${STATETRACKER_SOURCES} \
|
2012-11-28 06:53:16 -07:00
|
|
|
${ASM_C_SOURCES}
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2012-08-26 12:46:42 -06:00
|
|
|
MESAGALLIUM_CXX_SOURCES = \
|
|
|
|
${MAIN_CXX_SOURCES} \
|
2013-09-05 09:11:54 -06:00
|
|
|
${SHADER_CXX_SOURCES} \
|
|
|
|
${PROGRAM_CXX_SOURCES} \
|
|
|
|
${STATETRACKER_CXX_SOURCES}
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2012-08-26 12:46:42 -06:00
|
|
|
OBJS+= ${SRCS:N*.h:R:S/$/.so/g}
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2012-08-26 12:46:42 -06:00
|
|
|
all: lib${LIB}_pic.a
|
2008-02-02 10:24:30 -07:00
|
|
|
|
|
|
|
obj: _xenocara_obj
|
|
|
|
|
|
|
|
install:
|
|
|
|
@echo "Not installing libmesa"
|
|
|
|
|
2011-10-23 07:57:36 -06:00
|
|
|
clean:
|
2012-08-26 12:46:42 -06:00
|
|
|
rm -f lib${LIB}_pic.a ${OBJS} $(CLEANFILES)
|
2008-02-02 10:24:30 -07:00
|
|
|
|
|
|
|
cleandir: clean
|
|
|
|
|
|
|
|
.SUFFIXES:
|
2011-10-23 07:57:36 -06:00
|
|
|
.SUFFIXES: .a .c .cpp .o .S .s .so
|
2008-02-02 10:24:30 -07:00
|
|
|
|
|
|
|
.c.so:
|
|
|
|
@echo "${COMPILE.c} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}"
|
|
|
|
@${COMPILE.c} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}.o
|
|
|
|
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
|
|
|
|
@rm -f ${.TARGET}.o
|
|
|
|
|
2011-11-29 07:57:54 -07:00
|
|
|
.if ${MACHINE_ARCH} == alpha
|
|
|
|
# remove optimization flags to prevent gcc 4.2.1 ICE
|
|
|
|
prog_execute.so: prog_execute.c
|
2011-12-03 08:36:21 -07:00
|
|
|
@echo "${COMPILE.c} -fno-tree-ter ${PICFLAG} -DPIC ${.ALLSRC} -o ${.TARGET}"
|
|
|
|
@${COMPILE.c} -fno-tree-ter ${PICFLAG} -DPIC ${.ALLSRC} -o ${.TARGET}.o
|
2011-11-29 07:57:54 -07:00
|
|
|
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
|
|
|
|
@rm -f ${.TARGET}.o
|
|
|
|
.endif
|
|
|
|
|
2011-10-23 07:57:36 -06:00
|
|
|
.cpp.so:
|
|
|
|
@echo "${COMPILE.cc} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}"
|
|
|
|
@${COMPILE.cc} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}.o
|
|
|
|
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
|
|
|
|
@rm -f ${.TARGET}.o
|
|
|
|
|
2008-02-02 10:24:30 -07:00
|
|
|
.S.so .s.so:
|
|
|
|
@echo "${CPP} -DPIC ${CPPFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} | \
|
|
|
|
${AS} ${ASPICFLAG} -o ${.TARGET}"
|
|
|
|
@${CPP} -DPIC ${CPPFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} | \
|
|
|
|
${AS} ${ASPICFLAG} -o ${.TARGET}.o
|
|
|
|
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
|
|
|
|
@rm -f ${.TARGET}.o
|
|
|
|
|
2011-10-23 07:57:36 -06:00
|
|
|
|
2015-01-25 08:09:12 -07:00
|
|
|
lib${LIB}_pic.a: ${OBJS} ${DPADD}
|
2012-08-26 12:46:42 -06:00
|
|
|
@rm -f lib${LIB}_pic.a
|
|
|
|
@${AR} cq lib${LIB}_pic.a `${LORDER} ${OBJS} | tsort -q`
|
|
|
|
${RANLIB} lib${LIB}_pic.a
|
2008-02-02 10:24:30 -07:00
|
|
|
|
2008-03-23 10:43:25 -06:00
|
|
|
.if ${MACHINE_ARCH} == i386 || ${MACHINE_ARCH} == amd64
|
2008-02-02 10:24:30 -07:00
|
|
|
gen_matypes: gen_matypes.c
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) ${MESA}/x86/gen_matypes.c -o gen_matypes
|
|
|
|
|
2008-03-23 10:43:25 -06:00
|
|
|
|
2008-02-02 10:24:30 -07:00
|
|
|
matypes.h: mtypes.h t_context.h gen_matypes
|
|
|
|
./gen_matypes > matypes.h
|
|
|
|
|
|
|
|
CLEANFILES+= gen_matypes matypes.h
|
|
|
|
|
2008-03-23 10:43:25 -06:00
|
|
|
xform4.so: matypes.h
|
|
|
|
common_x86_asm.so: matypes.h
|
|
|
|
3dnow_normal.so: matypes.h
|
|
|
|
3dnow_xform1.so: matypes.h
|
|
|
|
3dnow_xform2.so: matypes.h
|
|
|
|
3dnow_xform3.so: matypes.h
|
|
|
|
3dnow_xform4.so: matypes.h
|
|
|
|
mmx_blend.so: matypes.h
|
|
|
|
sse_normal.so: matypes.h
|
|
|
|
sse_xform1.so: matypes.h
|
|
|
|
sse_xform2.so: matypes.h
|
|
|
|
sse_xform3.so: matypes.h
|
|
|
|
sse_xform4.so: matypes.h
|
|
|
|
x86_cliptest.so: matypes.h
|
|
|
|
x86_xform2.so: matypes.h
|
|
|
|
x86_xform3.so: matypes.h
|
|
|
|
x86_xform4.so: matypes.h
|
2008-02-02 10:24:30 -07:00
|
|
|
.endif
|
|
|
|
|
2015-01-25 08:09:12 -07:00
|
|
|
.if ${MACHINE_ARCH} == i386 || ${MACHINE_ARCH} == amd64
|
2008-02-02 10:24:30 -07:00
|
|
|
.PATH: ${MESA}/x86
|
|
|
|
.PATH: ${MESA}/x86/rtasm
|
2015-01-25 08:09:12 -07:00
|
|
|
.PATH: ${MESA}/x86-64
|
2008-02-02 10:24:30 -07:00
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == powerpc
|
|
|
|
.PATH: ${MESA}/ppc
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == sparc
|
|
|
|
.PATH: ${MESA}/sparc
|
|
|
|
.endif
|
2011-10-23 07:57:36 -06:00
|
|
|
.PATH: ${MAPI}/glapi
|
2008-02-02 10:24:30 -07:00
|
|
|
.PATH: ${MESA}/main
|
2015-01-25 08:09:12 -07:00
|
|
|
.PATH: ${MESA}/../util
|
2008-02-02 10:24:30 -07:00
|
|
|
.PATH: ${MESA}/math
|
|
|
|
.PATH: ${MESA}/swrast
|
|
|
|
.PATH: ${MESA}/swrast_setup
|
|
|
|
.PATH: ${MESA}/tnl
|
2012-08-26 12:46:42 -06:00
|
|
|
.PATH: ${MESA}/state_tracker
|
2011-10-23 07:57:36 -06:00
|
|
|
.PATH: ${MESA}/program
|
2008-02-02 10:24:30 -07:00
|
|
|
.PATH: ${MESA}/vbo
|
|
|
|
.PATH: ${MESA}/drivers/common
|
2012-08-26 12:46:42 -06:00
|
|
|
.PATH: ${.CURDIR}/..
|
2013-09-05 09:11:54 -06:00
|
|
|
.PATH: ${.CURDIR}/../../generated
|
|
|
|
.PATH: ${.CURDIR}/../../generated/main
|
|
|
|
.PATH: ${.CURDIR}/../../generated/program
|