Sync usage with man page.
[netbsd-mini2440.git] / external / mit / xorg / server / drivers / Makefile.xf86-driver
blob380e1c10c7eb1a5180c2c22557ba351561bbe92f
1 #       $NetBSD: Makefile.xf86-driver,v 1.15 2009/06/12 01:59:04 mrg Exp $
3 LIBISMODULE=    yes
4 SHLIB_MAJOR=    ${PACKAGE_MAJOR}
6 .include <bsd.own.mk>
7 .include <bsd.x11.mk>
9 LIB=    ${DRIVER_NAME}
10 LIBDIR= ${X11USRLIBDIR}/modules/drivers
12 # Extract version from configure script if not set in makefile.
14 .if defined(DRIVER_VERSION)
15 PACKAGE_VERSION=        ${DRIVER_VERSION}
16 .else
17 PRINT_PACKAGE_VERSION=  ${TOOL_AWK} '/^PACKAGE_VERSION=/ {              \
18                                 match($$1, "[0-9]+\\.[0-9]+\\.[0-9]+"); \
19                                 version = substr($$1, RSTART, RLENGTH); \
20                         } END { print version }'                        \
21                         ${X11SRCDIR.${DRIVER}}/configure
23 PACKAGE_VERSION!=       ${PRINT_PACKAGE_VERSION}
24 .endif
26 PACKAGE_MAJOR=          ${PACKAGE_VERSION:R:R}
27 PACKAGE_MINOR=          ${PACKAGE_VERSION:R:E}
28 PACKAGE_PATCH=          ${PACKAGE_VERSION:E}
30 CPPFLAGS+=      -I${DESTDIR}${X11INCDIR}/X11 \
31                 -I${DESTDIR}${X11INCDIR}/X11/dri \
32                 -I${DESTDIR}${X11INCDIR}/drm \
33                 -I${DESTDIR}${X11INCDIR}/xorg \
34                 -I${DESTDIR}${X11INCDIR}/pixman-1 \
35                 -I${X11SRCDIR.xorg-server}/../include \
36                 ${X11FLAGS.EXTENSION} \
37                 ${X11FLAGS.DIX} ${X11INCS.DIX} \
38                 ${X11FLAGS.SERVER} \
39                 -DHAVE_XORG_SERVER_1_1_0 \
40                 -DSERVER_1_5 \
41                 -DXSERVER_LIBPCIACCESS \
42                 -DXFree86LOADER
44 CPPFLAGS+=      -DPACKAGE_VERSION_MAJOR=${PACKAGE_MAJOR}
45 CPPFLAGS+=      -DPACKAGE_VERSION_MINOR=${PACKAGE_MINOR}
46 CPPFLAGS+=      -DPACKAGE_VERSION_PATCHLEVEL=${PACKAGE_PATCH}
47 CPPFLAGS+=      -DXORG_VERSION_CURRENT=${XORG_VERSION_CURRENT}
49 .PATH:  ${X11SRCDIR.${DRIVER}}/src
50 .PATH:  ${X11SRCDIR.${DRIVER}}/man
52 .include <bsd.lib.mk>