From c47b611b08327da4a5249d222079be07c26fb2ff Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 9 May 2004 22:36:19 +0000 Subject: Add mach64 DRM module for BSD (untested, but compiles). --- bsd-core/mach64/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bsd-core/mach64/Makefile (limited to 'bsd-core/mach64') diff --git a/bsd-core/mach64/Makefile b/bsd-core/mach64/Makefile new file mode 100644 index 00000000..741b8eea --- /dev/null +++ b/bsd-core/mach64/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/.. +KMOD = mach64 +NOMAN= YES +SRCS = mach64_dma.c mach64_drv.c mach64_irq.c mach64_state.c +SRCS += device_if.h bus_if.h pci_if.h opt_drm.h +CFLAGS += ${DEBUG_FLAGS} -I. -I.. + +.if defined(DRM_DEBUG) +DRM_DEBUG_OPT= "\#define DRM_DEBUG 1" +.endif + +.if !defined(DRM_NOLINUX) +DRM_LINUX_OPT= "\#define DRM_LINUX 1" +.endif + +opt_drm.h: + touch opt_drm.h + echo $(DRM_DEBUG_OPT) >> opt_drm.h + echo $(DRM_LINUX_OPT) >> opt_drm.h + +.include -- cgit v1.2.3