Makefile revision 285830
1# $FreeBSD: releng/10.2/sys/modules/drm/via/Makefile 242203 2012-10-28 02:15:35Z nwhitehorn $ 2 3.PATH: ${.CURDIR}/../../../dev/drm 4KMOD = via 5SRCS = via_dma.c via_dmablit.c via_drv.c via_irq.c via_map.c via_mm.c \ 6 via_verifier.c via_video.c 7SRCS += device_if.h bus_if.h pci_if.h opt_drm.h 8 9.if defined(DRM_DEBUG) 10DRM_DEBUG_OPT= "\#define DRM_DEBUG 1" 11.endif 12 13.if !defined(DRM_NOLINUX) && \ 14 (${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64") 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 25CWARNFLAGS.via_dma.c= -Wno-unused-value 26CWARNFLAGS.via_dmablit.c= -Wno-unused-value 27CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 28