1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
#
# Makefile for mts subdirectory
#
# $Id: Makefile.in,v 1.6 2005/11/08 16:51:37 opk Exp $
#
SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
# flags passed to recursive makes in subdirectories
MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
mailspool='$(mailspool)' sendmailpath='$(sendmailpath)' \
default_editor='$(default_editor)' default_pager='$(default_pager)'
LORDER = @LORDER@
TSORT = @TSORT@
RANLIB = @RANLIB@
LIBTOOL = @LIBTOOL@
GNU_LIBTOOL = @GNU_LIBTOOL@
# object files that go into libmts.a
OBJS = smtp/hosts.o smtp/smtp.o
# auxiliary files
AUX = Makefile.in
# all files in this directory included in the distribution
DIST = $(AUX)
# subdirectories
SUBDIRS = smtp
# mail transport agent we are using (currently always smtp)
# MTS = smtp
# DEPRECATED: smtp/sendmail functionality handled by mts.conf
# ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
all: all-recursive libmts.a
all-recursive:
for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $(MAKEDEFS) all) || exit 1; \
done
libmts.a: $(OBJS)
rm -f $@
if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
$(LIBTOOL) -static -c $(OBJS) -o $@ ; \
else \
ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \
$(RANLIB) $@ ; \
fi
install uninstall:
# ========== DEPENDENCIES FOR CLEANUP ==========
mostlyclean: mostlyclean-recursive mostlyclean-local
clean: clean-recursive clean-local
distclean: distclean-recursive distclean-local
realclean: realclean-recursive realclean-local
superclean: superclean-recursive superclean-local
mostlyclean-local:
rm -f *~
clean-local: mostlyclean-local
rm -f libmts.a
distclean-local: clean-local
rm -f Makefile
realclean-local: distclean-local
superclean-local: realclean-local
mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive superclean-recursive:
for subdir in $(SUBDIRS); do \
target=`echo $@ | sed 's/-recursive//'`; \
(cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
done
# ========== DEPENDENCIES FOR LINT =================
lint:
for subdir in $(SUBDIRS); do \
( cd $$subdir && $(MAKE) $(MAKEDEFS) lint ) || exit 1; \
done
# ========== DEPENDENCIES FOR MAINTENANCE ==========
subdir = mts
Makefile: Makefile.in ../config.status
cd .. && ./config.status $(subdir)/$@
distdir = ../`cat ../distname`/$(subdir)
nmhdist: $(DIST)
@echo "Copying distribution files in $(subdir)"
@for file in $(DIST); do \
cp -p $(srcdir)/$$file $(distdir); \
done
@for subdir in $(SUBDIRS); do \
mkdir $(distdir)/$$subdir; \
chmod 755 $(distdir)/$$subdir; \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
|