1# $NetBSD: Makefile,v 1.5 2008/03/08 10:38:59 phx Exp $ 2 3XMODULEDIR= ${X11USRLIBDIR}/modules/drivers 4 5.include "../../../../Makefile.serverlib" 6 7MODULE= atimisc_drv 8 9.PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/drivers/ati 10SRCS= atiaccel.c atiadjust.c atiaudio.c aticlock.c aticonfig.c \ 11 aticonsole.c aticursor.c atidac.c atidecoder.c atidsp.c \ 12 atii2c.c atilock.c atimach64.c atimach64accel.c \ 13 atimach64cursor.c atimach64i2c.c atimach64io.c \ 14 atimach64xv.c atimode.c atipreinit.c atiprint.c \ 15 atirgb514.c atiscreen.c atituner.c atiutil.c ativalid.c \ 16 atixv.c atibank.c ativga.c atiwonder.c atiwonderio.c \ 17 atiload.c atimisc.c 18 19# NOTICE: there is a corresponding CPPFLAG below that sets -DAVOID_DGA 20# if sparc. 21.if ${MACHINE_ARCH} != "sparc" 22SRCS+= atidga.c 23.endif 24 25CPPFLAGS+= -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/drivers/ati \ 26 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/common \ 27 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support \ 28 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86 \ 29 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/vbe \ 30 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/int10 \ 31 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/ddc \ 32 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/i2c \ 33 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/rac \ 34 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/ramdac \ 35 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/shadowfb \ 36 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/xaa \ 37 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/xf24_32bpp \ 38 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/xf4bpp \ 39 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/xf1bpp \ 40 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/vgahw \ 41 -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/fbdevhw \ 42 -I${X11SRCDIR.xc}/programs/Xserver/cfb \ 43 -I${X11SRCDIR.xc}/programs/Xserver/mfb \ 44 -I${X11SRCDIR.xc}/programs/Xserver/fb \ 45 -I${X11SRCDIR.xc}/programs/Xserver/mi \ 46 -I${X11SRCDIR.xc}/programs/Xserver/miext/shadow \ 47 -I${X11SRCDIR.xc}/programs/Xserver/render \ 48 -I${X11SRCDIR.xc}/programs/Xserver/Xext \ 49 -I${X11SRCDIR.xc}/programs/Xserver/include \ 50 -I${X11SRCDIR.xc}/include/fonts \ 51 -I${DESTDIR}${X11INCDIR}/X11 \ 52 -I${DESTDIR}${X11INCDIR}/X11/extensions \ 53 -I${XSERVERINCDIR} 54 55# XXX from the Imakefile 56# -DAVOID_CPIO must be defined for os/arch combinations that do not 57# provide or emulate a little-endian undirected PIO address space of 58# at least 64KB in size. The 'first cut' configuration only explicitly 59# defines the following as providing. 60.if !(${MACHINE_ARCH} == "i386" || \ 61 ${MACHINE_ARCH} == "x86_64" || \ 62 ${MACHINE_ARCH} == "alpha") 63CPPFLAGS+= -DAVOID_CPIO 64.endif 65 66# XXX from the Imakefile 67# -DAVOID_NON_PCI must be defined for those platforms that do not 68# tolerate PCI master aborts. 69.if ${MACHINE} == "macppc" || ${MACHINE} == "ofppc" 70CPPFLAGS+= -DAVOID_NON_PCI 71.endif 72 73.if ${MACHINE_ARCH} == "sparc" 74CPPFLAGS+= -DAVOID_DGA 75.endif 76 77.include <bsd.x11.mk> 78LIBDIR= ${XMODULEDIR} 79.include "../../Makefile.drivermod" 80