2004-04-29 06:14:52 +04:00
|
|
|
# $NetBSD: Makefile,v 1.12 2004/04/29 02:14:52 lukem Exp $
|
2003-09-24 03:21:02 +04:00
|
|
|
|
|
|
|
.include "../Makefile.serverlib"
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2004-03-06 06:31:05 +03:00
|
|
|
.include <bsd.own.mk>
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2004-03-06 06:31:05 +03:00
|
|
|
LIB= os
|
|
|
|
.PATH: ${X11SRCDIR.xc}/programs/Xserver/os
|
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/xtrans
|
|
|
|
SRCS= WaitFor.c access.c connection.c io.c oscolor.c osinit.c \
|
|
|
|
utils.c log.c auth.c mitauth.c secauth.c xdmauth.c xdmcp.c \
|
|
|
|
xdmcp.c transport.c lbxio.c
|
2003-09-12 06:49:56 +04:00
|
|
|
|
|
|
|
CPPFLAGS+= -I${X11SRCDIR.xc}/programs/Xserver/include \
|
|
|
|
-I${XSERVERINCDIR} \
|
2003-09-30 10:41:29 +04:00
|
|
|
-I${DESTDIR}${X11INCDIR}/X11 \
|
|
|
|
-I${DESTDIR}${X11INCDIR}/X11/extensions \
|
2003-09-12 06:49:56 +04:00
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/Xext \
|
|
|
|
-I${X11SRCDIR.xc}/include/fonts \
|
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/render \
|
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/lbx
|
|
|
|
|
|
|
|
CPPFLAGS+= -DXSERV_t -DTRANS_SERVER \
|
2003-11-17 08:18:20 +03:00
|
|
|
${X11FLAGS.CONNECTION} \
|
|
|
|
-DHASXDMAUTH \
|
|
|
|
${X11FLAGS.OS_DEFINES} \
|
2004-02-24 18:17:48 +03:00
|
|
|
-DUSE_RGB_TXT \
|
|
|
|
-UDDXTIME
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2004-01-10 19:28:29 +03:00
|
|
|
.include "../Makefile.common"
|
|
|
|
|
2004-02-21 11:35:28 +03:00
|
|
|
# XXX The XFree86 Xserver has its own GetTimeInMillis(), however if we are
|
|
|
|
# building XFree86 and Xmacppc or Xsun* we want both copies. The copy
|
|
|
|
# here is linked into the non XFree86 server.
|
|
|
|
.if ${XSERVER_XFREE86} == "no" || \
|
|
|
|
${XSERVER_XMACPPC} != "no" || \
|
|
|
|
${XSERVER_XSUN} != "no"
|
|
|
|
SRCS+= GetTimeInMillis.c
|
2004-01-10 19:28:29 +03:00
|
|
|
.endif
|
|
|
|
|
2004-04-29 06:14:52 +04:00
|
|
|
XDMCP_DEFINES= -DXDMCP -DXDMCP_NO_IPV6
|
|
|
|
|
2003-09-12 06:49:56 +04:00
|
|
|
CPPFLAGS.WaitFor.c= ${X11FLAGS.EXTENSION}
|
2004-04-29 06:14:52 +04:00
|
|
|
CPPFLAGS.access.c= ${XDMCP_DEFINES} -DBSD44SOCKETS -DHAS_GETIFADDRS
|
|
|
|
CPPFLAGS.auth.c= ${XDMCP_DEFINES} -DHAVE_ARC4RANDOM
|
|
|
|
CPPFLAGS.connection.c= ${XDMCP_DEFINES} -DBSD44SOCKETS
|
2003-09-12 06:49:56 +04:00
|
|
|
CPPFLAGS.io.c= ${X11FLAGS.EXTENSION}
|
|
|
|
CPPFLAGS.lbxio.c= ${X11FLAGS.EXTENSION}
|
|
|
|
CPPFLAGS.oscolor.c= -DNDBM
|
|
|
|
CPPFLAGS.osinit.c= -DADMPATH=\"/var/log/X\%smsgs\"
|
2004-04-05 16:03:25 +04:00
|
|
|
CPPFLAGS.transport.c= -DBSD44SOCKETS -I${X11SRCDIR.xc}/lib/xtrans
|
2004-04-29 06:14:52 +04:00
|
|
|
CPPFLAGS.utils.c= ${XDMCP_DEFINES} ${X11FLAGS.EXTENSION}
|
|
|
|
CPPFLAGS.xdmauth.c= ${XDMCP_DEFINES}
|
2003-09-12 06:49:56 +04:00
|
|
|
COPTS.xdmauth.c= -Wno-error # XXX
|
2004-04-29 06:14:52 +04:00
|
|
|
CPPFLAGS.xdmcp.c= ${XDMCP_DEFINES} -DBSD44SOCKETS
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2003-09-24 03:21:02 +04:00
|
|
|
BUILDOBJS= libc_wrapper.o
|
|
|
|
.PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/shared
|
|
|
|
CPPFLAGS.libc_wrapper.c=-DSELF_CONTAINED_WRAPPER
|
|
|
|
CLEANFILES+= ${BUILDOBJS}
|
|
|
|
realall: ${BUILDOBJS}
|
|
|
|
|
2003-09-12 06:49:56 +04:00
|
|
|
.include <bsd.x11.mk>
|
2003-09-24 03:21:02 +04:00
|
|
|
.include <bsd.lib.mk>
|