Sync DRM code with FreeBSD trunk rev 190433.
[dragonfly.git] / sys / dev / drm / radeon / Makefile
blob06aa137678703a9718649f8e252c2e1e197cd2b8
1 # $DragonFly: src/sys/dev/drm/radeon/Makefile,v 1.3 2008/04/05 18:12:30 hasso Exp $
3 .PATH: ${.CURDIR}/..
4 KMOD = radeon
5 KMODDEPS= drm
6 NO_MAN = YES
7 SRCS = r300_cmdbuf.c r600_cp.c radeon_cp.c radeon_drv.c radeon_state.c \
8 radeon_irq.c radeon_mem.c
9 SRCS += device_if.h bus_if.h pci_if.h opt_drm.h
10 CFLAGS += ${DEBUG_FLAGS} -I. -I..
12 .if ${CC} != "icc"
13 CFLAGS += --param large-function-growth=1000
14 .endif
16 .if defined(DRM_DEBUG)
17 DRM_DEBUG_OPT= "\#define DRM_DEBUG 1"
18 .endif
20 .if !defined(DRM_NOLINUX)
21 DRM_LINUX_OPT= "\#define DRM_LINUX 1"
22 .endif
24 opt_drm.h:
25 touch opt_drm.h
26 echo $(DRM_DEBUG_OPT) >> opt_drm.h
27 echo $(DRM_LINUX_OPT) >> opt_drm.h
29 .include <bsd.kmod.mk>