aboutsummaryrefslogtreecommitdiff
path: root/bsd-core/radeon/Makefile
blob: b1d77bf4080e2ad9d7e9e2a71fa9fcdfd07f24d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $FreeBSD$

KMOD	= radeon
NOMAN=	YES
SRCS    = radeon_cp.c radeon_drv.c radeon_state.c
SRCS   += device_if.h bus_if.h pci_if.h opt_drm_linux.h
CFLAGS += ${DEBUG_FLAGS} -I. -I..

@:
	ln -sf /sys @

machine:
	ln -sf /sys/i386/include machine

.if ${MACHINE_ARCH} == "i386"
# This line enables linux ioctl handling
# If you want support for this uncomment this line
#RADEON_OPTS=     "\#define DRM_LINUX" 1
.endif

opt_drm_linux.h:
	touch opt_drm_linux.h
	echo $(RADEON_OPTS) >> opt_drm_linux.h

.include <bsd.kmod.mk>