Mercurial > hg > Applications > mh
view conf/makefiles/mts/sendmail @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children | 441a2190cfae |
line wrap: on
line source
############################################################################## # Instructions to Make, for compilation of SendMail/SMTP-MTS library # # @(MHWARNING) # @(#)$Id$ ############################################################################## # 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) -if [ -f $@ ]; then \ mv $@ z$@; \ fi @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) unclean:; -rm -f _* :* core *.core