NetBSD/x11/bin/xdm/config/Makefile

56 lines
1.6 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.12 2009/02/14 13:48:17 abs Exp $
.include <bsd.own.mk>
CPPSCRIPTS= Xresources Xservers.ws xdm-config
CPPSCRIPTFLAGS_Xresources= -DXPM -DBITMAPDIR=${X11INCDIR}/X11/pixmaps \
-DXDM_PIXMAP=NetBSD.xpm \
-DXDM_BWPIXMAP=NetBSDbw.xpm
# native only gives DEFAULTVT for i386 and amd64.
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "cats"
DEFAULTVT=vt05
.else
DEFAULTVT= # defined empty
.endif
CPPSCRIPTFLAGS_Xservers.ws= -DBINDIR=${X11BINDIR} -DDEFAULTVT=${DEFAULTVT}
CPPSCRIPTFLAGS_xdm-config= -DXDMDIR=${XDMDIR} \
-DXDMAUTHDIR=${XDMVARDIR} \
-DXDMLOGDIR=${XDMLOGDIR} \
-DXDMPIDDIR=${XDMPIDDIR} \
-DSU="su -m"
CONFIGFILES= GiveConsole TakeConsole \
Xaccess Xservers.fs Xsession Xsetup_0 Xwilling \
${CPPSCRIPTS}
FILES= NetBSD.xpm NetBSDbw.xpm NetBSDinv.xpm \
XFree86.xpm XFree86bw.xpm
FILESDIR= ${XDMDIR}
FILESDIR_NetBSD.xpm= ${X11INCDIR}/X11/pixmaps
FILESDIR_NetBSDbw.xpm= ${X11INCDIR}/X11/pixmaps
FILESDIR_NetBSDinv.xpm= ${X11INCDIR}/X11/pixmaps
FILESDIR_XFree86.xpm= ${X11INCDIR}/X11/pixmaps
FILESDIR_XFree86bw.xpm= ${X11INCDIR}/X11/pixmaps
FILESMODE_GiveConsole= ${BINMODE}
FILESMODE_TakeConsole= ${BINMODE}
FILESMODE_Xsetup_0= ${BINMODE}
FILESMODE_Xsession= ${BINMODE}
FILESMODE_Xwilling= ${BINMODE}
CONFIGSYMLINKS= Xservers.ws ${XDMDIR}/Xservers
BUILDSYMLINKS= Xres.cpp Xresources.cpp \
Xserv.ws.cpp Xservers.ws.cpp \
xdm-conf.cpp xdm-config.cpp
.PATH: ${X11SRCDIR.xc}/programs/xdm/config
.include "../Makefile.xdm"
CPPSCRIPTFLAGS_xdm-config+= -DCHOOSERPATH=${XDMCHOOSERPATH}
.include <bsd.x11.mk>
.include <bsd.prog.mk>