include	../Makefile.config

CFLAGS= -I.. $(COPT) -I$(IPFILTER) -DIPFILTER

all: pop3-gw

pop3-gw: pop3-gw.o newio.o ../libfwall.a ../libauth.a
	$(CC) $(LDFL) -o $@ pop3-gw.o newio.o ../libfwall.a ../libauth.a $(AUXLIB)
	chmod 755 $@

clean:
	rm -f pop3-gw pop3-gw.o newio.o core

install:	all
	if [ -f $(DEST)/pop3-gw ]; then \
		mv $(DEST)/pop3-gw $(DEST)/pop3-gw.old; \
	fi
	$(CP) pop3-gw $(DEST)
	chmod 755 $(DEST)/pop3-gw
