Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: Makefile,v 1.17 2019/03/06 12:40:23 nakayama Exp $

.include <bsd.own.mk>

PROG=		xdm
SRCS=		access.c auth.c choose.c daemon.c dm.c dpylist.c \
		error.c file.c genauth.c mitauth.c netaddr.c policy.c \
		protodpy.c reset.c resource.c server.c session.c socket.c \
		util.c xdmauth.c xdmcp.c prngc.c

.if ${MKPIC} == "no"
SRCS+=		Login.c greet.c verify.c
CPPFLAGS+=	-DSTATIC_GREETER_LIB
.endif

CPPFLAGS+=		-DRETSIGTYPE=void
CPPFLAGS.auth.c+=	-DBSD44SOCKETS
CPPFLAGS.socket.c+=	-DBSD44SOCKETS
CPPFLAGS.xdmcp.c+=	-DBSD44SOCKETS
CPPFLAGS.xdmshell.c+=	-DHAS_VFORK
CPPFLAGS.resource.c+=	\
	-DDEF_SERVER_LINE="\":0 local ${X11BINDIR}/X :0\"" \
	-DXRDB_PROGRAM=\"${X11BINDIR}/xrdb\" \
	-DDEF_SESSION="\"${X11BINDIR}/xterm -ls\"" \
	-DDEF_USER_PATH=\"/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${X11BINDIR}\" \
	-DDEF_SYSTEM_PATH=\"/sbin:/usr/sbin:/bin:/usr/bin:${X11BINDIR}\" \
	-DDEF_SYSTEM_SHELL=\"/bin/sh\" \
	-DDEF_FAILSAFE_CLIENT=\"${X11BINDIR}/xterm\" \
	-DDEF_XDM_CONFIG=\"${XDMDIR}/xdm-config\" \
	-DDEF_AUTH_DIR=\"${XDMVARDIR}\" \
	-DDEF_GREETER_LIB=\"${XDMGREETERLIB}\"

LDADD+=		-lXau -lXdmcp -lXft -lXinerama -lXpm
LDADD+=		-lXmu -lXt -lSM -lICE -lXext -lXrender -lX11
LDADD+=		-lcrypt -lfreetype -lutil
DPADD+=		${LIBXAU} ${LIBXDMCP} ${LIBXFT} ${LIBXINERAMA} ${LIBXPM}
DPADD+=		${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11}
DPADD+=		${LIBCRYPT} ${LIBFREETYPE} ${LIBUTIL}

.if (${USE_PAM} != "no")
LDADD+= -lpam ${PAM_STATIC_LDADD}
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
.endif

SUBDIR+=	chooser config
TARGETS+=	configinstall

.include "Makefile.xdm"

CPPFLAGS.resource.c+=	-DDEF_CHOOSER=\"${XDMCHOOSERPATH}\"

.include "../../xorg-pkg-ver.mk"

X11EXTRAMANDEFS+= \
		-e 's,ARC4_RANDOM,1,' \
		-e 's,BINDIR,$(X11BINDIR),' \
		-e 's,CHOOSERPATH,$(XDMCHOOSERPATH),' \
		-e 's,DGREETERLIBPATH,$(XDMGREETERLIB),' \
		-e 's,XDMDIR,$(XDMDIR),' \
		-e 's,XDMXAUTHDIR,$(XDMVARDIR),' \
		-e 's,XDMLOGDIR,$(XDMLOGDIR),' \
		-e 's,XDMPIDDIR,$(XDMPIDDIR),'

.include <bsd.x11.mk>
.include <bsd.prog.mk>
.include <bsd.subdir.mk>