1 # $NetBSD: Makefile,v 1.13 2013/06/17 15:58:40 christos 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 prngc.c
12 SRCS
+= Login.c greet.c verify.c
13 CPPFLAGS
+= -DSTATIC_GREETER_LIB
16 CPPFLAGS
+= -DRETSIGTYPE
=void
17 CPPFLAGS.auth.c
= -DBSD44SOCKETS
18 CPPFLAGS.socket.c
= -DBSD44SOCKETS
19 CPPFLAGS.xdmcp.c
= -DBSD44SOCKETS
20 CPPFLAGS.xdmshell.c
= -DHAS_VFORK
21 CPPFLAGS.resource.c
= \
22 -DDEF_SERVER_LINE
="\":0 local ${X11BINDIR}/X :0\"" \
23 -DXRDB_PROGRAM
=\"${X11BINDIR}/xrdb
\" \
24 -DDEF_SESSION
="\"${X11BINDIR}/xterm -ls\"" \
25 -DDEF_USER_PATH
=\"/bin
:/usr
/bin
:/usr
/pkg
/bin
:/usr
/local
/bin
:${X11BINDIR}\" \
26 -DDEF_SYSTEM_PATH
=\"/sbin
:/usr
/sbin
:/bin
:/usr
/bin
:${X11BINDIR}\" \
27 -DDEF_SYSTEM_SHELL
=\"/bin
/sh
\" \
28 -DDEF_FAILSAFE_CLIENT
=\"${X11BINDIR}/xterm
\" \
29 -DDEF_XDM_CONFIG
=\"${XDMDIR}/xdm-config
\" \
30 -DDEF_AUTH_DIR
=\"${XDMVARDIR}\" \
31 -DDEF_GREETER_LIB
=\"${XDMGREETERLIB}\"
33 LDADD
+= -lXau
-lXdmcp
-lXft
-lXinerama
-lXpm
34 LDADD
+= -lXmu
-lXt
-lSM
-lICE
-lXext
-lXrender
-lX11
35 LDADD
+= -lcrypt
-lfreetype
-lutil
36 DPADD
+= ${LIBXAU} ${LIBXDMCP} ${LIBXFT} ${LIBXINERAMA} ${LIBXPM}
37 DPADD
+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11}
38 DPADD
+= ${LIBCRYPT} ${LIBFREETYPE} ${LIBUTIL}
40 .if
(${USE_PAM} != "no")
41 LDADD
+= -lpam
${PAM_STATIC_LDADD}
42 DPADD
+= ${LIBPAM} ${PAM_STATIC_DPADD}
46 TARGETS
+= configinstall
48 .
include "Makefile.xdm"
50 CPPFLAGS.resource.c
+= -DDEF_CHOOSER
=\"${XDMCHOOSERPATH}\"
53 X11EXTRAMANDEFS
+= -DARC4_RANDOM \
54 -DCHOOSERPATH
=${XDMCHOOSERPATH} \
55 -DGREETERLIBPATH
=${XDMGREETERLIB} \
57 -DXDMXAUTHDIR
=${XDMVARDIR} \
58 -DXDMLOGDIR
=${XDMLOGDIR} \
59 -DXDMPIDDIR
=${XDMPIDDIR}
62 .
include <bsd.prog.mk
>
63 .
include <bsd.subdir.mk
>