1 1.26 mrg # $NetBSD: Makefile,v 1.26 2018/12/31 12:13:50 mrg Exp $ 2 1.12 riastrad 3 1.12 riastrad .include <bsd.own.mk> 4 1.1 rtr 5 1.2 rtr DRIVER= xf86-video-intel 6 1.1 rtr DRIVER_NAME= intel_drv 7 1.1 rtr 8 1.12 riastrad # main module 9 1.12 riastrad SRCS+= intel_device.c 10 1.12 riastrad SRCS+= intel_options.c 11 1.12 riastrad SRCS+= intel_module.c 12 1.17 christos SRCS+= backlight.c 13 1.17 christos SRCS+= fd.c 14 1.12 riastrad 15 1.12 riastrad # legacy/i810 16 1.12 riastrad .PATH: ${X11SRCDIR.${DRIVER}}/src/legacy/i810 17 1.12 riastrad SRCS+= i810_accel.c 18 1.12 riastrad SRCS+= i810_cursor.c 19 1.17 christos SRCS+= i810_dga.c 20 1.17 christos SRCS+= i810_dri.c 21 1.12 riastrad SRCS+= i810_driver.c 22 1.17 christos SRCS+= i810_hwmc.c 23 1.12 riastrad SRCS+= i810_memory.c 24 1.12 riastrad SRCS+= i810_video.c 25 1.12 riastrad SRCS+= i810_wmark.c 26 1.12 riastrad 27 1.12 riastrad # sna 28 1.12 riastrad .PATH: ${X11SRCDIR.${DRIVER}}/src/sna 29 1.12 riastrad SRCS+= blt.c 30 1.12 riastrad SRCS+= kgem.c 31 1.17 christos SRCS+= gen2_render.c 32 1.17 christos SRCS+= gen3_render.c 33 1.17 christos SRCS+= gen4_common.c 34 1.17 christos SRCS+= gen4_render.c 35 1.17 christos SRCS+= gen4_source.c 36 1.17 christos SRCS+= gen4_vertex.c 37 1.17 christos SRCS+= gen5_render.c 38 1.17 christos SRCS+= gen6_common.c 39 1.17 christos SRCS+= gen6_render.c 40 1.17 christos SRCS+= gen7_render.c 41 1.17 christos SRCS+= gen8_eu.c 42 1.17 christos SRCS+= gen8_render.c 43 1.17 christos SRCS+= gen8_vertex.c 44 1.17 christos 45 1.12 riastrad SRCS+= sna_accel.c 46 1.17 christos SRCS+= sna_acpi.c 47 1.12 riastrad SRCS+= sna_blt.c 48 1.12 riastrad SRCS+= sna_composite.c 49 1.12 riastrad SRCS+= sna_cpu.c 50 1.12 riastrad SRCS+= sna_damage.c 51 1.12 riastrad SRCS+= sna_display.c 52 1.12 riastrad SRCS+= sna_display_fake.c 53 1.17 christos SRCS+= sna_dri2.c 54 1.17 christos #SRCS+= sna_dri3.c 55 1.12 riastrad SRCS+= sna_driver.c 56 1.12 riastrad SRCS+= sna_glyphs.c 57 1.12 riastrad SRCS+= sna_gradient.c 58 1.12 riastrad SRCS+= sna_io.c 59 1.17 christos #SRCS+= sna_present.c 60 1.12 riastrad SRCS+= sna_render.c 61 1.12 riastrad SRCS+= sna_stream.c 62 1.17 christos SRCS+= sna_threads.c 63 1.12 riastrad SRCS+= sna_tiling.c 64 1.12 riastrad SRCS+= sna_transform.c 65 1.17 christos SRCS+= sna_trapezoids.c 66 1.17 christos SRCS+= sna_trapezoids_boxes.c 67 1.17 christos SRCS+= sna_trapezoids_imprecise.c 68 1.17 christos SRCS+= sna_trapezoids_mono.c 69 1.17 christos SRCS+= sna_trapezoids_precise.c 70 1.12 riastrad SRCS+= sna_vertex.c 71 1.12 riastrad SRCS+= sna_video.c 72 1.17 christos SRCS+= sna_video_hwmc.c 73 1.12 riastrad SRCS+= sna_video_overlay.c 74 1.12 riastrad SRCS+= sna_video_sprite.c 75 1.12 riastrad SRCS+= sna_video_textured.c 76 1.12 riastrad 77 1.12 riastrad # sna/brw 78 1.12 riastrad .PATH: ${X11SRCDIR.${DRIVER}}/src/sna/brw 79 1.12 riastrad SRCS+= brw_disasm.c 80 1.12 riastrad SRCS+= brw_eu.c 81 1.12 riastrad SRCS+= brw_eu_emit.c 82 1.12 riastrad SRCS+= brw_sf.c 83 1.12 riastrad SRCS+= brw_wm.c 84 1.12 riastrad 85 1.12 riastrad # sna/fb 86 1.12 riastrad .PATH: ${X11SRCDIR.${DRIVER}}/src/sna/fb 87 1.12 riastrad SRCS+= fbarc.c 88 1.12 riastrad SRCS+= fbbitmap.c 89 1.12 riastrad SRCS+= fbblt.c 90 1.12 riastrad SRCS+= fbbltone.c 91 1.12 riastrad SRCS+= fbclip.c 92 1.12 riastrad SRCS+= fbcopy.c 93 1.12 riastrad SRCS+= fbfill.c 94 1.12 riastrad SRCS+= fbgc.c 95 1.12 riastrad SRCS+= fbglyph.c 96 1.12 riastrad SRCS+= fbimage.c 97 1.12 riastrad SRCS+= fbline.c 98 1.12 riastrad SRCS+= fbpict.c 99 1.12 riastrad SRCS+= fbpoint.c 100 1.12 riastrad SRCS+= fbpush.c 101 1.12 riastrad SRCS+= fbseg.c 102 1.12 riastrad SRCS+= fbspan.c 103 1.12 riastrad SRCS+= fbstipple.c 104 1.12 riastrad SRCS+= fbtile.c 105 1.12 riastrad SRCS+= fbutil.c 106 1.12 riastrad 107 1.12 riastrad # uxa 108 1.12 riastrad .PATH: ${X11SRCDIR.${DRIVER}}/src/uxa 109 1.12 riastrad SRCS+= i830_3d.c 110 1.12 riastrad SRCS+= i830_render.c 111 1.12 riastrad SRCS+= i915_3d.c 112 1.12 riastrad SRCS+= i915_render.c 113 1.12 riastrad SRCS+= i915_video.c 114 1.12 riastrad SRCS+= i965_3d.c 115 1.17 christos SRCS+= i965_render.c 116 1.12 riastrad SRCS+= i965_video.c 117 1.17 christos SRCS+= intel_batchbuffer.c 118 1.17 christos SRCS+= intel_display.c 119 1.17 christos SRCS+= intel_dri.c 120 1.17 christos SRCS+= intel_driver.c 121 1.17 christos SRCS+= intel_hwmc.c 122 1.17 christos SRCS+= intel_memory.c 123 1.17 christos #SRCS+= intel_present.c 124 1.17 christos #SRCS+= intel_sync.c 125 1.17 christos SRCS+= intel_uxa.c 126 1.20 snj SRCS+= intel_uxa_video.c 127 1.17 christos SRCS+= intel_video.c 128 1.20 snj SRCS+= intel_video_overlay.c 129 1.12 riastrad SRCS+= uxa-accel.c 130 1.12 riastrad SRCS+= uxa-glyphs.c 131 1.12 riastrad SRCS+= uxa-render.c 132 1.12 riastrad SRCS+= uxa-unaccel.c 133 1.17 christos SRCS+= uxa.c 134 1.12 riastrad 135 1.1 rtr MAN= intel.4 136 1.1 rtr 137 1.3 rtr CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 138 1.3 rtr CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/dri 139 1.8 mrg CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm 140 1.12 riastrad CPPFLAGS+= -I${X11SRCDIR.${DRIVER}}/src 141 1.12 riastrad CPPFLAGS+= -I${X11SRCDIR.${DRIVER}}/src/render_program 142 1.12 riastrad CPPFLAGS+= -I${X11SRCDIR.${DRIVER}}/xvmc 143 1.12 riastrad 144 1.12 riastrad # Use the Intel-style __sync_* atomic primitives. 145 1.12 riastrad 146 1.21 mrg CPPFLAGS+= -DDEFAULT_ACCEL_METHOD=SNA 147 1.17 christos CPPFLAGS+= -DENABLE_XVMC=1 148 1.15 jmcneill CPPFLAGS+= -DHAS_PIXMAN_GLYPHS=1 149 1.15 jmcneill CPPFLAGS+= -DHAS_PIXMAN_TRIANGLES=1 150 1.17 christos CPPFLAGS+= -DHAVE_ATOMIC_PRIMITIVES=1 151 1.17 christos CPPFLAGS+= -DHAVE_CPUID_H=1 152 1.17 christos CPPFLAGS+= -DHAVE_DGAPROC_H=1 153 1.17 christos CPPFLAGS+= -DHAVE_DLFCN_H=1 154 1.17 christos CPPFLAGS+= -DHAVE_DRI1=1 155 1.17 christos CPPFLAGS+= -DHAVE_DRI2=1 156 1.17 christos CPPFLAGS+= -DHAVE_DRI2_H=1 157 1.17 christos CPPFLAGS+= -DHAVE_DRISTRUCT_H=1 158 1.17 christos CPPFLAGS+= -DHAVE_DRI_H=1 159 1.17 christos CPPFLAGS+= -DHAVE_GETLINE=1 160 1.17 christos CPPFLAGS+= -DHAVE_INTTYPES_H=1 161 1.17 christos CPPFLAGS+= -DHAVE_MEMORY_H=1 162 1.17 christos CPPFLAGS+= -DHAVE_SAREA_H=1 163 1.17 christos CPPFLAGS+= -DHAVE_STDINT_H=1 164 1.17 christos CPPFLAGS+= -DHAVE_STDLIB_H=1 165 1.17 christos CPPFLAGS+= -DHAVE_STRINGS_H=1 166 1.17 christos CPPFLAGS+= -DHAVE_STRING_H=1 167 1.17 christos CPPFLAGS+= -DHAVE_STRLCAT=1 168 1.17 christos CPPFLAGS+= -DHAVE_STRLCPY=1 169 1.17 christos CPPFLAGS+= -DHAVE_STRNDUP=1 170 1.17 christos CPPFLAGS+= -DHAVE_SYS_IPC_H=1 171 1.17 christos CPPFLAGS+= -DHAVE_SYS_STAT_H=1 172 1.17 christos CPPFLAGS+= -DHAVE_SYS_TYPES_H=1 173 1.17 christos CPPFLAGS+= -DHAVE_UNISTD_H=1 174 1.17 christos CPPFLAGS+= -DHAVE_VGAHW_H=1 175 1.17 christos CPPFLAGS+= -DKMS=1 176 1.17 christos CPPFLAGS+= -DSTDC_HEADERS=1 177 1.17 christos CPPFLAGS+= -DUMS=1 178 1.17 christos CPPFLAGS+= -DUSE_BACKLIGHT=1 179 1.17 christos CPPFLAGS+= -DUSE_SNA=1 180 1.17 christos CPPFLAGS+= -DUSE_UXA=1 181 1.12 riastrad 182 1.12 riastrad # XXX This should not be hard-coded here... 183 1.12 riastrad DRI_DRIVER_PATH= /usr/X11R7/lib/modules/dri 184 1.12 riastrad CPPFLAGS+= -DDRI_DRIVER_PATH=\"${DRI_DRIVER_PATH:Q}\" 185 1.12 riastrad 186 1.12 riastrad # XXX Probably better to set this in Makefile.xf86-driver, conditional 187 1.12 riastrad # on ELF &c. 188 1.12 riastrad CFLAGS+= -fvisibility=hidden 189 1.3 rtr 190 1.12 riastrad LIBDPLIBS+= drm_intel ${.CURDIR}/../../../lib/libdrm_intel 191 1.12 riastrad LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread 192 1.6 mrg 193 1.1 rtr .include "../Makefile.xf86-driver" 194 1.5 christos 195 1.23 mrg .if ${XORG_SERVER_SUBDIR} == "xorg-server.old" 196 1.23 mrg SRCS+= i810_xaa.c 197 1.23 mrg .endif 198 1.23 mrg 199 1.10 joerg CWARNFLAGS.clang+= -Wno-parentheses -Wno-tautological-compare \ 200 1.10 joerg -Wno-empty-body -Wno-error 201 1.10 joerg 202 1.22 christos COPTS.sna_display.c+= -Wno-stack-protector 203 1.22 christos COPTS.sna_threads.c+= -Wno-stack-protector 204 1.22 christos COPTS.sna_trapezoids.c+= -Wno-stack-protector 205 1.22 christos COPTS.sna_trapezoids_boxes.c+= -Wno-stack-protector 206 1.22 christos COPTS.sna_trapezoids_imprecise.c+= -Wno-stack-protector 207 1.22 christos COPTS.sna_trapezoids_mono.c+= -Wno-stack-protector 208 1.22 christos COPTS.sna_trapezoids_precise.c+= -Wno-stack-protector 209 1.22 christos COPTS.i965_video.c+= -Wno-stack-protector 210 1.26 mrg 211 1.26 mrg COPTS.sna_display.c+= -Wno-error # XXX deprecated 212 1.26 mrg COPTS.intel_driver.c+= -Wno-error # XXX deprecated 213