Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / mit / xorg / server / drivers / xf86-video-intel / Makefile
blob2ae64b23b3c8dd22b8ae29635a72fcd9cf26c625
1 # $NetBSD: Makefile,v 1.21 2015/05/14 02:43:33 mrg Exp $
3 .include <bsd.own.mk>
5 DRIVER= xf86-video-intel
6 DRIVER_NAME= intel_drv
8 # main module
9 SRCS+= intel_device.c
10 SRCS+= intel_options.c
11 SRCS+= intel_module.c
12 SRCS+= backlight.c
13 SRCS+= fd.c
15 # legacy/i810
16 .PATH: ${X11SRCDIR.${DRIVER}}/src/legacy/i810
17 SRCS+= i810_accel.c
18 SRCS+= i810_cursor.c
19 SRCS+= i810_dga.c
20 SRCS+= i810_dri.c
21 SRCS+= i810_driver.c
22 SRCS+= i810_hwmc.c
23 SRCS+= i810_memory.c
24 SRCS+= i810_video.c
25 SRCS+= i810_wmark.c
26 SRCS+= i810_xaa.c
28 .if !defined(__MINIX)
29 # sna
30 .PATH: ${X11SRCDIR.${DRIVER}}/src/sna
31 SRCS+= blt.c
32 SRCS+= kgem.c
33 SRCS+= gen2_render.c
34 SRCS+= gen3_render.c
35 SRCS+= gen4_common.c
36 SRCS+= gen4_render.c
37 SRCS+= gen4_source.c
38 SRCS+= gen4_vertex.c
39 SRCS+= gen5_render.c
40 SRCS+= gen6_common.c
41 SRCS+= gen6_render.c
42 SRCS+= gen7_render.c
43 SRCS+= gen8_eu.c
44 SRCS+= gen8_render.c
45 SRCS+= gen8_vertex.c
47 SRCS+= sna_accel.c
48 SRCS+= sna_acpi.c
49 SRCS+= sna_blt.c
50 SRCS+= sna_composite.c
51 SRCS+= sna_cpu.c
52 SRCS+= sna_damage.c
53 SRCS+= sna_display.c
54 SRCS+= sna_display_fake.c
55 SRCS+= sna_dri2.c
56 #SRCS+= sna_dri3.c
57 SRCS+= sna_driver.c
58 SRCS+= sna_glyphs.c
59 SRCS+= sna_gradient.c
60 SRCS+= sna_io.c
61 #SRCS+= sna_present.c
62 SRCS+= sna_render.c
63 SRCS+= sna_stream.c
64 SRCS+= sna_threads.c
65 SRCS+= sna_tiling.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
72 SRCS+= sna_vertex.c
73 SRCS+= sna_video.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
79 # sna/brw
80 .PATH: ${X11SRCDIR.${DRIVER}}/src/sna/brw
81 SRCS+= brw_disasm.c
82 SRCS+= brw_eu.c
83 SRCS+= brw_eu_emit.c
84 SRCS+= brw_sf.c
85 SRCS+= brw_wm.c
87 # sna/fb
88 .PATH: ${X11SRCDIR.${DRIVER}}/src/sna/fb
89 SRCS+= fbarc.c
90 SRCS+= fbbitmap.c
91 SRCS+= fbblt.c
92 SRCS+= fbbltone.c
93 SRCS+= fbclip.c
94 SRCS+= fbcopy.c
95 SRCS+= fbfill.c
96 SRCS+= fbgc.c
97 SRCS+= fbglyph.c
98 SRCS+= fbimage.c
99 SRCS+= fbline.c
100 SRCS+= fbpict.c
101 SRCS+= fbpoint.c
102 SRCS+= fbpush.c
103 SRCS+= fbseg.c
104 SRCS+= fbspan.c
105 SRCS+= fbstipple.c
106 SRCS+= fbtile.c
107 SRCS+= fbutil.c
108 .endif # !defined(__MINIX)
110 # uxa
111 .PATH: ${X11SRCDIR.${DRIVER}}/src/uxa
112 SRCS+= i830_3d.c
113 SRCS+= i830_render.c
114 SRCS+= i915_3d.c
115 SRCS+= i915_render.c
116 SRCS+= i915_video.c
117 SRCS+= i965_3d.c
118 SRCS+= i965_render.c
119 SRCS+= i965_video.c
120 SRCS+= intel_batchbuffer.c
121 SRCS+= intel_display.c
122 SRCS+= intel_dri.c
123 SRCS+= intel_driver.c
124 SRCS+= intel_hwmc.c
125 SRCS+= intel_memory.c
126 #SRCS+= intel_present.c
127 #SRCS+= intel_sync.c
128 SRCS+= intel_uxa.c
129 SRCS+= intel_uxa_video.c
130 SRCS+= intel_video.c
131 SRCS+= intel_video_overlay.c
132 SRCS+= uxa-accel.c
133 SRCS+= uxa-glyphs.c
134 SRCS+= uxa-render.c
135 SRCS+= uxa-unaccel.c
136 SRCS+= uxa.c
138 MAN= intel.4
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
179 CPPFLAGS+= -DKMS=1
180 CPPFLAGS+= -DSTDC_HEADERS=1
181 CPPFLAGS+= -DUMS=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
191 # on ELF &c.
192 CFLAGS+= -fvisibility=hidden
194 LIBDPLIBS+= drm_intel ${.CURDIR}/../../../lib/libdrm_intel
195 # MINIX: No pthread
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
204 #LSC: Clang/Minix3
205 DBG= -O0
206 NOCLANGERROR?= yes
208 .include <bsd.subdir.mk>