<ifaddrs.h>: Clean it up a bit.
[dragonfly.git] / libexec / ftpd / Makefile
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 $
3
4 PROG=   ftpd
5 MAN=    ftpd.8 ftpchroot.5
6 SRCS=   ftpd.c ftpcmd.y logwtmpx.c popen.c
7
8 CFLAGS+=-DSETPROCTITLE -DLOGIN_CAP -DVIRTUAL_HOSTING
9 CFLAGS+=-I${.CURDIR}
10 YFLAGS=
11 WARNS?= 2
12
13 DPADD=  ${LIBUTIL} ${LIBCRYPT}
14 LDADD=  -lutil -lcrypt
15
16 LSDIR=  ../../bin/ls
17 .PATH:  ${.CURDIR}/${LSDIR}
18 SRCS+=  ls.c cmp.c print.c util.c
19 CFLAGS+=-Dmain=ls_main -I${.CURDIR}/${LSDIR}
20 DPADD+= ${LIBM}
21 LDADD+= -lm
22
23 .if !defined(NO_INET6)
24 CFLAGS+=-DINET6
25 .endif
26
27 .if !defined(NO_PAM)
28 CFLAGS+=-DUSE_PAM
29 DPADD+= ${LIBPAM}
30 LDADD+= ${MINUSLPAM}
31 LDFLAGS+= ${LDFLAGSPAM}
32 .endif
33
34 .if defined(NOMD5)
35 CFLAGS+= -DNOMD5
36 .else
37 SRCS+= site_md5.c
38 CFLAGS+=        ${PRIVATELIB_CFLAGS}
39 DPADD+=         ${LIBCRYPTO}
40 LDADD+=         -lprivate_crypto
41 LDFLAGS+=       ${PRIVATELIB_LDFLAGS}
42 .endif
43
44 .include <bsd.prog.mk>