0e5bdd5185
problem; move `hasyyerrored' state flag out of yylex() so that check_{login,modify} can also set it. * check result of check_login for PORT command * set initial timeout before the "setjmp(); for(;;) yyparse()", otherwise an invalid command after login incorrectly sets the timeout to 5 minutes (rather than what was set in ftpd.conf) * replace (char *)0 with NULL * move yyerror() from ftpd.c to ftpcmd.y * remove need for -Dunix, by using the version string from ftpd.c (instead of `BSD-199506') * move all extern-ed vars into extern.h
39 lines
787 B
Makefile
39 lines
787 B
Makefile
# $NetBSD: Makefile,v 1.28 1998/09/06 10:39:40 lukem Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 4/4/94
|
|
|
|
PROG= ftpd
|
|
SRCS= conf.c ftpd.c ftpcmd.y logwtmp.c popen.c
|
|
CPPFLAGS+=-DHASSETPROCTITLE
|
|
DPADD+= ${LIBCRYPT}
|
|
LDADD+= -lcrypt
|
|
MAN= ftpd.8
|
|
MLINKS+=ftpd.8 ftpd.conf.5
|
|
.PATH: ${.CURDIR}/../../usr.bin/ftp ${.CURDIR}/../../usr.bin/login
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.ifdef SKEY
|
|
CPPFLAGS+=-DSKEY
|
|
DPADD+= ${LIBSKEY}
|
|
LDADD+= -lskey
|
|
.endif
|
|
|
|
.ifdef KERBEROS5
|
|
SRCS+= k5login.c
|
|
CPPFLAGS+=-DKERBEROS5
|
|
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
|
|
LDADD+= -lkrb5 -lcrypto -lcom_err
|
|
.elifdef KERBEROS
|
|
SRCS+= klogin.c
|
|
CPPFLAGS+=-DKERBEROS
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
LDADD+= -lkrb -ldes
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
# XXX Work-around a compiler bug for now... can't use -O
|
|
.if (${MACHINE_ARCH} == "powerpc")
|
|
COPTS+=-O0
|
|
.endif
|