1 # $NetBSD: Makefile,v 1.11 2008/03/08 10:39:00 phx Exp $
3 .
include <bsd.sys.mk
> # for HOST_SH
5 .
include "../../../Makefile.serverlib"
9 # XXX xf86Init.c & xf86IniExt.c should not be linked into libxf86.a
10 .PATH
: ${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/common
11 SRCS
= xf86Configure.c xf86Bus.c xf86isaBus.c xf86pciBus.c \
12 xf86fbBus.c xf86noBus.c xf86IniExt.c xf86Config.c \
13 xf86AutoConfig.c xf86Cursor.c xf86DGA.c xf86DPMS.c \
14 xf86DefModeSet.c xf86DoProbe.c xf86DoScanPci.c xf86Events.c \
15 xf86Globals.c xf86Helper.c xf86Init.c xf86Io.c xf86MiscExt.c \
16 xf86Mode.c xf86Option.c xf86VidMode.c xf86fbman.c xf86xv.c \
17 xf86xvmc.c xf86cmap.c xf86PM.c xf86Versions.c xf86Debug.c \
18 xf86KbdBSD.c xf86Xinput.c xisb.c xf86XKB.c xf86RandR.c
20 .if
${MACHINE_ARCH} == "sparc64" ||
${MACHINE_ARCH} == "sparc"
22 CPPFLAGS
+=-DUSE_MODULAR_KBD
25 .if
${MACHINE} == "macppc" ||
${MACHINE} == "ofppc"
26 CPPFLAGS
+=-DUSE_MODULAR_KBD
29 # Rebuild xf86Build.h on every make
31 CLEANFILES
+= xf86Build.h
34 echo
"#define BUILD_DATE `date +%Y%m%d`" > ${.TARGET
}
36 # We don't use DPSRCS+=xf86Build.h because we don't want the entire
37 # library to be rebuilt each time
39 xf86Init.c xf86Init.o
: xf86Build.h
41 CPPFLAGS
+= -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/common \
42 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/os-support \
43 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/os-support
/bus \
44 -I
${X11SRCDIR.xc
}/programs
/Xserver
/mfb \
45 -I
${X11SRCDIR.xc
}/programs
/Xserver
/mi \
46 -I
${X11SRCDIR.xc
}/programs
/Xserver
/include \
47 -I
${X11SRCDIR.xc
}/programs
/Xserver
/os \
48 -I
${X11SRCDIR.xc
}/programs
/Xserver
/Xext \
49 -I
${DESTDIR}${X11INCDIR}/X11 \
50 -I
${DESTDIR}${X11INCDIR}/X11
/extensions \
51 -I
${X11SRCDIR.xc
}/programs
/Xserver
/Xi \
52 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/ddc \
53 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/i2c \
54 -I
${X11SRCDIR.xc
}/lib
/font
/include \
55 -I
${X11SRCDIR.xc
}/include/fonts \
56 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86 \
57 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/parser \
58 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/loader \
59 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/vgahw \
60 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/rac \
61 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/scanpci \
62 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/vbe \
63 -I
${X11SRCDIR.xc
}/programs
/Xserver
/hw
/xfree86
/int10 \
64 -I
${X11SRCDIR.xc
}/programs
/Xserver
/render \
65 -I
${X11SRCDIR.xc
}/programs
/Xserver
/randr \
69 CPPFLAGS
+= ${X11FLAGS.EXTENSION
} ${X11FLAGS.OS_DEFINES
} \
70 -DXFree86LOADER
-DWSCONS_SUPPORT
72 .if
${MACHINE} == "cats"
73 CPPFLAGS
+= -DPCVT_SUPPORT
76 .if
${MACHINE_ARCH} == "i386"
77 CPPFLAGS
+= -DPCCONS_SUPPORT
-DPCVT_SUPPORT
80 BUILDSYMLINKS
= xf86DefModes.c xf86DefModeSet.c \
81 ..
/..
/..
/mi
/miinitext.c xf86IniExt.c
83 OS_RELEASE
!= ${HOST_SH} ${NETBSDSRCDIR}/sys
/conf
/osrelease.sh
85 DRIVERS
= mga glint nv tga s3 s3virge sis rendition neomagic \
86 i740 tdfx savage cirrus vmware tseng trident chips \
88 .if
${MACHINE_ARCH} != "x86_64"
91 DRIVERS
+= ati i810 ark cyrix siliconmotion via fbdev vesa vga \
94 IDRIVERS
= mouse keyboard acecad calcomp citron digitaledge \
95 dmc dynapro elographics tek4957 microtouch \
96 mutouch penmount spaceorb summa wacom void \
97 magellan hyperpen jamstudio fpit palmax usbtablet
99 CPPFLAGS.xf86Bus.c
= -DBUILDERADDR
='"xfree86@xfree86.org"'
100 CPPFLAGS.xf86Init.c
= -DOSNAME
='"NetBSD/${MACHINE} ${OS_RELEASE} -"' \
101 -DXORG_RELEASE
='"Release 6.6"' \
102 -DBUILDERADDR
='"xfree86@xfree86.org"' \
103 -DOSVENDOR
='" The NetBSD Foundation, Inc."'
104 CPPFLAGS.xf86Globals.c
= -DDEFAULT_LOGPREFIX
='"/var/log/XFree86."' \
105 -DDEFAULT_MODULE_PATH
='"${X11USRLIBDIR}/modules"'
106 CPPFLAGS.xf86Configure.c
= -DXF86CONFIGFILE
='"XF86Config"'
107 CPPFLAGS.xf86Config.c
= -DDRIVERS
='"${DRIVERS}"' \
108 -DIDRIVERS
='"${IDRIVERS}"' \
109 -DPROJECTROOT
='"${X11ROOTDIR}"'
110 CPPFLAGS.xf86AutoConfig.c
= -DPROJECTROOT
='"${X11ROOTDIR}"' \
111 -DBINDIR
='"${X11BINDIR}"' \
112 -DDRIVERS
='"${DRIVERS}"' \
113 -DIDRIVERS
='"${IDRIVERS}"'
115 .
include <bsd.x11.mk
>
116 .
include <bsd.lib.mk
>