2004-05-16 14:25:13 +04:00
|
|
|
# $NetBSD: Makefile,v 1.5 2004/05/16 10:25:14 lukem Exp $
|
2003-09-12 06:49:56 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2004-04-24 07:42:07 +04:00
|
|
|
.include "../../Xserver/Makefile.common"
|
|
|
|
|
2003-09-12 06:49:56 +04:00
|
|
|
PROG= xinit
|
|
|
|
MAN= xinit.1 startx.1
|
|
|
|
|
2004-05-16 14:25:13 +04:00
|
|
|
XINITDIR= ${X11ETCDIR}/xinit
|
|
|
|
|
2004-04-24 07:42:07 +04:00
|
|
|
CPPFLAGS+= -DHAS_VFORK ${X11FLAGS.CONNECTION} -DBINDIR=\"${X11BINDIR}\" \
|
|
|
|
|
|
|
|
.if ${XSERVER_XFREE86} != "no"
|
|
|
|
CPPFLAGS+= -DXFREE86
|
|
|
|
.endif
|
2003-09-12 06:49:56 +04:00
|
|
|
|
|
|
|
CPPSCRIPTS= startx xinitrc
|
2004-05-16 14:25:13 +04:00
|
|
|
CPPSCRIPTFLAGS_xinitrc= -DXINITDIR=${XINITDIR} -DBINDIR=${X11BINDIR}
|
|
|
|
CPPSCRIPTFLAGS_startx= -DXINITDIR=${XINITDIR} -DBINDIR=${X11BINDIR} \
|
2004-04-24 07:42:07 +04:00
|
|
|
-DHAS_COOKIE_MAKER \
|
|
|
|
-DMK_COOKIE='dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"'
|
|
|
|
|
2003-09-12 06:49:56 +04:00
|
|
|
SCRIPTS= startx
|
2004-05-16 14:25:13 +04:00
|
|
|
CONFIGFILES= xinitrc
|
|
|
|
FILESDIR= ${XINITDIR}
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2003-09-14 01:50:50 +04:00
|
|
|
LDADD+= -lXmuu -lXt -lSM -lICE -lXext -lX11
|
|
|
|
DPADD+= ${LIBXMUU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11}
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2004-05-16 14:25:13 +04:00
|
|
|
X11EXTRAMANDEFS=-D__xinitdir__=${XINITDIR}
|
2003-09-12 06:49:56 +04:00
|
|
|
|
|
|
|
.PATH: ${X11SRCDIR.xc}/programs/${PROG}
|
|
|
|
|
|
|
|
.include <bsd.x11.mk>
|
2003-09-14 00:17:57 +04:00
|
|
|
.include <bsd.prog.mk>
|