Sync usage with man page.
[netbsd-mini2440.git] / x11 / bin / xdm / Makefile
bloba760e891bc22a02ba322207705ba4807a9ca9ec1
1 # $NetBSD: Makefile,v 1.9 2004/05/16 10:25:14 lukem Exp $
3 .include <bsd.own.mk>
5 PROG= xdm
6 SRCS= access.c auth.c choose.c daemon.c dm.c dpylist.c \
7 error.c file.c genauth.c mitauth.c netaddr.c policy.c \
8 protodpy.c reset.c resource.c server.c session.c socket.c \
9 streams.c util.c xdmauth.c xdmcp.c \
10 Login.c greet.c verify.c
12 CPPFLAGS.auth.c= -DBSD44SOCKETS
13 CPPFLAGS.socket.c= -DBSD44SOCKETS
14 CPPFLAGS.xdmcp.c= -DBSD44SOCKETS
15 CPPFLAGS.xdmshell.c= -DHAS_VFORK
16 CPPFLAGS.resource.c= \
17 -DDEF_SERVER_LINE="\":0 local ${X11BINDIR}/X :0\"" \
18 -DXRDB_PROGRAM=\"${X11BINDIR}/xrdb\" \
19 -DDEF_SESSION="\"${X11BINDIR}/xterm -ls\"" \
20 -DDEF_USER_PATH=\"/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${X11BINDIR}\" \
21 -DDEF_SYSTEM_PATH=\"/sbin:/usr/sbin:/bin:/usr/bin:${X11BINDIR}\" \
22 -DDEF_SYSTEM_SHELL=\"/bin/sh\" \
23 -DDEF_FAILSAFE_CLIENT=\"${X11BINDIR}/xterm\" \
24 -DDEF_XDM_CONFIG=\"${XDMDIR}/xdm-config\" \
25 -DDEF_AUTH_DIR=\"${XDMVARDIR}\" \
26 -DDEF_GREETER_LIB=\"${XDMGREETERLIB}\"
28 LDADD+= -lXau -lXdmcp -lXinerama -lXpm -lXmu
29 LDADD+= -lXt -lSM -lICE -lXext -lX11 -lcrypt
30 DPADD+= ${LIBXAU} ${LIBXDMCP} ${LIBXINERAMA} ${LIBXPM} ${LIBXMU}
31 DPADD+= ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} ${LIBCRYPT}
32 .if (${USE_PAM} != "no")
33 CPPFLAGS+= -DUSE_PAM
34 LDADD+= -lpam
35 DPADD+= ${LIBPAM}
36 .endif
38 SUBDIR= chooser config sessreg
39 # SUBDIR+= xdmshell # XXX
40 TARGETS+= configinstall
42 .PATH: ${X11SRCDIR.xc}/programs/${PROG}/greeter
44 .include "Makefile.xdm"
46 CPPFLAGS.resource.c+= -DDEF_CHOOSER=\"${XDMCHOOSERPATH}\"
48 X11EXTRAMANDEFS+= -DARC4_RANDOM \
49 -DCHOOSERPATH=${XDMCHOOSERPATH} \
50 -DGREETERLIBPATH=${XDMGREETERLIB} \
51 -DXDMDIR=${XDMDIR} \
52 -DXDMAUTHDIR=${XDMVARDIR} \
53 -DXDMLOGDIR=${XDMLOGDIR} \
54 -DXDMPIDDIR=${XDMPIDDIR}
56 .include <bsd.x11.mk>
57 .include <bsd.prog.mk>
58 .include <bsd.subdir.mk>