1 # $NetBSD: Makefile,v 1.5 2009/05/06 08:49:37 mrg 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
+= -DRETSIGTYPE
=void
13 CPPFLAGS.auth.c
= -DBSD44SOCKETS
14 CPPFLAGS.socket.c
= -DBSD44SOCKETS
15 CPPFLAGS.xdmcp.c
= -DBSD44SOCKETS
16 CPPFLAGS.xdmshell.c
= -DHAS_VFORK
17 CPPFLAGS.resource.c
= \
18 -DDEF_SERVER_LINE
="\":0 local ${X11BINDIR}/X :0\"" \
19 -DXRDB_PROGRAM
=\"${X11BINDIR}/xrdb
\" \
20 -DDEF_SESSION
="\"${X11BINDIR}/xterm -ls\"" \
21 -DDEF_USER_PATH
=\"/bin
:/usr
/bin
:/usr
/pkg
/bin
:/usr
/local
/bin
:${X11BINDIR}\" \
22 -DDEF_SYSTEM_PATH
=\"/sbin
:/usr
/sbin
:/bin
:/usr
/bin
:${X11BINDIR}\" \
23 -DDEF_SYSTEM_SHELL
=\"/bin
/sh
\" \
24 -DDEF_FAILSAFE_CLIENT
=\"${X11BINDIR}/xterm
\" \
25 -DDEF_XDM_CONFIG
=\"${XDMDIR}/xdm-config
\" \
26 -DDEF_AUTH_DIR
=\"${XDMVARDIR}\" \
27 -DDEF_GREETER_LIB
=\"${XDMGREETERLIB}\"
29 LDADD
+= -lXau
-lXdmcp
-lXft
-lXinerama
-lXpm
30 LDADD
+= -lXmu
-lXt
-lSM
-lICE
-lXext
-lX11
31 LDADD
+= -lcrypt
-lfreetype
32 DPADD
+= ${LIBXAU} ${LIBXDMCP} ${LIBXFT} ${LIBXINERAMA} ${LIBXPM}
33 DPADD
+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11}
34 DPADD
+= ${LIBCRYPT} ${LIBFREETYPE}
36 .if
(${USE_PAM} != "no")
37 LDADD
+= -lpam
${PAM_STATIC_LDADD}
38 DPADD
+= ${LIBPAM} ${PAM_STATIC_DPADD}
41 SUBDIR
= chooser config
42 TARGETS
+= configinstall
44 .PATH
: ${X11SRCDIR.
${PROG}}
45 .PATH
: ${X11SRCDIR.
${PROG}}/greeter
47 BUILDSYMLINKS
+= xdm.man.
cpp xdm.man
49 .
include "Makefile.xdm"
51 CPPFLAGS.resource.c
+= -DDEF_CHOOSER
=\"${XDMCHOOSERPATH}\"
52 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}/freetype2
55 X11EXTRAMANDEFS
+= -DARC4_RANDOM \
56 -DCHOOSERPATH
=${XDMCHOOSERPATH} \
57 -DGREETERLIBPATH
=${XDMGREETERLIB} \
59 -DXDMXAUTHDIR
=${XDMVARDIR} \
60 -DXDMLOGDIR
=${XDMLOGDIR} \
61 -DXDMPIDDIR
=${XDMPIDDIR}
64 .
include <bsd.prog.mk
>
65 .
include <bsd.subdir.mk
>