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