1 # $NetBSD: Makefile,v 1.9 2004/05/16 10:25:14 lukem Exp $
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")
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} \
52 -DXDMAUTHDIR
=${XDMVARDIR} \
53 -DXDMLOGDIR
=${XDMLOGDIR} \
54 -DXDMPIDDIR
=${XDMPIDDIR}
57 .
include <bsd.prog.mk
>
58 .
include <bsd.subdir.mk
>