Makefile.inc revision 1.2
11.2Sriastrad# $NetBSD: Makefile.inc,v 1.2 2014/03/18 18:20:43 riastradh Exp $
21.2Sriastrad
31.2Sriastrad# Common makefile cruft for drm2 code.
41.2Sriastrad
51.2Sriastrad# XXX All the -D crap needs to go in a header file instead so changing
61.2Sriastrad# it correctly triggers rebuilds.
71.2Sriastrad
81.2SriastradCPPFLAGS+=	-I${S}/external/bsd/drm2/include
91.2SriastradCPPFLAGS+=	-I${S}/external/bsd/drm2/dist/uapi
101.2SriastradCPPFLAGS+=	-I${S}/external/bsd/drm2/dist/include
111.2SriastradCPPFLAGS+=	-D__KERNEL__
121.2Sriastrad
131.2Sriastrad# XXX Is this the right place to set this?
141.2SriastradCPPFLAGS+=	-DDIAGNOSTIC
151.2Sriastrad
161.2Sriastrad.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
171.2SriastradCPPFLAGS+=	-DCONFIG_MTRR
181.2SriastradCPPFLAGS+=	-DCONFIG_X86
191.2SriastradCPPFLAGS+=	-DMTRR
201.2Sriastrad.endif
21