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