Home | History | Annotate | Line # | Download | only in config
Makefile revision 1.15
      1 #	$NetBSD: Makefile,v 1.15 2019/03/05 08:35:35 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"
     19 DEFAULTVT=vt05
     20 .else
     21 DEFAULTVT=	# defined empty
     22 .endif
     23 
     24 UUDECODE_FILES=	NetBSD-flag.png
     25 SEDSCRIPTS=	Xresources Xreset Xservers.ws Xsession Xstartup xdm-config 
     26 
     27 SUFFIXES = .in
     28 
     29 .in:
     30 	$(TOOL_SED) \
     31 		-e '/ifdef XPM/d' -e '/endif \/\* XPM \*\//d' \
     32 		-e 's,BITMAPDIR,${X11INCDIR}/X11/pixmaps,' \
     33 		-e 's,XDM_PIXMAP,NetBSD.xpm,' \
     34 		-e 's,XDM_BWPIXMAP,NetBSD-bw.xpm,' \
     35 		-e 's,BINDIR,$(X11BINDIR),' \
     36 		-e 's,DEFAULTVT,$(DEFAULTVT),' \
     37 		-e 's,XDMDIR,$(XDMDIR),'
     38 		-e 's,XDMLOGDIR,$(XDMLOGDIR),' \
     39 		-e 's,XDMXAUTHDIR,$(XDMVARDIR),' \
     40 		-e 's,XDMPIDDIR,$(XDMPIDDIR),' \
     41 		-e 's,XDMCONFIGDIR,$(XDMDIR),' \
     42 		-e 's,XDMSCRIPTDIR,$(XDMDIR),' \
     43 		-e 's,SU,su -m,' \
     44 		-e 's,CHOOSERPATH,$(XDMCHOOSERPATH),' \
     45 		-e 's,SHELL_CMD,/bin/sh,' \
     46 		-e 's,UTMP_FILE,$(XDMPIDDIR)/utmp,' \
     47 		-e 's,UTMP_FLAG,-u $(XDMPIDDIR)/utmp,' \
     48 		-e 's,WTMP_FILE,$(XDMLOGDIR)/wtmp,' \
     49 		-e 's,WTMP_FLAG,-w $(XDMLOGDIR)/wtmp,' \
     50 		-e 's,MKTEMP_COMMAND,/usr/bin/mktemp,' \
     51 		-e 's,XCOMM,\#,' \
     52 		-e 's,XHASH,\#,' \
     53 		-e 's,NLBS,\\n\\,' \
     54 		-e 's,BS,\\,' \
     55 		-e 's,/\*\*/,,g'
     56 
     57 CONFIGFILES=		GiveConsole TakeConsole \
     58 			Xaccess Xservers.fs Xsession Xsetup_0 Xwilling \
     59 			${SEDSCRIPTS} 
     60 FILES=			xorg-bw.xpm xorg.xpm \
     61 			NetBSD-bw.xpm NetBSD-inv.xpm NetBSD.xpm	\
     62 			NetBSD-flag.png NetBSD-flag1.xpm NetBSD-flag2.xpm
     63 FILESDIR=		${XDMDIR}
     64 FILESDIR_xorg.xpm=	${X11INCDIR}/X11/pixmaps
     65 FILESDIR_xorg-bw.xpm=	${X11INCDIR}/X11/pixmaps
     66 FILESDIR_NetBSD.xpm=	${X11INCDIR}/X11/pixmaps
     67 FILESDIR_NetBSD-flag.png=	${X11INCDIR}/X11/pixmaps
     68 FILESDIR_NetBSD-flag1.xpm=	${X11INCDIR}/X11/pixmaps
     69 FILESDIR_NetBSD-flag2.xpm=	${X11INCDIR}/X11/pixmaps
     70 FILESDIR_NetBSD-bw.xpm=	${X11INCDIR}/X11/pixmaps
     71 FILESDIR_NetBSD-inv.xpm=${X11INCDIR}/X11/pixmaps
     72 FILESMODE_GiveConsole=	${BINMODE}
     73 FILESMODE_TakeConsole=	${BINMODE}
     74 FILESMODE_Xreset=	${BINMODE}
     75 FILESMODE_Xsetup_0=	${BINMODE}
     76 FILESMODE_Xsession=	${BINMODE}
     77 FILESMODE_Xstartup=	${BINMODE}
     78 FILESMODE_Xwilling=	${BINMODE}
     79 
     80 CONFIGSYMLINKS=		Xservers.ws ${XDMDIR}/Xservers
     81 
     82 .PATH:		${X11SRCDIR.xdm}/config
     83 
     84 .include "../Makefile.xdm"
     85 
     86 .include <bsd.x11.mk>
     87 .include <bsd.prog.mk>
     88