b025b3b9473d79de6f72c6f2791c286d8419db1f
[mmh] / mts / sendmail / Makefile.in
1 #
2 # Makefile for mts/sendmail 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 GNU_LIBTOOL = @GNU_LIBTOOL@
29 LINT    = @LINT@
30 LINTFLAGS = @LINTFLAGS@
31
32 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
33
34 .SUFFIXES:
35 .SUFFIXES: .c .o
36
37 .c.o:
38         $(COMPILE) $<
39
40 # source
41 SRCS = hosts.c sendmail.c
42
43 # object files in libsend.a
44 OBJS = hosts.o sendmail.o
45
46 # auxiliary files
47 AUX = Makefile.in
48
49 # all files in this directory included in the distribution
50 DIST = $(SRCS) $(AUX)
51
52 # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
53
54 all: libsend.a
55
56 libsend.a: $(OBJS)
57         rm -f $@
58         if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; 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 libsend.a
76
77 distclean: clean
78         rm -f Makefile
79
80 realclean: distclean
81
82 superclean: realclean
83
84 # ========== DEPENDENCIES FOR LINT =================
85
86 lint: 
87         $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
88
89 # ========== DEPENDENCIES FOR MAINTENANCE ==========
90
91 subdir = mts/sendmail
92
93 Makefile: Makefile.in ../../config.status
94         cd ../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
95  
96 distdir = ../../`cat ../../distname`/$(subdir)
97 nmhdist: $(DIST)
98         @echo "Copying distribution files in $(subdir)"
99         @for file in $(DIST); do \
100           cp -p $(srcdir)/$$file $(distdir); \
101         done
102