head     1.2;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.2
date     94.08.22.12.51.14;  author cfields;  state Exp;
branches ;
next     1.1;

1.1
date     93.11.14.07.45.53;  author miki;  state Exp;
branches ;
next     ;


desc
@@


1.2
log
@when cleaning remove the lint libs as well
7.7 checkin; changes by miki
@
text
@##############################################################################
#    Instructions to Make, for compilation of SendMail/SMTP-MTS library
#
#	@@(MHWARNING)
# @@(#)sendmail,v 1.1.1.1 1993/01/30 04:40:17 jtc Exp
##############################################################################

# The following entries were inserted during MH configuration
OPTIONS	=	@@(MHOPTIONS) -I..

CC	=	@@(MHCOMPILER)
@@BEGIN: OPTIM
CFLAGS	=	$(OPTIONS)
@@END: OPTIM
@@BEGIN: DEBUG
CFLAGS	=	      $(OPTIONS)
@@END: DEBUG
LFLAGS	=	-bhu $(OPTIONS)
CP	=	@@(CP)
LN	=	@@(LN)

LIB	=	sendmts.a

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


@@BEGIN: OPTIM
##############################################################################
#	Generation Rules
##############################################################################

.c.o:;		$(CC) $(CFLAGS) -c $*.c
@@BEGIN: NEWLOAD
		-ld -x -r $@@
		mv a.out $@@
@@END: NEWLOAD
@@BEGIN: OLDLOAD
		${CC} -s -o $@@
@@END: OLDLOAD


@@END: OPTIM
##############################################################################
#	Here it is...
##############################################################################

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

$(LIB):		$(OFILES)
		-mv $@@ z$@@
@@BEGIN: RANLIB
		ar r $@@ $(OFILES); ranlib $@@
@@END: RANLIB
@@BEGIN: LORDER
		ar r $@@ `lorder $(OFILES) | tsort`
@@END: LORDER
		-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) llib-lmts

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


1.1
log
@Initial revision
@
text
@d84 1
a84 1
		-rm -f *.o $(LIB) z$(LIB)
@
