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