1 # $NetBSD: Makefile,v 1.21 2015/05/14 02:43:33 mrg Exp $
5 DRIVER
= xf86-video-intel
10 SRCS
+= intel_options.c
16 .PATH
: ${X11SRCDIR.
${DRIVER}}/src
/legacy
/i810
30 .PATH
: ${X11SRCDIR.
${DRIVER}}/src
/sna
50 SRCS
+= sna_composite.c
54 SRCS
+= sna_display_fake.c
66 SRCS
+= sna_transform.c
67 SRCS
+= sna_trapezoids.c
68 SRCS
+= sna_trapezoids_boxes.c
69 SRCS
+= sna_trapezoids_imprecise.c
70 SRCS
+= sna_trapezoids_mono.c
71 SRCS
+= sna_trapezoids_precise.c
74 SRCS
+= sna_video_hwmc.c
75 SRCS
+= sna_video_overlay.c
76 SRCS
+= sna_video_sprite.c
77 SRCS
+= sna_video_textured.c
80 .PATH
: ${X11SRCDIR.
${DRIVER}}/src
/sna
/brw
88 .PATH
: ${X11SRCDIR.
${DRIVER}}/src
/sna
/fb
108 .
endif # !defined(__MINIX)
111 .PATH
: ${X11SRCDIR.
${DRIVER}}/src
/uxa
120 SRCS
+= intel_batchbuffer.c
121 SRCS
+= intel_display.c
123 SRCS
+= intel_driver.c
125 SRCS
+= intel_memory.c
126 #SRCS+= intel_present.c
129 SRCS
+= intel_uxa_video.c
131 SRCS
+= intel_video_overlay.c
140 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}/X11
141 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}/X11
/dri
142 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}/libdrm
143 CPPFLAGS
+= -I
${X11SRCDIR.
${DRIVER}}/src
144 CPPFLAGS
+= -I
${X11SRCDIR.
${DRIVER}}/src
/render_program
145 CPPFLAGS
+= -I
${X11SRCDIR.
${DRIVER}}/xvmc
147 # Use the Intel-style __sync_* atomic primitives.
149 CPPFLAGS
+= -DDEFAULT_ACCEL_METHOD
=SNA
150 CPPFLAGS
+= -DENABLE_XVMC
=1
151 CPPFLAGS
+= -DHAS_PIXMAN_GLYPHS
=1
152 CPPFLAGS
+= -DHAS_PIXMAN_TRIANGLES
=1
153 CPPFLAGS
+= -DHAVE_ATOMIC_PRIMITIVES
=1
154 CPPFLAGS
+= -DHAVE_CPUID_H
=1
155 CPPFLAGS
+= -DHAVE_DGAPROC_H
=1
156 CPPFLAGS
+= -DHAVE_DLFCN_H
=1
157 CPPFLAGS
+= -DHAVE_DRI1
=1
158 CPPFLAGS
+= -DHAVE_DRI2
=1
159 CPPFLAGS
+= -DHAVE_DRI2_H
=1
160 CPPFLAGS
+= -DHAVE_DRISTRUCT_H
=1
161 CPPFLAGS
+= -DHAVE_DRI_H
=1
162 CPPFLAGS
+= -DHAVE_GETLINE
=1
163 CPPFLAGS
+= -DHAVE_INTTYPES_H
=1
164 CPPFLAGS
+= -DHAVE_MEMORY_H
=1
165 CPPFLAGS
+= -DHAVE_SAREA_H
=1
166 CPPFLAGS
+= -DHAVE_STDINT_H
=1
167 CPPFLAGS
+= -DHAVE_STDLIB_H
=1
168 CPPFLAGS
+= -DHAVE_STRINGS_H
=1
169 CPPFLAGS
+= -DHAVE_STRING_H
=1
170 CPPFLAGS
+= -DHAVE_STRLCAT
=1
171 CPPFLAGS
+= -DHAVE_STRLCPY
=1
172 CPPFLAGS
+= -DHAVE_STRNDUP
=1
173 CPPFLAGS
+= -DHAVE_SYS_IPC_H
=1
174 CPPFLAGS
+= -DHAVE_SYS_STAT_H
=1
175 CPPFLAGS
+= -DHAVE_SYS_TYPES_H
=1
176 CPPFLAGS
+= -DHAVE_UNISTD_H
=1
177 CPPFLAGS
+= -DHAVE_VGAHW_H
=1
178 CPPFLAGS
+= -DHAVE_XAA_H
=1
180 CPPFLAGS
+= -DSTDC_HEADERS
=1
182 CPPFLAGS
+= -DUSE_BACKLIGHT
=1
183 CPPFLAGS
+= -DUSE_SNA
=1
184 CPPFLAGS
+= -DUSE_UXA
=1
186 # XXX This should not be hard-coded here...
187 DRI_DRIVER_PATH
= /usr
/X11R7
/lib
/modules
/dri
188 CPPFLAGS
+= -DDRI_DRIVER_PATH
=\"${DRI_DRIVER_PATH
:Q
}\"
190 # XXX Probably better to set this in Makefile.xf86-driver, conditional
192 CFLAGS
+= -fvisibility
=hidden
194 LIBDPLIBS
+= drm_intel
${.CURDIR
}/..
/..
/..
/lib
/libdrm_intel
196 #LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
198 .
include "../Makefile.xf86-driver"
200 CWARNFLAGS.clang
+= -Wno-parentheses
-Wno-tautological-compare \
201 -Wno-empty-body
-Wno-error
203 COPTS.sna_display.c
= -Wno-stack-protector
208 .
include <bsd.subdir.mk
>