Makefile.inc revision 1.4
11.4Sriastrad# $NetBSD: Makefile.inc,v 1.4 2014/07/16 20:56:25 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.4SriastradCPPFLAGS+=	-I${S}/external/bsd/drm2/dist
101.4SriastradCPPFLAGS+=	-I${S}/external/bsd/drm2/dist/include
111.4SriastradCPPFLAGS+=	-I${S}/external/bsd/drm2/dist/include/drm
121.2SriastradCPPFLAGS+=	-I${S}/external/bsd/drm2/dist/uapi
131.3SriastradCPPFLAGS+=	-I${S}/external/bsd/common/include
141.2SriastradCPPFLAGS+=	-D__KERNEL__
151.2Sriastrad
161.2Sriastrad# XXX Is this the right place to set this?
171.2SriastradCPPFLAGS+=	-DDIAGNOSTIC
181.2Sriastrad
191.2Sriastrad.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
201.2SriastradCPPFLAGS+=	-DCONFIG_MTRR
211.2SriastradCPPFLAGS+=	-DCONFIG_X86
221.2Sriastrad.endif
23