##############################################################################
#    Instructions to Make, for compilation of SendMail/SMTP-MTS library
#
#	This file is automatically generated.  Do not edit!
# @(#)Makefile,v 1.1 1994/01/04 23:15:07 sanders Exp
##############################################################################

# The following entries were inserted during MH configuration
OPTIONS	=	-DBIND -DBSD42 -DBSD43 -DDBMPWD -DMORE='"/usr/bin/more"' -DSYS5DIR -DNTOHLSWAP -DOVERHEAD -DVSPRINTF -DWHATNOW -DZONEINFO -DMHE -DMHRC -DMIME -DPOSIX -DBSD44 -DWAITINT -DUNISTD -DFLOCK -DNORUSERPASS -DPOP2 -DRPOP -DPOPSERVICE='"pop3"' -DSENDMTS -DSMTP -DPOP -DSPRINTFTYPE=int -DTYPESIG=void -O -I..

CC	=	cc
CFLAGS	=	$(OPTIONS)
LFLAGS	=	-bhu $(OPTIONS)
CP	=	cp
LN	=	ln

LIB	=	sendmts.a

CFILES	=	hosts.c smail.c
OFILES	=	hosts.o smail.o


##############################################################################
#	Generation Rules
##############################################################################

.c.o:;		$(CC) $(CFLAGS) -c $*.c
		-ld -x -r $@
		mv a.out $@


##############################################################################
#	Here it is...
##############################################################################

all:		$(LIB)
depend:;
lint:		l-sendmts

$(LIB):		$(OFILES)
		-mv $@ z$@
		ar r $@ $(OFILES); ranlib $@
		-rm -f ../libmts.a
		-cd ..; $(LN) sendmail/$@ libmts.a
		-rm -f ../llib-lmts
		-cd .. ; $(LN) sendmail/llib-lsendmail llib-lmts
		-@ls -l $@
		-@echo "SendMail/SMTP-MTS library built normally"

l-sendmts:;	lint $(LFLAGS) $(CFILES) $(LLIBS)

hosts.o:	Makefile
smail.o:	Makefile smail.h


##############################################################################
#	Miscellaneous tasks
##############################################################################

unconfig:	distribution
		-rm -f Makefile

distribution:   clean
		-rm -f bboardsMH.m4 popMH.m4

clean:		unclean
		-rm -f *.o $(LIB) z$(LIB)

unclean:;	-rm -f _* :* core
