# Generated automatically from Makefile.in by configure.
# Makefile for cyrus imap server and associated programs
# $Id: Makefile.in,v 1.3 2000/03/02 22:27:00 leg Exp $
# 
# Generated automatically from Makefile.in by configure.
#
# Copyright 1998 Carnegie Mellon University
# 
# No warranties, either expressed or implied, are made regarding the
# operation, use, or results of the software.
#
# Permission to use, copy, modify and distribute this software and its
# documentation is hereby granted for non-commercial purposes only
# provided that this copyright notice appears in all copies and in
# supporting documentation.
#
# Permission is also granted to Internet Service Providers and others
# entities to use the software for internal purposes.
#
# The distribution, modification or sale of a product which uses or is
# based on the software, in whole or in part, for commercial purposes or
# benefits requires specific, additional permission from:
#
#  Office of Technology Transfer
#  Carnegie Mellon University
#  5000 Forbes Avenue
#  Pittsburgh, PA  15213-3890
#  (412) 268-4387, fax: (412) 268-7395
#  tech-transfer@andrew.cmu.edu
# 
DEFINES=-DSETPROCTITLE

srcdir = .

CC = gcc
INSTALL = /usr/local/bin/install -c
RANLIB = ranlib

DEFS = -DHAVE_CONFIG_H 
CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/../lib
DEPLIBS = ../lib/libcyrus.a 
LIBS = -ldl  -lsocket -lnsl  $(DEPLIBS) -lsasl

CFLAGS = -g -O2
LDFLAGS = -L/usr/local/lib -R/usr/local/lib  -g -O2

prefix = /usr/local
exec_prefix = ${prefix}
cyrus_prefix = /usr/cyrus

SHELL = /bin/sh
MAKEDEPEND = @MAKEDEPEND@

COMPILE_ET=/usr/local/bin/compile_et

PROGS = frontend

all: $(PROGS)

install:
	$(srcdir)/../install-sh -d ${DESTDIR}$(cyrus_prefix)/bin
	for file in $(PROGS); \
	do \
		$(INSTALL) -m 755 $$file $(DESTDIR)$(cyrus_prefix)/bin || exit 1; \
	done

.c.o:
	$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) \
	$<

frontend: frontend.o $(DEPLIBS)
	$(CC) $(LDFLAGS) -o frontend frontend.o $(LIBS)

clean:
	rm -f *.o *.a Makefile.bak imap_err.c imap_err.h makedepend.log \
	$(PROGS)

distclean: clean
	rm -f Makefile

# DO NOT DELETE THIS LINE -- make depend depends on it.
