]> diplodocus.org Git - nmh/blob - mts/smtp/Makefile.in
55997a4e70918e404dfeca427ffb20d447760658
[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 INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
23
24 LORDER = @LORDER@
25 TSORT = @TSORT@
26 RANLIB = @RANLIB@
27 LIBTOOL = @LIBTOOL@
28
29 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
30
31 .SUFFIXES:
32 .SUFFIXES: .c .o
33
34 .c.o:
35 $(COMPILE) $<
36
37 # header files
38 HDRS = smtp.h
39
40 # source
41 SRCS = hosts.c smtp.c
42
43 # object files in libsmtp.a
44 OBJS = hosts.o smtp.o
45
46 # auxiliary files
47 AUX = Makefile.in
48
49 # all files in this directory included in the distribution
50 DIST = $(HDRS) $(SRCS) $(AUX)
51
52 # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
53
54 all: libsmtp.a
55
56 libsmtp.a: $(OBJS)
57 rm -f $@
58 if test x$(LIBTOOL) != xno ; then \
59 $(LIBTOOL) -static -c $(OBJS) -o $@ ; \
60 else \
61 ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \
62 $(RANLIB) $@ ; \
63 fi
64
65 install:
66
67 uninstall:
68
69 # ========== DEPENDENCIES FOR CLEANUP ==========
70
71 mostlyclean:
72 rm -f *.o *~
73
74 clean: mostlyclean
75 rm -f libsmtp.a
76
77 distclean: clean
78 rm -f Makefile
79
80 realclean: distclean
81
82 superclean: realclean
83
84 # ========== DEPENDENCIES FOR MAINTENANCE ==========
85
86 subdir = mts/smtp
87
88 Makefile: Makefile.in ../../config.status
89 cd ../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
90
91 distdir = ../../`cat ../../distname`/$(subdir)
92 nmhdist: $(DIST)
93 @echo "Copying distribution files in $(subdir)"
94 @for file in $(DIST); do \
95 cp -p $(srcdir)/$$file $(distdir); \
96 done
97