1# $NetBSD: Makefile,v 1.56 2006/03/23 20:14:16 wiz Exp $
2# @(#)Makefile 8.2 (Berkeley) 4/4/94
3
4.include <bsd.own.mk>
5
6PROG= ftpd
7SRCS= cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c
8CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP
9DPADD+= ${LIBCRYPT} ${LIBUTIL}
10LDADD+= -lcrypt -lutil
11MAN= ftpd.conf.5 ftpusers.5 ftpd.8
12MLINKS= ftpusers.5 ftpchroot.5
13
14# for `internal' ls
15SRCS+= ls.c cmp.c print.c stat_flags.c util.c
16.PATH: ${NETBSDSRCDIR}/bin/ls
17
18.if (${USE_INET6} != "no")
19CPPFLAGS+=-DINET6
20.endif
21
22WARNS=2
23
24.if (${USE_SKEY} != "no")
25CPPFLAGS+=-DSKEY
26DPADD+= ${LIBSKEY}
27LDADD+= -lskey
28.endif
29.if (${USE_PAM} != "no")
30CPPFLAGS+=-DUSE_PAM
31DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
32LDADD+= -lpam ${PAM_STATIC_LDADD}
33.endif
34
35ftpd.o ftpcmd.o: version.h
36
37#.if (${USE_KERBEROS} != "no")
38#
39#.PATH: ${NETBSDSRCDIR}/usr.bin/login
40#
41#SRCS+= k5login.c
42#CPPFLAGS+=-DKERBEROS5
43#CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
44#DPADD+= ${LIBKRB5} ${LIBASN1}
45#LDADD+= -lkrb5 -lasn1
46#
47#DPADD+= ${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
48#LDADD+= -lcrypto -lcrypt -lroken -lcom_err
49#
50#.endif
51
52.include <bsd.prog.mk>
2# @(#)Makefile 8.2 (Berkeley) 4/4/94
3
4.include <bsd.own.mk>
5
6PROG= ftpd
7SRCS= cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c
8CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP
9DPADD+= ${LIBCRYPT} ${LIBUTIL}
10LDADD+= -lcrypt -lutil
11MAN= ftpd.conf.5 ftpusers.5 ftpd.8
12MLINKS= ftpusers.5 ftpchroot.5
13
14# for `internal' ls
15SRCS+= ls.c cmp.c print.c stat_flags.c util.c
16.PATH: ${NETBSDSRCDIR}/bin/ls
17
18.if (${USE_INET6} != "no")
19CPPFLAGS+=-DINET6
20.endif
21
22WARNS=2
23
24.if (${USE_SKEY} != "no")
25CPPFLAGS+=-DSKEY
26DPADD+= ${LIBSKEY}
27LDADD+= -lskey
28.endif
29.if (${USE_PAM} != "no")
30CPPFLAGS+=-DUSE_PAM
31DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
32LDADD+= -lpam ${PAM_STATIC_LDADD}
33.endif
34
35ftpd.o ftpcmd.o: version.h
36
37#.if (${USE_KERBEROS} != "no")
38#
39#.PATH: ${NETBSDSRCDIR}/usr.bin/login
40#
41#SRCS+= k5login.c
42#CPPFLAGS+=-DKERBEROS5
43#CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
44#DPADD+= ${LIBKRB5} ${LIBASN1}
45#LDADD+= -lkrb5 -lasn1
46#
47#DPADD+= ${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
48#LDADD+= -lcrypto -lcrypt -lroken -lcom_err
49#
50#.endif
51
52.include <bsd.prog.mk>