1 # $NetBSD: Makefile,v 1.1 2004/03/06 10:30:26 rtr Exp $
3 XMODULEDIR
= ${X11USRLIBDIR}/modules
12 .PATH
: ${X11SRCDIR.xc
}/lib
/GL
/dri
14 CPPFLAGS.dri_util.c
= -I
${DESTDIR}${X11INCDIR}/X11 \
15 -I
${DESTDIR}${X11INCDIR}/X11
/extensions \
16 -I
${X11SRCDIR.xc
}/include/GL \
17 -I
${X11SRCDIR.xc
}/programs
/Xserver
/include \
18 -I
${X11SRCDIR.xc
}/programs
/Xserver
/GL
/dri \
19 -I
${X11SRCDIR.xc
}/lib
/GL
/include \
20 -I
${X11SRCDIR.xc
}/extras
/Mesa
/include \
21 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src \
22 -I
${X11SRCDIR.xc
}/lib
/GL
/glx \
23 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/os-support
24 CPPFLAGS.dri_util.c
+= -DDEFAULT_DRIVER_DIR
=\"${X11USRLIBDIR}/modules
\"
28 .PATH
: ${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/os-support
/linux
/drm
29 SRCS.drm
= xf86drm.c xf86drmHash.c xf86drmRandom.c xf86drmSL.c
30 .for fn in
${SRCS.drm
}
31 CPPFLAGS.
${fn}= -I
${DESTDIR}${X11INCDIR}/X11 \
32 -I
${DESTDIR}${X11INCDIR}/X11
/extensions \
33 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/os-support \
34 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/os-support
/shared
/drm
/kernel
35 # -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/bsd/drm
40 .PATH
: ${X11SRCDIR.xc
}/extras
/Mesa
/src
41 SRCS.mesa
= accum.c api_arrayelt.c api_eval.c api_loopback.c \
42 api_noop.c api_validate.c attrib.c blend.c buffers.c \
43 clip.c colortab.c context.c convolve.c debug.c depth.c \
44 dispatch.c dlist.c drawpix.c enable.c enums.c \
45 eval.c extensions.c feedback.c fog.c
get.c \
46 glthread.c hash.c hint.c histogram.c image.c \
47 imports.c light.c lines.c matrix.c mmath.c pixel.c \
48 points.c polygon.c rastpos.c state.c stencil.c \
49 texcompress.c texformat.c teximage.c texobj.c texstate.c \
50 texstore.c texutil.c varray.c vtxfmt.c vpexec.c \
52 .for fn in
${SRCS.mesa
}
53 CPPFLAGS.
${fn}= -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/array_cache \
54 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/math \
55 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/swrast \
56 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/swrast_setup \
57 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/tnl \
58 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
/tnl_dd \
59 -I
${X11SRCDIR.xc
}/lib
/GL
/include \
60 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src \
61 -I
${X11SRCDIR.xc
}/include
66 .
include <bsd.endian.mk
>
68 .if
${TARGET_ENDIANNESS} == "1234"
69 X_BYTE_ORDER
=X_LITTLE_ENDIAN
70 .elif
${TARGET_ENDIANNESS} == "4321"
71 X_BYTE_ORDER
=X_BIG_ENDIAN
77 .PATH
: ${X11SRCDIR.xc
}/lib
/GL
/mesa
/src
/drv
/common
78 SRCS.common
= hwlog.c mm.c utils.c vblank.c texmem.c
79 .for fn in
${SRCS.common
}
80 CPPFLAGS.
${fn}= -I
${X11SRCDIR.xc
}/lib
/GL
/dri \
81 -I
${X11SRCDIR.xc
}/lib
/GL
/glx \
82 -I
${X11SRCDIR.xc
}/include/GL \
83 -I
${X11SRCDIR.xc
}/include \
84 -I
${X11SRCDIR.xc
}/programs
/Xserver
/GL
/dri \
85 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/os-support \
86 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/common \
87 -I
${X11SRCDIR.xc
}/lib
/GL
/dri
/drm \
88 -I
${X11SRCDIR.xc
}/lib
/GL
/include \
89 -I
${X11SRCDIR.xc
}/extras
/Mesa
/src
90 CPPFLAGS.
${fn}+=-DX_BYTE_ORDER
=${X_BYTE_ORDER}
94 .PATH
: ${X11SRCDIR.xc
}/lib
/GL
/mesa
/src
/drv
/mga
95 SRCS.mga
= mgadd.c mgarender.c mgaioctl.c mgapixel.c mgaspan.c \
96 mgastate.c mgatex.c mgatexmem.c mga_texstate.c \
97 mga_texcombine.c mgatris.c mgavb.c mga_xmesa.c
100 .for fn in
${SRCS.mga
}
101 #CPPFLAGS.${fn}= -I${DESTDIR}${X11INCDIR}/X11 \
102 # -I${DESTDIR}${X11INCDIR}/X11/extensions
104 CPPFLAGS.
${fn}= -I
${DESTDIR}${X11INCDIR}/X11 \
105 -I
${X11SRCDIR.xc
}/include/extensions
106 CPPFLAGS.
${fn}+=-I
${X11SRCDIR.xc
}/extras
/Mesa
/src \
107 -I
${X11SRCDIR.xc
}/lib
/GL
/mesa
/src
/drv
/common \
108 -I
${X11SRCDIR.xc
}/lib
/GL
/mesa
/src
/drv
/mga \
109 -I
${X11SRCDIR.xc
}/lib
/GL
/dri \
110 -I
${X11SRCDIR.xc
}/lib
/GL
/glx \
111 -I
${X11SRCDIR.xc
}/include \
112 -I
${X11SRCDIR.xc
}/include/GL \
113 -I
${X11SRCDIR.xc
}/programs
/Xserver
/GL
/dri \
114 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/os-support \
115 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/drivers
/mga \
116 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/common \
117 -I
${X11SRCDIR.xc
}/lib
/GL
/dri
/drm \
118 -I
${X11SRCDIR.xc
}/lib
/GL
/include \
120 CPPFLAGS.
${fn}+=-DX_BYTE_ORDER
=${X_BYTE_ORDER}
124 SRCS
= ${SRCS.dri
} ${SRCS.drm
} ${SRCS.mesa
} ${SRCS.common
} ${SRCS.mga
}
126 CPPFLAGS
+= ${X11FLAGS.DRI
} ${X11FLAGS.EXTENSION
} ${X11FLAGS.THREADS
} # -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
131 .
include <bsd.x11.mk
>
132 LIBDIR
= ${XMODULEDIR}
133 .
include <bsd.lib.mk
>