1 # $NetBSD: Makefile,v 1.21 2014/01/16 01:15:33 christos Exp $
5 .
include "../../../Makefile.serverlib"
6 .
include "../../../Makefile.servermod"
10 .PATH
: ${X11SRCDIR.xorg-server
}/hw
/xfree86
/common
11 SRCS.xv
= xf86xv.c xf86xvmc.c
12 SRCS.bus
= xf86pciBus.c xf86fbBus.c xf86noBus.c
13 SRCS.randr
= xf86RandR.c
15 SRCS
= xf86Configure.c xf86ShowOpts.c xf86Bus.c xf86Config.c \
16 xf86Cursor.c xf86DGA.c xf86DPMS.c \
17 xf86Events.c xf86Globals.c xf86AutoConfig.c \
19 xf86VidMode.c xf86fbman.c xf86cmap.c \
20 xf86Helper.c xf86PM.c xf86Xinput.c xisb.c \
21 xf86Mode.c xorgHelper.c \
22 ${SRCS.xv
} ${SRCS.bus
} ${SRCS.randr
} \
26 .if
${MACHINE_ARCH} == "sparc" ||
${MACHINE_ARCH} == "sparc64"
27 SRCS.bus
+= xf86sbusBus.c
30 # Rebuild xf86Build.h on every make
32 CLEANFILES
+= xf86Build.h
35 echo
"#define BUILD_DATE `date +%Y%m%d`" > ${.TARGET
}
37 # We don't use DPSRCS+=xf86Build.h because we don't want the entire
38 # library to be rebuilt each time
40 xf86Init.c xf86Init.o
: xf86Build.h
42 CLEANFILES
+= xf86DefModeSet.c
46 ${X11SRCDIR.xorg-server
}/hw
/xfree86
/common
/vesamodes \
47 ${X11SRCDIR.xorg-server
}/hw
/xfree86
/common
/extramodes | \
48 ${TOOL_AWK} -f
${X11SRCDIR.xorg-server
}/hw
/xfree86
/common
/modeline2c.awk
> ${.TARGET
}
51 CPPFLAGS
+= -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/common \
52 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/os-support \
53 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/os-support
/bus \
54 -I
${X11SRCDIR.xorg-server
}/mfb \
55 -I
${X11SRCDIR.xorg-server
}/mi \
56 -I
${X11SRCDIR.xorg-server
}/include \
57 -I
${X11SRCDIR.xorg-server
}/os \
58 -I
${X11SRCDIR.xorg-server
}/Xext \
59 -I
${DESTDIR}${X11INCDIR}/X11 \
60 -I
${DESTDIR}${X11INCDIR}/X11
/extensions \
61 -I
${DESTDIR}${X11INCDIR}/pixman-1 \
62 -I
${DESTDIR}${X11INCDIR}/xorg \
63 -I
${X11SRCDIR.xorg-server
}/Xi \
64 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/ddc \
65 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/dixmods
/extmod \
66 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/modes \
67 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/i2c \
68 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86 \
69 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/parser \
70 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/loader \
71 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/vgahw \
72 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/rac \
73 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/vbe \
74 -I
${X11SRCDIR.xorg-server
}/hw
/xfree86
/int10 \
75 -I
${X11SRCDIR.xorg-server
}/render \
76 -I
${X11SRCDIR.xorg-server
}/randr \
78 -I
${X11SRCDIR.xorg-server
}/..
/include \
82 CPPFLAGS
+= ${X11FLAGS.EXTENSION
} ${X11FLAGS.OS_DEFINES
} \
84 -DXFree86LOADER
-DWSCONS_SUPPORT
-D__XKBDEFRULES__
='"xorg"' \
85 -D__XSERVERNAME__
='"Xorg"' -D__XCONFIGFILE__
='"xorg.conf"' \
86 -D__VENDORDWEBSUPPORT__
='"http://wiki.X.Org"' \
87 -DXVENDORNAME
='"The X.Org Foundation"' \
88 -DHAVE_XORG_CONFIG_H \
89 -DHAVE_PCI_DEVICE_IS_BOOT_VGA
91 CPPFLAGS
+= ${X11FLAGS.EXTENSION
} ${X11FLAGS.OS_DEFINES
} \
93 -DXFree86LOADER
-D__XKBDEFRULES__
='"xorg"' \
94 -D__XSERVERNAME__
='"Xorg"' -D__XCONFIGFILE__
='"xorg.conf"' \
95 -D__VENDORDWEBSUPPORT__
='"http://wiki.X.Org"' \
96 -DXVENDORNAME
='"The X.Org Foundation"' \
97 -DHAVE_XORG_CONFIG_H \
98 -DHAVE_PCI_DEVICE_IS_BOOT_VGA
99 .
endif # !defined(__MINIX)
101 .if
${MACHINE_ARCH} == "i386"
102 .if
!defined
(__MINIX
)
103 CPPFLAGS
+= -DPCCONS_SUPPORT
-DPCVT_SUPPORT
105 CPPFLAGS
+= -DPCCONS_SUPPORT
106 .
endif # !defined(__MINIX)
109 .if
${MACHINE} == "cats" ||
${MACHINE} == "ofppc"
110 CPPFLAGS
+= -DPCVT_SUPPORT
113 OS_RELEASE
!= ${HOST_SH} ${NETBSDSRCDIR}/sys
/conf
/osrelease.sh
115 DRIVERS
= mga glint nv tga s3 s3virge sis rendition neomagic \
116 i740 tdfx savage cirrus vmware tseng trident chips \
118 DRIVERS
+= ati i810 ark cyrix siliconmotion via fbdev vesa \
121 IDRIVERS
= mouse keyboard acecad calcomp citron digitaledge \
122 dmc dynapro elographics tek4957 microtouch \
123 mutouch penmount spaceorb summa wacom void \
124 magellan hyperpen jamstudio fpit palmax
126 CPPFLAGS.xf86Bus.c
= -DBUILDERADDR
='"xfree86@xfree86.org"'
127 CPPFLAGS.xf86Init.c
= -DOSNAME
='"NetBSD/${MACHINE} ${OS_RELEASE} -"' \
128 -DXORG_RELEASE
='"Release 1.4.2"' \
129 -DBUILDERADDR
='"xorg@xorg.org"' \
130 -DOSVENDOR
='" The NetBSD Foundation, Inc."'
131 CPPFLAGS.xf86Globals.c
= -DDEFAULT_LOGPREFIX
='"/var/log/Xorg."' \
132 -DDEFAULT_MODULE_PATH
='"${X11USRLIBDIR}/modules"'
133 CPPFLAGS.xf86Configure.c
= -DXF86CONFIGFILE
='"xorg.conf"'
134 CPPFLAGS.xf86Config.c
= -DDRIVERS
='"${DRIVERS}"' \
135 -DIDRIVERS
='"${IDRIVERS}"' \
136 -DPROJECTROOT
='"${X11ROOTDIR}"'
137 CPPFLAGS.xf86AutoConfig.c
= -DPROJECTROOT
='"${X11ROOTDIR}"' \
138 -DBINDIR
='"${X11BINDIR}"' \
139 -DDRIVERS
='"${DRIVERS}"' \
140 -DIDRIVERS
='"${IDRIVERS}"'
142 COPTS.xf86AutoConfig.c
= -Wno-error
143 COPTS.xf86Config.c
= -Wno-error
144 COPTS.xf86Cursor.c
= -Wno-error
145 COPTS.xf86RandR.c
= -Wno-error
146 COPTS.xf86Helper.c
= -Wno-error
147 COPTS.xf86cmap.c
= -Wno-error
148 COPTS.xf86Cursor.c
= -Wno-error
# XXX xf86dgastr.h
149 COPTS.xf86DGA.c
= -Wno-error
# XXX xf86dgastr.h
151 .
include <bsd.x11.mk
>
152 .
include <bsd.lib.mk
>