# Makefile for ftpd
#
# 01/25/96 Initial Release	Michael Temari, <temari@ix.netcom.com>
#

CFLAGS=	-O -D_MINIX -D_POSIX_SOURCE -m
LDFLAGS=-i
BINDIR=	/usr/bin
PROG=	in.ftpd

OBJS=	ftpd.o access.o file.o net.o

all:	$(PROG)

$(PROG):	$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS)
	install -S 8kw $@

clean:
	rm -f $(PROG) $(OBJS)

install:	$(BINDIR)/$(PROG) $(BINDIR)/setup.anonftp

$(BINDIR)/$(PROG):	$(PROG)
	install -cs -o bin $? $@

$(BINDIR)/setup.anonftp:	setup.anonftp
	install -c -o bin $? $@

ftpd.o:		ftpd.c   ftpd.h access.h file.h net.h
access.o:	access.c ftpd.h access.h
file.o:		file.c   ftpd.h access.h file.h net.h
net.o:		net.c    ftpd.h                 net.h
