#
#  Copyright 1996,1997 - Board of Trustees - University of Illinois - Urbana
#  Jason Wessel - jwessel@uiuc.edu Computing & Communications Services Office
#  All rights reserved. 
#
#  Copyright 1998 - Board of Trustees - University of Illinois at Chicago
#  John Schulien - jms@uic.edu Academic Computing and Communications Center
#  All rights reserved
#   
#  This program may be freely modified and distributed provided that this
#  copyright information is retained.
#

CC	= cc
CFLAGS	= -Ae -I/usr/local/include
LIBS	= -L/usr/local/lib -ldb
LFLAGS	=
DESTDIR	= /etc
OBJECTS = poprox_main.o \
	  poprox_misc.o \
	  poprox_proxy.o \
	  poprox_host.o \
	  poprox_pop.o \
	  poprox_imap.o

all: poproxd 

clean:
	rm -f *.o poproxd

.c.o:
	$(CC) $(CFLAGS) -c $<

poproxd: $(OBJECTS)
	$(CC) $(LFLAGS) $(OBJECTS) $(LIBS) -o $@

install: all
	cp poproxd $(DESTDIR)
	chmod 755 $(DESTDIR)/poproxd

