Home | History | Annotate | Line # | Download | only in xf86-video-intel
Makefile revision 1.13
      1  1.13  riastrad #	$NetBSD: Makefile,v 1.13 2014/04/03 18:17:52 riastradh 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.12  riastrad 
     13  1.12  riastrad # legacy/i810
     14  1.12  riastrad .PATH:	${X11SRCDIR.${DRIVER}}/src/legacy/i810
     15  1.12  riastrad SRCS+=		i810_accel.c
     16  1.12  riastrad SRCS+=		i810_cursor.c
     17  1.12  riastrad SRCS+=		i810_driver.c
     18  1.12  riastrad SRCS+=		i810_memory.c
     19  1.12  riastrad SRCS+=		i810_video.c
     20  1.12  riastrad SRCS+=		i810_wmark.c
     21  1.12  riastrad 
     22  1.12  riastrad SRCS+=		i810_xaa.c
     23  1.12  riastrad SRCS+=		i810_dga.c
     24  1.12  riastrad SRCS+=		i810_dri.c
     25  1.12  riastrad SRCS+=		i810_hwmc.c
     26  1.12  riastrad 
     27  1.13  riastrad # SNA is amd64-only for now -- triggers ICEs on i386.
     28  1.13  riastrad .if ${MACHINE_ARCH} != "i386"
     29  1.13  riastrad 
     30  1.12  riastrad # sna
     31  1.12  riastrad .PATH:	${X11SRCDIR.${DRIVER}}/src/sna
     32  1.12  riastrad SRCS+=		blt.c
     33  1.12  riastrad SRCS+=		kgem.c
     34  1.12  riastrad SRCS+=		sna_accel.c
     35  1.12  riastrad SRCS+=		sna_blt.c
     36  1.12  riastrad SRCS+=		sna_composite.c
     37  1.12  riastrad SRCS+=		sna_cpu.c
     38  1.12  riastrad SRCS+=		sna_damage.c
     39  1.12  riastrad SRCS+=		sna_display.c
     40  1.12  riastrad SRCS+=		sna_display_fake.c
     41  1.12  riastrad SRCS+=		sna_driver.c
     42  1.12  riastrad SRCS+=		sna_glyphs.c
     43  1.12  riastrad SRCS+=		sna_gradient.c
     44  1.12  riastrad SRCS+=		sna_io.c
     45  1.12  riastrad SRCS+=		sna_render.c
     46  1.12  riastrad SRCS+=		sna_stream.c
     47  1.12  riastrad SRCS+=		sna_trapezoids.c
     48  1.12  riastrad SRCS+=		sna_tiling.c
     49  1.12  riastrad SRCS+=		sna_transform.c
     50  1.12  riastrad SRCS+=		sna_threads.c
     51  1.12  riastrad SRCS+=		sna_vertex.c
     52  1.12  riastrad SRCS+=		sna_video.c
     53  1.12  riastrad SRCS+=		sna_video_overlay.c
     54  1.12  riastrad SRCS+=		sna_video_sprite.c
     55  1.12  riastrad SRCS+=		sna_video_textured.c
     56  1.12  riastrad SRCS+=		gen2_render.c
     57  1.12  riastrad SRCS+=		gen3_render.c
     58  1.12  riastrad SRCS+=		gen4_render.c
     59  1.12  riastrad SRCS+=		gen4_source.c
     60  1.12  riastrad SRCS+=		gen4_vertex.c
     61  1.12  riastrad SRCS+=		gen5_render.c
     62  1.12  riastrad SRCS+=		gen6_render.c
     63  1.12  riastrad SRCS+=		gen7_render.c
     64  1.12  riastrad 
     65  1.12  riastrad SRCS+=		sna_dri.c
     66  1.12  riastrad 
     67  1.12  riastrad SRCS+=		sna_video_hwmc.c
     68  1.12  riastrad 
     69  1.12  riastrad # sna/brw
     70  1.12  riastrad .PATH:	${X11SRCDIR.${DRIVER}}/src/sna/brw
     71  1.12  riastrad SRCS+=		brw_disasm.c
     72  1.12  riastrad SRCS+=		brw_eu.c
     73  1.12  riastrad SRCS+=		brw_eu_emit.c
     74  1.12  riastrad SRCS+=		brw_sf.c
     75  1.12  riastrad SRCS+=		brw_wm.c
     76  1.12  riastrad 
     77  1.12  riastrad # sna/fb
     78  1.12  riastrad .PATH:	${X11SRCDIR.${DRIVER}}/src/sna/fb
     79  1.12  riastrad SRCS+=		fbarc.c
     80  1.12  riastrad SRCS+=		fbbitmap.c
     81  1.12  riastrad SRCS+=		fbblt.c
     82  1.12  riastrad SRCS+=		fbbltone.c
     83  1.12  riastrad SRCS+=		fbclip.c
     84  1.12  riastrad SRCS+=		fbcopy.c
     85  1.12  riastrad SRCS+=		fbfill.c
     86  1.12  riastrad SRCS+=		fbgc.c
     87  1.12  riastrad SRCS+=		fbglyph.c
     88  1.12  riastrad SRCS+=		fbimage.c
     89  1.12  riastrad SRCS+=		fbline.c
     90  1.12  riastrad SRCS+=		fbpict.c
     91  1.12  riastrad SRCS+=		fbpoint.c
     92  1.12  riastrad SRCS+=		fbpush.c
     93  1.12  riastrad SRCS+=		fbseg.c
     94  1.12  riastrad SRCS+=		fbspan.c
     95  1.12  riastrad SRCS+=		fbstipple.c
     96  1.12  riastrad SRCS+=		fbtile.c
     97  1.12  riastrad SRCS+=		fbutil.c
     98  1.12  riastrad 
     99  1.13  riastrad .endif
    100  1.13  riastrad 
    101  1.12  riastrad # uxa
    102  1.12  riastrad .PATH:	${X11SRCDIR.${DRIVER}}/src/uxa
    103  1.12  riastrad SRCS+=		intel_batchbuffer.c
    104  1.12  riastrad SRCS+=		intel_display.c
    105  1.12  riastrad SRCS+=		intel_driver.c
    106  1.12  riastrad SRCS+=		intel_memory.c
    107  1.12  riastrad SRCS+=		intel_uxa.c
    108  1.12  riastrad SRCS+=		intel_video.c
    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.12  riastrad SRCS+=		i965_video.c
    116  1.12  riastrad SRCS+=		i965_render.c
    117  1.12  riastrad SRCS+=		uxa.c
    118  1.12  riastrad SRCS+=		uxa-accel.c
    119  1.12  riastrad SRCS+=		uxa-glyphs.c
    120  1.12  riastrad SRCS+=		uxa-render.c
    121  1.12  riastrad SRCS+=		uxa-unaccel.c
    122  1.12  riastrad 
    123  1.12  riastrad #SRCS+=		intel_glamor.c
    124  1.12  riastrad 
    125  1.12  riastrad SRCS+=		intel_dri.c
    126  1.12  riastrad 
    127  1.12  riastrad SRCS+=		intel_hwmc.c
    128  1.12  riastrad 
    129   1.1       rtr MAN=		intel.4
    130   1.1       rtr 
    131   1.3       rtr CPPFLAGS+=      -I${DESTDIR}${X11INCDIR}/X11
    132   1.3       rtr CPPFLAGS+=      -I${DESTDIR}${X11INCDIR}/X11/dri
    133   1.8       mrg CPPFLAGS+=      -I${DESTDIR}${X11INCDIR}/libdrm
    134  1.12  riastrad CPPFLAGS+=	-I${X11SRCDIR.${DRIVER}}/src
    135  1.12  riastrad CPPFLAGS+=	-I${X11SRCDIR.${DRIVER}}/src/render_program
    136  1.12  riastrad CPPFLAGS+=	-I${X11SRCDIR.${DRIVER}}/xvmc
    137  1.12  riastrad 
    138  1.12  riastrad # Use the Intel-style __sync_* atomic primitives.
    139  1.12  riastrad CPPFLAGS+=	-DHAVE_ATOMIC_PRIMITIVES
    140  1.12  riastrad 
    141  1.12  riastrad CPPFLAGS+=	-DENABLE_XVMC
    142  1.13  riastrad CPPFLAGS+=	-DUSE_UXA
    143  1.13  riastrad .if ${MACHINE_ARCH} == "i386"
    144  1.13  riastrad CPPFLAGS+=	-DDEFAULT_ACCEL_METHOD=UXA
    145  1.13  riastrad .else
    146  1.12  riastrad CPPFLAGS+=	-DUSE_SNA
    147  1.12  riastrad CPPFLAGS+=	-DDEFAULT_ACCEL_METHOD=SNA
    148  1.13  riastrad .endif
    149  1.12  riastrad 
    150  1.12  riastrad CPPFLAGS+=	-DHAVE_DRI1
    151  1.12  riastrad CPPFLAGS+=	-DHAVE_DRI2_H
    152  1.12  riastrad CPPFLAGS+=	-DHAVE_XAA_H
    153  1.12  riastrad 
    154  1.12  riastrad # XXX This should not be hard-coded here...
    155  1.12  riastrad DRI_DRIVER_PATH=	/usr/X11R7/lib/modules/dri
    156  1.12  riastrad CPPFLAGS+=	-DDRI_DRIVER_PATH=\"${DRI_DRIVER_PATH:Q}\"
    157  1.12  riastrad 
    158  1.12  riastrad # XXX Probably better to set this in Makefile.xf86-driver, conditional
    159  1.12  riastrad # on ELF &c.
    160  1.12  riastrad CFLAGS+=	-fvisibility=hidden
    161   1.3       rtr 
    162  1.12  riastrad LIBDPLIBS+=	drm_intel	${.CURDIR}/../../../lib/libdrm_intel
    163  1.12  riastrad LIBDPLIBS+=	pthread		${NETBSDSRCDIR}/lib/libpthread
    164   1.6       mrg 
    165   1.1       rtr .include "../Makefile.xf86-driver"
    166   1.5  christos 
    167  1.10     joerg CWARNFLAGS.clang+=	-Wno-parentheses -Wno-tautological-compare \
    168  1.10     joerg 			-Wno-empty-body -Wno-error
    169  1.10     joerg 
    170   1.5  christos .include <bsd.subdir.mk>
    171