#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved.  The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
#	@(#)Makefile	5.2 (Berkeley) 2/3/86
#
ALL=	ftpd.o ftpcmd.o glob.o vers.o
ROOT =
INSDIR = $(ROOT)
CFLAGS=	-O -I/bsd -Dsignal=_sigset -Dlongjmp=siglongjmp

ftpd:	${ALL}
	${CC} -o ftpd ${ALL} -lbsd -lsec -lomalloc

vers.o:	ftpd.c ftpcmd.y
	sh newvers.sh
	${CC} -c vers.c

install:
	install -s ftpd ${INSDIR}/etc/ftpd

clean:
	rm -f ftpd *.o *.s errs core a.out t.? yacc.* y.tab.c
