2 # Makefile for mts/smtp subdirectory
9 top_srcdir = @top_srcdir@
14 exec_prefix = @exec_prefix@
22 INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
28 GNU_LIBTOOL = @GNU_LIBTOOL@
30 LINTFLAGS = @LINTFLAGS@
32 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
46 # object files in libsmtp.a
52 # all files in this directory included in the distribution
53 DIST = $(HDRS) $(SRCS) $(AUX)
55 # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
61 if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
62 $(LIBTOOL) -static -c $(OBJS) -o $@ ; \
64 ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \
72 # ========== DEPENDENCIES FOR CLEANUP ==========
87 # ========== DEPENDENCIES FOR LINT =================
90 $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
92 # ========== DEPENDENCIES FOR MAINTENANCE ==========
96 Makefile: Makefile.in ../../config.status
97 cd ../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
99 distdir = ../../`cat ../../distname`/$(subdir)
101 @echo "Copying distribution files in $(subdir)"
102 @for file in $(DIST); do \
103 cp -p $(srcdir)/$$file $(distdir); \