Remove building with NOCRYPTO option
[minix.git] / external / mit / xorg / bin / xdm / Makefile
blob786591369d68092fb1354204882485bc04c84f75
1 # $NetBSD: Makefile,v 1.13 2013/06/17 15:58:40 christos 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 prngc.c
11 .if ${MKPIC} == "no"
12 SRCS+= Login.c greet.c verify.c
13 CPPFLAGS+= -DSTATIC_GREETER_LIB
14 .endif
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}
43 .endif
45 SUBDIR+= config
46 TARGETS+= configinstall
48 .include "Makefile.xdm"
50 CPPFLAGS.resource.c+= -DDEF_CHOOSER=\"${XDMCHOOSERPATH}\"
52 X11MANCPP= yes
53 X11EXTRAMANDEFS+= -DARC4_RANDOM \
54 -DCHOOSERPATH=${XDMCHOOSERPATH} \
55 -DGREETERLIBPATH=${XDMGREETERLIB} \
56 -DXDMDIR=${XDMDIR} \
57 -DXDMXAUTHDIR=${XDMVARDIR} \
58 -DXDMLOGDIR=${XDMLOGDIR} \
59 -DXDMPIDDIR=${XDMPIDDIR}
61 .include <bsd.x11.mk>
62 .include <bsd.prog.mk>
63 .include <bsd.subdir.mk>