 RCS=	aftpd.c globals.c ftpcmd.c glob.c popen.c vers.c
OBJS=	aftpd.o globals.o ftpcmd.o glob.o popen.o vers.o

# NOEXPORT enables export control routines
# PROXY_PASSTHROUGH enables toolkit aware proxy switching
# READONLY disables all store/modify commands

COPT=

#CFLAGS= $(COPT) -DPROXY_PASSTHRU=\"/bin/ftp-gw\"
CFLAGS= $(COPT) -DREADONLY

# for systems w/shared libs you need something like this
#LDFL= -g -Bstatic

# for systems with NIS or similar braindeath
#AUXLIB= -lresolv

all: aftpd

aftpd: $(OBJS)
	$(CC) $(LDFL) -o $@ $(OBJS) $(AUXLIB)

install: all
	$(CP) aftpd $(DEST)

clean:
	rm -f aftpd $(OBJS) signatures.asc y.tab.c

lint:
	yacc ftpcmd.y
	lint -h *.c

signatures:
	echo > signatures
	echo Wrapped and signed on this date `date` >> signatures
	echo >> signatures
	md5 *.h *.c *.y Makefile >> signatures
	echo >> signatures
	echo mjr. >> signatures
	pgp -sa signatures
	rm signatures
