# Program:	MS client Makefile
#
# Author:	Mark Crispin
#		Networks and Distributed Computing
#		Computing & Communications
#		University of Washington
#		Administration Building, AG-44
#		Seattle, WA  98195
#		Internet: MRC@CAC.Washington.EDU
#
# Date:		11 May 1989
# Last Edited:	8 December 2005
#
# The IMAP toolkit provided in this Distribution is
# Copyright 1988-2005 University of Washington.
#
# The full text of our legal notices is contained in the file called
# CPYRIGHT, included with this Distribution.


C = ../imap/c-client
CCLIENTLIB = $C/c-client.a

CCMD = ../ccmd

# Get local definitions from c-client directory

CC = `cat $C/CCTYPE`
CFLAGS = -I$C -I$(CCMD) `cat $C/CFLAGS`
LDFLAGS = $(CCMD)/ccmd.a $(CCLIENTLIB) -lcurses `cat $C/LDFLAGS`

ms: $(CCLIENTLIB) ms.o $(CCMD)/ccmd.a
	$(CC) $(CFLAGS) -o ms ms.o $(LDFLAGS)

ms.o: $C/mail.h $C/smtp.h $C/rfc822.h $C/misc.h $C/osdep.h

$(CCLIENTLIB):
	cd $C;make

clean:
	rm -f *.o ms

# A monument to a hack of long ago and far away...
love:
	@echo 'not war?'
