bbaeaa567bcb8f027bc4ed63ada24162ac4109e4
[profile/ivi/libdrm.git] / bsd / mga / Makefile
1 # $FreeBSD$
2
3 KMOD=   mga
4 NOMAN=  YES
5 SRCS=           mga_drv.c mga_state.c mga_warp.c mga_dma.c
6 SRCS+=  device_if.h bus_if.h pci_if.h opt_drm_linux.h
7 CFLAGS+=        ${DEBUG_FLAGS} -I. -I..
8
9 @:
10         ln -sf /sys @
11
12 machine:
13         ln -sf /sys/i386/include machine
14
15 .if ${MACHINE_ARCH} == "i386"
16 # This line enables linux ioctl handling
17 # If you want support for this uncomment this line
18 #MGA_OPTS=     "\#define DRM_LINUX" 1
19 .endif
20
21 opt_drm_linux.h:
22         touch opt_drm_linux.h
23         echo $(MGA_OPTS) >> opt_drm_linux.h
24
25 .include <bsd.kmod.mk>