world: Attempt to fix NOSHARED MINUSLPAM handling.
[dragonfly.git] / libexec / ftpd / Makefile
blobac1cde1b605a6f68ccd0462f3e4ba9c91c48d51a
1 # @(#)Makefile 8.2 (Berkeley) 4/4/94
2 # $FreeBSD: src/libexec/ftpd/Makefile,v 1.57 2006/06/05 15:50:34 yar Exp $
4 PROG= ftpd
5 MAN= ftpd.8 ftpchroot.5
6 SRCS= ftpd.c ftpcmd.y logwtmp.c popen.c
8 CFLAGS+=-DSETPROCTITLE -DLOGIN_CAP -DVIRTUAL_HOSTING
9 CFLAGS+=-I${.CURDIR}
10 YFLAGS=
11 WARNS?= 2
12 WFORMAT=0
14 DPADD= ${LIBUTIL} ${LIBCRYPT}
15 LDADD= -lutil -lcrypt
17 DPADD+= ${LIBOPIE} ${LIBMD}
18 LDADD+= -lopie -lmd
20 LSDIR= ../../bin/ls
21 .PATH: ${.CURDIR}/${LSDIR}
22 SRCS+= ls.c cmp.c print.c util.c
23 CFLAGS+=-Dmain=ls_main -I${.CURDIR}/${LSDIR}
24 DPADD+= ${LIBM}
25 LDADD+= -lm
27 # XXX sys/md5.h shim errata for bootstrap REMOVE_OPENSSL_FILES
28 CFLAGS+= -I${_SHLIBDIRPREFIX}/usr/include/priv
30 .PATH: ${.CURDIR}/../../usr.sbin/nscd
31 SRCS+= pidfile.c
32 CFLAGS+=-I${.CURDIR}/../../usr.sbin/nscd
34 .if !defined(NO_INET6)
35 CFLAGS+=-DINET6
36 .endif
38 .if !defined(NO_PAM)
39 CFLAGS+=-DUSE_PAM
40 DPADD+= ${LIBPAM}
41 LDADD+= ${MINUSLPAM}
42 LDFLAGS+= ${LDFLAGSPAM}
43 .endif
45 .include <bsd.prog.mk>