]> diplodocus.org Git - nmh/blob - mts/smtp/Makefile.in
When Shantonu wrote the new, more portable dtimep.lex, he left out the #ifdef
[nmh] / mts / smtp / Makefile.in
1 #
2 # Makefile for mts/smtp subdirectory
3 #
4 # $Id$
5 #
6
7 SHELL = /bin/sh
8
9 top_srcdir = @top_srcdir@
10 srcdir = @srcdir@
11 VPATH = @srcdir@
12
13 prefix = @prefix@
14 exec_prefix = @exec_prefix@
15 bindir = @bindir@
16 libdir = @libdir@
17 etcdir = @sysconfdir@
18
19 CC = @CC@
20 CFLAGS = @CFLAGS@
21 DEFS = @DEFS@
22 SASL_INCLUDES = @SASL_INCLUDES@
23 INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir) $(SASL_INCLUDES)
24
25 LORDER = @LORDER@
26 TSORT = @TSORT@
27 RANLIB = @RANLIB@
28 LIBTOOL = @LIBTOOL@
29 GNU_LIBTOOL = @GNU_LIBTOOL@
30 LINT = @LINT@
31 LINTFLAGS = @LINTFLAGS@
32
33 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
34
35 .SUFFIXES:
36 .SUFFIXES: .c .o
37
38 .c.o:
39 $(COMPILE) $<
40
41 # header files
42 HDRS = smtp.h
43
44 # source
45 SRCS = hosts.c smtp.c
46
47 # object files in libsmtp.a
48 OBJS = hosts.o smtp.o
49
50 # auxiliary files
51 AUX = Makefile.in
52
53 # all files in this directory included in the distribution
54 DIST = $(HDRS) $(SRCS) $(AUX)
55
56 # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
57
58 all: libsmtp.a
59
60 libsmtp.a: $(OBJS)
61 rm -f $@
62 if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
63 $(LIBTOOL) -static -c $(OBJS) -o $@ ; \
64 else \
65 ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \
66 $(RANLIB) $@ ; \
67 fi
68
69 install:
70
71 uninstall:
72
73 # ========== DEPENDENCIES FOR CLEANUP ==========
74
75 mostlyclean:
76 rm -f *.o *~
77
78 clean: mostlyclean
79 rm -f libsmtp.a
80
81 distclean: clean
82 rm -f Makefile
83
84 realclean: distclean
85
86 superclean: realclean
87
88 # ========== DEPENDENCIES FOR LINT =================
89
90 lint:
91 $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
92
93 # ========== DEPENDENCIES FOR MAINTENANCE ==========
94
95 subdir = mts/smtp
96
97 Makefile: Makefile.in ../../config.status
98 cd ../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
99
100 distdir = ../../`cat ../../distname`/$(subdir)
101 nmhdist: $(DIST)
102 @echo "Copying distribution files in $(subdir)"
103 @for file in $(DIST); do \
104 cp -p $(srcdir)/$$file $(distdir); \
105 done
106