freebsd-src/libexec/ftpd/Makefile
Yaroslav Tykhiy 31ee80d88a Fix compilation of ftpcmd.y without -DINET6.
Respect MK_INET6_SUPPORT in Makefile.

Requested by:	Attila Nagy <bra at fsn dot hu>
MFC after:	1 week
2006-06-05 15:50:34 +00:00

41 lines
737 B
Makefile

# @(#)Makefile 8.2 (Berkeley) 4/4/94
# $FreeBSD$
.include <bsd.own.mk>
PROG= ftpd
MAN= ftpd.8 ftpchroot.5
SRCS= ftpd.c ftpcmd.y logwtmp.c popen.c
CFLAGS+=-DSETPROCTITLE -DLOGIN_CAP -DVIRTUAL_HOSTING
CFLAGS+=-I${.CURDIR}
YFLAGS=
WARNS?= 2
WFORMAT=0
DPADD= ${LIBUTIL} ${LIBCRYPT}
LDADD= -lutil -lcrypt
# XXX Kluge! Conversation mechanism needs to be fixed.
DPADD+= ${LIBOPIE} ${LIBMD}
LDADD+= -lopie -lmd
LSDIR= ../../bin/ls
.PATH: ${.CURDIR}/${LSDIR}
SRCS+= ls.c cmp.c print.c util.c
CFLAGS+=-Dmain=ls_main -I${.CURDIR}/${LSDIR}
DPADD+= ${LIBM}
LDADD+= -lm
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=-DINET6
.endif
.if ${MK_PAM_SUPPORT} != "no"
CFLAGS+=-DUSE_PAM
DPADD+= ${LIBPAM}
LDADD+= ${MINUSLPAM}
.endif
.include <bsd.prog.mk>