1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/.. 4KMOD = i915 5NO_MAN = YES 6SRCS = i915_dma.c i915_drv.c i915_irq.c i915_mem.c i915_suspend.c 7SRCS += device_if.h bus_if.h pci_if.h opt_drm.h 8CFLAGS += ${DEBUG_FLAGS} -I. -I.. 9 10.if defined(DRM_DEBUG) 11DRM_DEBUG_OPT= "\#define DRM_DEBUG 1" 12.endif 13 14.if !defined(DRM_NOLINUX) 15DRM_LINUX_OPT= "\#define DRM_LINUX 1" 16.endif 17 18opt_drm.h: 19 touch opt_drm.h 20 echo $(DRM_DEBUG_OPT) >> opt_drm.h 21 echo $(DRM_LINUX_OPT) >> opt_drm.h 22 23.include <bsd.kmod.mk> 24