1# $NetBSD: Makefile,v 1.18 2019/03/06 05:59:25 mrg Exp $ 2 3.include <bsd.own.mk> 4 5# DEFAULTVT for all arches that are able to switch virtual consoles 6# while in X (currently this needs WSDISPLAY_COMPAT_USL and 7# WSDISPLAY_COMPAT_PCVT, this might change soon) 8.if ${MACHINE_ARCH} == "x86_64" \ 9 || ${MACHINE_ARCH} == "cats" \ 10 || ${MACHINE_ARCH} == "hpcmips" \ 11 || ${MACHINE_ARCH} == "hpcsh" \ 12 || ${MACHINE_ARCH} == "hppa" \ 13 || ${MACHINE_ARCH} == "i386" \ 14 || ${MACHINE_ARCH} == "netwinder" \ 15 || ${MACHINE_ARCH} == "shark" \ 16 || ${MACHINE_ARCH} == "sparc" \ 17 || ${MACHINE_ARCH} == "sparc64" \ 18 || ${MACHINE_ARCH} == "zaurus" 19DEFAULTVT=vt05 20.else 21DEFAULTVT= # defined empty 22.endif 23 24UUDECODE_FILES= NetBSD-flag.png 25SEDSCRIPTS= Xresources Xreset Xservers.ws Xsession Xstartup xdm-config 26.for f in ${SEDSCRIPTS} 27FILESBUILD_$f=yes 28.endfor 29 30.SUFFIXES: .in 31 32.in: 33 ${_MKTARGET_CREATE} 34 rm -f ${.TARGET} 35 ${TOOL_SED} \ 36 -e '/ifdef XPM/d' -e '/endif \/\* XPM \*\//d' \ 37 -e 's,BITMAPDIR,${X11INCDIR}/X11/pixmaps,' \ 38 -e 's,XDM_PIXMAP,NetBSD.xpm,' \ 39 -e 's,XDM_BWPIXMAP,NetBSD-bw.xpm,' \ 40 -e 's,BINDIR,$(X11BINDIR),' \ 41 -e 's,DEFAULTVT,$(DEFAULTVT),' \ 42 -e 's,XDMDIR,$(XDMDIR),' \ 43 -e 's,XDMLOGDIR,$(XDMLOGDIR),' \ 44 -e 's,XDMXAUTHDIR,$(XDMVARDIR),' \ 45 -e 's,XDMPIDDIR,$(XDMPIDDIR),' \ 46 -e 's,XDMCONFIGDIR,$(XDMDIR),' \ 47 -e 's,XDMSCRIPTDIR,$(XDMDIR),' \ 48 -e 's,SU,su -m,' \ 49 -e 's,CHOOSERPATH,$(XDMCHOOSERPATH),' \ 50 -e 's,SHELL_CMD,/bin/sh,' \ 51 -e 's,UTMP_FILE,$(XDMPIDDIR)/utmp,' \ 52 -e 's,UTMP_FLAG,-u $(XDMPIDDIR)/utmp,' \ 53 -e 's,WTMP_FILE,$(XDMLOGDIR)/wtmp,' \ 54 -e 's,WTMP_FLAG,-w $(XDMLOGDIR)/wtmp,' \ 55 -e 's,MKTEMP_COMMAND,/usr/bin/mktemp,' \ 56 -e 's,XCOMM,\#,' \ 57 -e 's,XHASH,\#,' \ 58 -e 's,NLBS$$,\\n\\,' \ 59 -e 's,BS$$,\\,' \ 60 -e 's,/\*\*/,,g' \ 61 < ${.IMPSRC} > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET} 62 63CLEANFILES+= ${SEDSCRIPTS} ${SEDSCRIPTS:=.tmp} 64 65CONFIGFILES+= GiveConsole TakeConsole \ 66 Xaccess Xservers.fs Xsession Xsetup_0 Xwilling 67FILES+= xorg-bw.xpm xorg.xpm \ 68 NetBSD-bw.xpm NetBSD-inv.xpm NetBSD.xpm \ 69 NetBSD-flag.png NetBSD-flag1.xpm NetBSD-flag2.xpm \ 70 ${SEDSCRIPTS} 71FILESDIR= ${XDMDIR} 72FILESDIR_xorg.xpm= ${X11INCDIR}/X11/pixmaps 73FILESDIR_xorg-bw.xpm= ${X11INCDIR}/X11/pixmaps 74FILESDIR_NetBSD.xpm= ${X11INCDIR}/X11/pixmaps 75FILESDIR_NetBSD-flag.png= ${X11INCDIR}/X11/pixmaps 76FILESDIR_NetBSD-flag1.xpm= ${X11INCDIR}/X11/pixmaps 77FILESDIR_NetBSD-flag2.xpm= ${X11INCDIR}/X11/pixmaps 78FILESDIR_NetBSD-bw.xpm= ${X11INCDIR}/X11/pixmaps 79FILESDIR_NetBSD-inv.xpm=${X11INCDIR}/X11/pixmaps 80FILESMODE_GiveConsole= ${BINMODE} 81FILESMODE_TakeConsole= ${BINMODE} 82FILESMODE_Xreset= ${BINMODE} 83FILESMODE_Xsetup_0= ${BINMODE} 84FILESMODE_Xsession= ${BINMODE} 85FILESMODE_Xstartup= ${BINMODE} 86FILESMODE_Xwilling= ${BINMODE} 87 88CONFIGSYMLINKS= Xservers.ws ${XDMDIR}/Xservers 89 90.PATH: ${X11SRCDIR.xdm}/config 91 92.include "../Makefile.xdm" 93 94.include <bsd.x11.mk> 95.include <bsd.prog.mk> 96