1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/.. 4KMOD= mga 5NO_MAN= YES 6SRCS= mga_drv.c mga_state.c mga_warp.c mga_dma.c mga_irq.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