define major,minor,patchlevel and xorg version defines for CPPFLAGS here

instead of throughout individual drivers
This commit is contained in:
rtr 2008-08-03 14:46:01 +00:00
parent d4584d3b36
commit 2c74f4c039

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.xf86-driver,v 1.2 2008/08/03 06:02:29 rtr Exp $
# $NetBSD: Makefile.xf86-driver,v 1.3 2008/08/03 14:46:01 rtr Exp $
.include <bsd.own.mk>
.include <bsd.x11.mk>
@ -33,6 +33,11 @@ CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/xorg \
-I${X11SRCDIR.xorg-server}/../include \
${X11FLAGS.DIX} ${X11INCS.DIX}
CPPFLAGS+= -DPACKAGE_VERSION_MAJOR=${PACKAGE_MAJOR}
CPPFLAGS+= -DPACKAGE_VERSION_MINOR=${PACKAGE_MINOR}
CPPFLAGS+= -DPACKAGE_VERSION_PATCHLEVEL=${PACKAGE_PATCH}
CPPFLAGS+= -DXORG_VERSION_CURRENT=${XORG_VERSION_CURRENT}
.PATH: ${X11SRCDIR.${DRIVER}}/src
.PATH: ${X11SRCDIR.${DRIVER}}/man