2005-03-09 06:11:21 +03:00
|
|
|
# $NetBSD: Makefile,v 1.55 2005/03/09 03:11:21 christos Exp $
|
1995-04-11 06:44:45 +04:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/4/94
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2002-09-18 10:24:33 +04:00
|
|
|
.include <bsd.own.mk>
|
2002-08-19 17:54:34 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= ftpd
|
2000-06-14 17:44:21 +04:00
|
|
|
SRCS= cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c
|
2005-02-20 04:45:17 +03:00
|
|
|
CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP
|
1999-12-07 08:30:53 +03:00
|
|
|
DPADD+= ${LIBCRYPT} ${LIBUTIL}
|
|
|
|
LDADD+= -lcrypt -lutil
|
1999-12-16 04:16:04 +03:00
|
|
|
MAN= ftpd.conf.5 ftpusers.5 ftpd.8
|
1999-12-16 10:05:18 +03:00
|
|
|
MLINKS= ftpusers.5 ftpchroot.5
|
1999-05-17 19:14:53 +04:00
|
|
|
|
|
|
|
# for `internal' ls
|
|
|
|
SRCS+= ls.c cmp.c print.c stat_flags.c util.c
|
2002-08-19 17:54:34 +04:00
|
|
|
.PATH: ${NETBSDSRCDIR}/bin/ls
|
1993-10-07 05:16:39 +03:00
|
|
|
|
2005-01-10 05:58:58 +03:00
|
|
|
.if (${USE_INET6} != "no")
|
1999-07-02 09:52:14 +04:00
|
|
|
CPPFLAGS+=-DINET6
|
2005-01-10 05:58:58 +03:00
|
|
|
.endif
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2001-12-01 13:25:29 +03:00
|
|
|
WARNS=2
|
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${USE_SKEY} != "no")
|
1997-10-12 17:08:41 +04:00
|
|
|
CPPFLAGS+=-DSKEY
|
|
|
|
DPADD+= ${LIBSKEY}
|
|
|
|
LDADD+= -lskey
|
1997-10-12 17:09:11 +04:00
|
|
|
.endif
|
2005-02-20 04:45:17 +03:00
|
|
|
.if (${USE_PAM} != "no")
|
|
|
|
CPPFLAGS+=-DUSE_PAM
|
2005-03-04 23:41:08 +03:00
|
|
|
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
|
|
|
|
LDADD+= -lpam ${PAM_STATIC_LDADD}
|
2005-02-20 04:45:17 +03:00
|
|
|
.endif
|
1997-10-12 17:08:41 +04:00
|
|
|
|
2000-03-05 09:12:19 +03:00
|
|
|
ftpd.o ftpcmd.o: version.h
|
1999-12-18 08:51:34 +03:00
|
|
|
|
2003-07-23 12:01:24 +04:00
|
|
|
#.if (${USE_KERBEROS} != "no")
|
|
|
|
#
|
2002-08-19 17:54:34 +04:00
|
|
|
#.PATH: ${NETBSDSRCDIR}/usr.bin/login
|
2003-07-23 12:01:24 +04:00
|
|
|
#
|
2000-06-20 10:00:24 +04:00
|
|
|
#SRCS+= k5login.c
|
|
|
|
#CPPFLAGS+=-DKERBEROS5
|
2003-07-23 12:01:24 +04:00
|
|
|
#CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
|
|
|
|
#DPADD+= ${LIBKRB5} ${LIBASN1}
|
|
|
|
#LDADD+= -lkrb5 -lasn1
|
|
|
|
#
|
|
|
|
#SRCS+= klogin.c
|
|
|
|
#CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
|
|
|
|
#DPADD+= ${LIBKRB}
|
|
|
|
#LDADD+= -lkrb
|
|
|
|
#
|
2005-03-09 06:11:21 +03:00
|
|
|
#DPADD+= ${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
|
|
|
|
#LDADD+= -lcrypto -lcrypt -lroken -lcom_err
|
2003-07-23 12:01:24 +04:00
|
|
|
#
|
2000-06-20 10:00:24 +04:00
|
|
|
#.endif
|
1999-07-13 02:04:09 +04:00
|
|
|
|
1997-10-12 18:06:21 +04:00
|
|
|
.include <bsd.prog.mk>
|