all: ftpd

YACC = bison -y

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

# CFLAGS= $(COPT) -DPROXY_PASSTHRU=\"/bin/ftp-gw\"
# CFLAGS +=  -D_uclinux_ -DNBBY=8 #-DREADONLY -D__USE_BSD
CFLAGS +=  -D_uclinux_ -DCHAR_BIT=8

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

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

LDADD += -lcrypt

#---------------
all: ftpd

ftpd: $(OBJS)
	$(CC) $(LDFLAGS) -o $@ ${LIBS} ${OBJS} ${LDADD}

install: all
	$(CP) ftpd $(DESTSBIN)

clean::
	rm -f *.[oa] *.elf *.gdb core ftpd ftpcmd.c
