2007-11-27 02:55:06 -07:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2007/11/27 09:55:06 matthieu Exp $
|
2006-11-26 04:21:13 -07:00
|
|
|
|
|
|
|
all: ${OBJS}
|
|
|
|
LIB= GL
|
|
|
|
|
|
|
|
MESA= ${.CURDIR}/../../dist/Mesa/src/mesa
|
|
|
|
GL= ${.CURDIR}/../../dist/Mesa/src/GL
|
|
|
|
GLX= ${.CURDIR}/../../dist/Mesa/src/glx/x11
|
|
|
|
MESA_INCLUDE= ${.CURDIR}/../../dist/Mesa/include
|
|
|
|
|
2007-11-24 10:46:55 -07:00
|
|
|
DRI_DRIVER_INSTALL_DIR= ${X11BASE}/lib/modules/dri
|
|
|
|
|
|
|
|
DRI_DRIVER_SEARCH_DIR= $(DRI_DRIVER_INSTALL_DIR)
|
|
|
|
|
2006-11-26 04:21:13 -07:00
|
|
|
INCSDIR= ${X11BASE}/include/GL
|
2007-11-25 03:18:21 -07:00
|
|
|
LDADD= -L${X11BASE}/lib -lXext -lX11
|
2007-11-24 10:46:55 -07:00
|
|
|
#LDADD= -L${X11BASE}/lib -lXfixes -lXdamage -lXext -lX11 -ldrm -lpthread
|
2006-11-26 04:21:13 -07:00
|
|
|
|
|
|
|
CPP= cpp -notraditional
|
2007-04-07 09:37:50 -06:00
|
|
|
DEBUG?=
|
2006-11-26 04:21:13 -07:00
|
|
|
|
|
|
|
CPPFLAGS+= \
|
|
|
|
-I. \
|
|
|
|
-I${MESA_INCLUDE} \
|
2007-11-24 10:46:55 -07:00
|
|
|
-I${MESA_INCLUDE}/GL/internal \
|
2006-11-26 04:21:13 -07:00
|
|
|
-I${MESA} \
|
|
|
|
-I${MESA}/main \
|
|
|
|
-I${MESA}/math \
|
|
|
|
-I${MESA}/glapi \
|
|
|
|
-I${MESA}/tnl \
|
|
|
|
-I${MESA}/shader \
|
|
|
|
-I${MESA}/shader/grammar \
|
|
|
|
-I${MESA}/shader/slang \
|
|
|
|
-I${GLX} \
|
|
|
|
-I${X11BASE}/include \
|
2007-11-24 10:46:55 -07:00
|
|
|
-I${X11BASE}/include/drm \
|
2007-11-25 03:18:21 -07:00
|
|
|
-DGLX_INDIRECT_RENDERING \
|
2007-11-26 08:10:19 -07:00
|
|
|
-DPTHREADS \
|
2007-11-24 10:46:55 -07:00
|
|
|
-DHAVE_ALIAS \
|
|
|
|
-D_REENTRANT
|
2006-11-26 04:21:13 -07:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
CPPFLAGS += \
|
|
|
|
-DUSE_X86_ASM \
|
|
|
|
-DUSE_MMX_ASM \
|
|
|
|
-DUSE_3DNOW_ASM \
|
|
|
|
-DUSE_SSE_ASM
|
|
|
|
.elif ${MACHINE_ARCH} == "amd64"
|
2007-11-24 10:46:55 -07:00
|
|
|
CPPFLAGS += -D__GLX_ALIGN64 -DUSE_X86_64_ASM
|
2006-11-26 04:21:13 -07:00
|
|
|
.endif
|
|
|
|
|
|
|
|
INCS= \
|
|
|
|
gl.h \
|
|
|
|
glext.h \
|
|
|
|
glx.h \
|
|
|
|
glxext.h \
|
|
|
|
osmesa.h
|
|
|
|
|
|
|
|
# main
|
|
|
|
MAIN_SOURCES= \
|
|
|
|
api_arrayelt.c \
|
|
|
|
api_loopback.c \
|
|
|
|
api_noop.c \
|
|
|
|
api_validate.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
accum.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
attrib.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
arrayobj.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
blend.c \
|
|
|
|
bufferobj.c \
|
|
|
|
buffers.c \
|
|
|
|
clip.c \
|
|
|
|
colortab.c \
|
|
|
|
context.c \
|
|
|
|
convolve.c \
|
|
|
|
debug.c \
|
|
|
|
depth.c \
|
|
|
|
depthstencil.c \
|
|
|
|
dlist.c \
|
|
|
|
drawpix.c \
|
|
|
|
enable.c \
|
|
|
|
enums.c \
|
|
|
|
eval.c \
|
|
|
|
execmem.c \
|
|
|
|
extensions.c \
|
|
|
|
fbobject.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
feedback.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
fog.c \
|
|
|
|
framebuffer.c \
|
|
|
|
get.c \
|
|
|
|
getstring.c \
|
|
|
|
hash.c \
|
|
|
|
hint.c \
|
|
|
|
histogram.c \
|
|
|
|
image.c \
|
|
|
|
imports.c \
|
|
|
|
light.c \
|
|
|
|
lines.c \
|
|
|
|
matrix.c \
|
2007-03-03 10:39:42 -07:00
|
|
|
mipmap.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
mm.c \
|
|
|
|
pixel.c \
|
|
|
|
points.c \
|
|
|
|
polygon.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
queryobj.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
rastpos.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
rbadaptors.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
renderbuffer.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
shaders.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
state.c \
|
|
|
|
stencil.c \
|
|
|
|
texcompress.c \
|
|
|
|
texcompress_s3tc.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
texcompress_fxt1.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
texenvprogram.c \
|
|
|
|
texformat.c \
|
|
|
|
teximage.c \
|
|
|
|
texobj.c \
|
|
|
|
texrender.c \
|
|
|
|
texstate.c \
|
|
|
|
texstore.c \
|
|
|
|
varray.c \
|
|
|
|
vtxfmt.c
|
|
|
|
|
|
|
|
GLAPI_SOURCES= \
|
|
|
|
dispatch.c \
|
|
|
|
glapi.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
glthread.c \
|
|
|
|
$(ASM_API)
|
2006-11-26 04:21:13 -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 \
|
|
|
|
m_vector.c \
|
|
|
|
m_xform.c
|
|
|
|
|
|
|
|
# swrast
|
|
|
|
SWRAST_SOURCES= \
|
|
|
|
s_aaline.c \
|
|
|
|
s_aatriangle.c \
|
|
|
|
s_accum.c \
|
|
|
|
s_alpha.c \
|
|
|
|
s_atifragshader.c \
|
|
|
|
s_bitmap.c \
|
|
|
|
s_blend.c \
|
|
|
|
s_blit.c \
|
|
|
|
s_buffers.c \
|
|
|
|
s_copypix.c \
|
|
|
|
s_context.c \
|
|
|
|
s_depth.c \
|
|
|
|
s_drawpix.c \
|
|
|
|
s_feedback.c \
|
|
|
|
s_fog.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
s_fragprog.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
s_imaging.c \
|
|
|
|
s_lines.c \
|
|
|
|
s_logic.c \
|
|
|
|
s_masking.c \
|
|
|
|
s_points.c \
|
|
|
|
s_readpix.c \
|
|
|
|
s_span.c \
|
|
|
|
s_stencil.c \
|
|
|
|
s_texcombine.c \
|
|
|
|
s_texfilter.c \
|
|
|
|
s_texstore.c \
|
|
|
|
s_triangle.c \
|
|
|
|
s_zoom.c
|
|
|
|
|
|
|
|
# swrast_setup
|
|
|
|
SWRAST_SETUP_SOURCES= \
|
|
|
|
ss_context.c \
|
|
|
|
ss_triangle.c
|
|
|
|
|
|
|
|
# tnl
|
|
|
|
TNL_SOURCES= \
|
|
|
|
t_context.c \
|
|
|
|
t_pipeline.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
t_draw.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
t_vb_program.c \
|
|
|
|
t_vb_render.c \
|
|
|
|
t_vb_texgen.c \
|
|
|
|
t_vb_texmat.c \
|
|
|
|
t_vb_vertex.c \
|
|
|
|
t_vb_cull.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 \
|
|
|
|
t_vertex_generic.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
|
|
|
|
VBO_SOURCES = \
|
|
|
|
vbo_context.c \
|
|
|
|
vbo_exec.c \
|
|
|
|
vbo_exec_api.c \
|
|
|
|
vbo_exec_array.c \
|
|
|
|
vbo_exec_draw.c \
|
|
|
|
vbo_exec_eval.c \
|
|
|
|
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
|
2006-11-26 04:21:13 -07:00
|
|
|
|
|
|
|
# shader
|
|
|
|
SHADER_SOURCES= \
|
|
|
|
arbprogparse.c \
|
|
|
|
arbprogram.c \
|
|
|
|
atifragshader.c \
|
|
|
|
grammar_mesa.c \
|
|
|
|
nvfragparse.c \
|
|
|
|
nvprogram.c \
|
|
|
|
nvvertparse.c \
|
|
|
|
program.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
prog_debug.c \
|
|
|
|
prog_execute.c \
|
|
|
|
prog_instruction.c \
|
|
|
|
prog_parameter.c \
|
|
|
|
prog_print.c \
|
|
|
|
prog_statevars.c \
|
|
|
|
programopt.c \
|
|
|
|
shader_api.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
|
|
|
|
# shader/slang
|
|
|
|
SLANG_SOURCES= \
|
2007-11-24 10:46:55 -07:00
|
|
|
slang_builtin.c \
|
|
|
|
slang_codegen.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
slang_compile.c \
|
|
|
|
slang_compile_function.c \
|
|
|
|
slang_compile_operation.c \
|
|
|
|
slang_compile_struct.c \
|
|
|
|
slang_compile_variable.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
slang_emit.c \
|
|
|
|
slang_ir.c \
|
|
|
|
slang_label.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
slang_library_noise.c \
|
|
|
|
slang_link.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
slang_log.c \
|
|
|
|
slang_mem.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
slang_preprocess.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
slang_print.c \
|
|
|
|
slang_simplify.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
slang_storage.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
slang_typeinfo.c \
|
|
|
|
slang_vartable.c \
|
2006-11-26 04:21:13 -07:00
|
|
|
slang_utility.c
|
|
|
|
|
2007-11-24 10:46:55 -07:00
|
|
|
.if ${MACHINE_ARCH} == i386
|
2006-11-26 04:21:13 -07:00
|
|
|
ASM_C_SOURCES= \
|
|
|
|
common_x86.c \
|
|
|
|
x86.c \
|
|
|
|
3dnow.c \
|
|
|
|
sse.c \
|
2007-11-24 10:46:55 -07:00
|
|
|
x86sse.c
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == sparc
|
|
|
|
ASM_C_SOURCES= \
|
|
|
|
sparc.c
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == powerpc
|
|
|
|
ASM_C_SOURCES= \
|
|
|
|
common_ppc.c
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == amd64
|
|
|
|
ASM_C_SOURCES= \
|
|
|
|
x86-64.c
|
|
|
|
.endif
|
2006-11-26 04:21:13 -07:00
|
|
|
|
|
|
|
X86_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 \
|
2007-11-24 10:46:55 -07:00
|
|
|
|
|
|
|
X86_API = \
|
|
|
|
glapi_x86.S
|
|
|
|
|
|
|
|
X86-64_SOURCES = \
|
|
|
|
xform4.S
|
|
|
|
|
|
|
|
X86-64_API = \
|
|
|
|
glapi_x86-64.S
|
|
|
|
|
|
|
|
SPARC_SOURCES = \
|
|
|
|
clip.S \
|
|
|
|
norm.S \
|
|
|
|
xform.S
|
|
|
|
|
|
|
|
SPARC_API = \
|
|
|
|
glapi_sparc.S
|
|
|
|
|
|
|
|
COMMON_DRIVER_SOURCES = \
|
|
|
|
driverfuncs.c
|
|
|
|
|
|
|
|
X11_DRIVER_SOURCES = \
|
|
|
|
glxapi.c \
|
|
|
|
fakeglx.c \
|
|
|
|
xfonts.c \
|
|
|
|
xm_api.c \
|
|
|
|
xm_buffer.c \
|
|
|
|
xm_dd.c \
|
|
|
|
xm_glide.c \
|
|
|
|
xm_line.c \
|
|
|
|
xm_span.c \
|
|
|
|
xm_tri.c
|
2006-11-26 04:21:13 -07:00
|
|
|
|
|
|
|
GLX_SOURCES= \
|
2007-11-24 10:46:55 -07:00
|
|
|
glcontextmodes.c \
|
|
|
|
clientattrib.c \
|
|
|
|
compsize.c \
|
|
|
|
glxeval.c \
|
|
|
|
glxcmds.c \
|
|
|
|
glxext.c \
|
|
|
|
glxextensions.c \
|
|
|
|
indirect.c \
|
|
|
|
indirect_init.c \
|
|
|
|
indirect_size.c \
|
|
|
|
indirect_window_pos.c \
|
|
|
|
indirect_transpose_matrix.c \
|
|
|
|
indirect_vertex_array.c \
|
|
|
|
indirect_vertex_program.c \
|
|
|
|
glxpixel.c \
|
|
|
|
pixelstore.c \
|
|
|
|
render2.c \
|
|
|
|
renderpix.c \
|
|
|
|
single2.c \
|
|
|
|
singlepix.c \
|
|
|
|
vertarr.c \
|
|
|
|
xfont.c \
|
|
|
|
glx_pbuffer.c \
|
|
|
|
glx_query.c \
|
|
|
|
glx_texture_compression.c \
|
|
|
|
dri_glx.c \
|
|
|
|
XF86dri.c
|
|
|
|
|
|
|
|
# x86
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
ASM_SOURCES = $(X86_SOURCES)
|
|
|
|
ASM_API = $(X86_API)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# x86-64
|
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
|
|
ASM_SOURCES = $(X86-64_SOURCES)
|
|
|
|
ASM_API = $(X86-64_API)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
ALL_SOURCES = \
|
|
|
|
$(GLAPI_SOURCES) \
|
|
|
|
$(SOLO_SOURCES) \
|
|
|
|
$(ASM_SOURCES) \
|
|
|
|
$(COMMON_DRIVER_SOURCES)\
|
|
|
|
$(X11_DRIVER_SOURCES) \
|
|
|
|
$(FBDEV_DRIVER_SOURCES) \
|
|
|
|
$(OSMESA_DRIVER_SOURCES)
|
|
|
|
|
|
|
|
|
|
|
|
SOLO_SOURCES = \
|
|
|
|
$(MAIN_SOURCES) \
|
2006-11-26 04:21:13 -07:00
|
|
|
$(MATH_SOURCES) \
|
2007-11-24 10:46:55 -07:00
|
|
|
$(VBO_SOURCES) \
|
2006-11-26 04:21:13 -07:00
|
|
|
$(TNL_SOURCES) \
|
|
|
|
$(SHADER_SOURCES) \
|
|
|
|
$(SWRAST_SOURCES) \
|
2007-11-24 10:46:55 -07:00
|
|
|
$(SWRAST_SETUP_SOURCES) \
|
2006-11-26 04:21:13 -07:00
|
|
|
$(ASM_C_SOURCES) \
|
2007-11-24 10:46:55 -07:00
|
|
|
$(SLANG_SOURCES)
|
2006-11-26 04:21:13 -07:00
|
|
|
|
2007-11-24 10:46:55 -07:00
|
|
|
#SRCS = $(SOLO_SOURCES) \
|
|
|
|
# $(ASM_SOURCES) \
|
|
|
|
# $(GLX_SOURCES) \
|
|
|
|
# $(GLAPI_SOURCES)
|
2006-11-26 04:21:13 -07:00
|
|
|
|
2007-11-24 10:46:55 -07:00
|
|
|
SRCS = $(GLX_SOURCES) \
|
|
|
|
$(ASM_SOURCES) \
|
|
|
|
$(GLAPI_SOURCES)
|
2006-11-26 04:21:13 -07:00
|
|
|
|
|
|
|
includes:
|
|
|
|
cd ${MESA_INCLUDE}/GL; for i in ${INCS}; do \
|
|
|
|
j="cmp -s $$i ${DESTDIR}${INCSDIR}/GL/$$i || \
|
|
|
|
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
|
|
$$i ${DESTDIR}${INCSDIR}/GL"; \
|
|
|
|
echo "\tinstalling $$i"; \
|
|
|
|
eval "$$j"; \
|
|
|
|
done
|
|
|
|
|
|
|
|
gen_matypes: gen_matypes.c
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) ${MESA}/x86/gen_matypes.c -o gen_matypes
|
|
|
|
|
|
|
|
matypes.h: mtypes.h t_context.h gen_matypes
|
|
|
|
./gen_matypes > matypes.h
|
|
|
|
|
|
|
|
CLEANFILES+= gen_matypes matypes.h
|
|
|
|
|
|
|
|
common_x86_asm.o: matypes.h
|
|
|
|
3dnow_normal.o: matypes.h
|
|
|
|
3dnow_xform1.o: matypes.h
|
|
|
|
3dnow_xform2.o: matypes.h
|
|
|
|
3dnow_xform3.o: matypes.h
|
|
|
|
3dnow_xform4.o: matypes.h
|
|
|
|
mmx_blend.o: matypes.h
|
|
|
|
sse_normal.o: matypes.h
|
|
|
|
sse_xform1.o: matypes.h
|
|
|
|
sse_xform2.o: matypes.h
|
|
|
|
sse_xform3.o: matypes.h
|
|
|
|
sse_xform4.o: matypes.h
|
|
|
|
x86_cliptest.o: matypes.h
|
|
|
|
x86_xform2.o: matypes.h
|
|
|
|
x86_xform3.o: matypes.h
|
|
|
|
x86_xform4.o: matypes.h
|
|
|
|
|
2006-11-29 11:03:09 -07:00
|
|
|
NOPROFILE=
|
2006-11-26 04:21:13 -07:00
|
|
|
|
2006-12-02 09:28:48 -07:00
|
|
|
obj: _xenocara_obj
|
|
|
|
|
2006-11-26 04:21:13 -07:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.include <bsd.xorg.mk>
|
|
|
|
|
2006-12-03 12:36:18 -07:00
|
|
|
.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == sparc
|
2006-11-26 04:21:13 -07:00
|
|
|
PICFLAG = -fPIC
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# name conflicts
|
|
|
|
glxeval.c: ${GLX}/eval.c
|
|
|
|
ln -s ${GLX}/eval.c $@
|
|
|
|
|
|
|
|
glxpixel.c: ${GLX}/pixel.c
|
|
|
|
ln -s ${GLX}/pixel.c $@
|
|
|
|
|
|
|
|
CLEANFILES+= glxeval.c glxpixel.c
|
|
|
|
|
2007-11-24 10:46:55 -07:00
|
|
|
.if ${MACHINE_ARCH} == i386
|
2006-11-26 04:21:13 -07:00
|
|
|
.PATH: ${MESA}/x86
|
|
|
|
.PATH: ${MESA}/x86/rtasm
|
2007-11-24 10:46:55 -07:00
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == powerpc
|
|
|
|
.PATH: ${MESA}/ppc
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == sparc
|
|
|
|
.PATH: ${MESA}/sparc
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == amd64
|
|
|
|
.PATH: ${MESA}/x86-64
|
|
|
|
.endif
|
2006-11-26 04:21:13 -07:00
|
|
|
.PATH: ${MESA}/glapi
|
|
|
|
.PATH: ${MESA}/main
|
|
|
|
.PATH: ${MESA}/math
|
|
|
|
.PATH: ${MESA}/swrast
|
|
|
|
.PATH: ${MESA}/swrast_setup
|
|
|
|
.PATH: ${MESA}/tnl
|
|
|
|
.PATH: ${MESA}/shader
|
|
|
|
.PATH: ${MESA}/shader/grammar
|
|
|
|
.PATH: ${MESA}/shader/slang
|
|
|
|
.PATH: ${MESA}/shader/slang/MachineIndependent
|
|
|
|
.PATH: ${MESA}/shader/slang/MachineIndependent/preprocessor
|
|
|
|
.PATH: ${MESA}/shader/slang/OGLCompilersDLL
|
|
|
|
.PATH: ${MESA}/shader/slang/OSDependent/Linux
|
2007-11-24 10:46:55 -07:00
|
|
|
.PATH: ${MESA}/vbo
|
|
|
|
.PATH: ${MESA}/drivers/common
|
|
|
|
.PATH: ${MESA}/drivers/x11
|
2006-11-26 04:21:13 -07:00
|
|
|
.PATH: ${GLX}
|
|
|
|
|
|
|
|
.SUFFIXES: .cpp
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
@echo "${COMPILE.cc} ${.IMPSRC} -o ${.TARGET}"
|
|
|
|
@${COMPILE.cc} ${.IMPSRC} -o ${.TARGET}.o
|
|
|
|
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
|
|
|
|
@rm -f ${.TARGET}.o
|
|
|
|
|
|
|
|
.cpp.go:
|
|
|
|
@echo "${COMPILE.cc} -g ${.IMPSRC} -o ${.TARGET}"
|
|
|
|
@${COMPILE.cc} -g ${.IMPSRC} -o ${.TARGET}.o
|
|
|
|
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
|
|
|
|
@rm -f ${.TARGET}.o
|
|
|
|
|
|
|
|
.cpp.po:
|
|
|
|
@echo "${COMPILE.cc} -p ${.IMPSRC} -o ${.TARGET}"
|
|
|
|
@${COMPILE.cc} -p ${.IMPSRC} -o ${.TARGET}.o
|
|
|
|
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
|
|
|
|
@rm -f ${.TARGET}.o
|
|
|
|
|
|
|
|
.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
|