Removed unneeded sbr code.
[mmh] / sbr / Makefile.in
1 #
2 # Makefile for sbr subdirectory
3 #
4
5 SHELL = /bin/sh
6
7 top_srcdir = @top_srcdir@
8 srcdir     = @srcdir@
9 VPATH      = @srcdir@
10
11 prefix      = @prefix@
12 exec_prefix = @exec_prefix@
13 bindir      = @bindir@
14 libdir      = @libdir@
15 etcdir      = @sysconfdir@
16
17 CC       = @CC@
18 CFLAGS   = @CFLAGS@
19 DEFS     = @DEFS@
20 CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' -DMAILSPOOL='"$(mailspool)"' -DSENDMAILPATH='"$(sendmailpath)"'
21 INCLUDES = -I.. -I. -I$(top_srcdir) @CPPFLAGS@
22
23 LEX    = @LEX@
24 AWK    = @AWK@
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 LIBOBJS = @LIBOBJS@
34
35 mailspool    = @mailspool@
36 sendmailpath = @sendmailpath@
37
38 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
39 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
40
41
42
43 .SUFFIXES:
44 .SUFFIXES: .c .o
45
46 .c.o:
47         $(COMPILE) $<
48
49 # this header file is parsed to generate signal messages (sigmsg.h)
50 SIGNAL_H = @SIGNAL_H@
51
52 # source for library functions
53 SRCS = addrsbr.c ambigsw.c atooi.c brkstring.c  \
54         check_charset.c closefds.c concat.c context_del.c  \
55         context_find.c context_foil.c context_read.c  \
56         context_replace.c context_save.c copy.c  \
57         copyip.c cpydata.c cpydgst.c crawl_folders.c  \
58         discard.c done.c dtime.c dtimep.c  \
59         error.c ext_hook.c fdcompare.c folder_addmsg.c folder_delmsgs.c  \
60         folder_free.c folder_pack.c folder_read.c  \
61         folder_realloc.c gans.c getans.c getanswer.c  \
62         getarguments.c getcpy.c getfolder.c getpass.c  \
63         fmt_addr.c fmt_compile.c fmt_new.c fmt_rfc2047.c  \
64         fmt_scan.c lock_file.c m_atoi.c m_backup.c  \
65         m_convert.c m_draft.c m_getfld.c m_gmprot.c  \
66         m_maildir.c m_name.c \
67         makedir.c mts.c norm_charmap.c  \
68         path.c peekc.c pidwait.c pidstatus.c  \
69         print_help.c print_sw.c print_version.c push.c  \
70         putenv.c refile.c r1bindex.c  \
71         readconfig.c ruserpass.c seq_add.c seq_bits.c  \
72         seq_del.c seq_getnum.c seq_list.c seq_nameok.c  \
73         seq_print.c seq_read.c seq_save.c seq_setcur.c  \
74         seq_setprev.c seq_setunseen.c showfile.c signals.c  \
75         smatch.c snprintb.c ssequal.c strcasecmp.c  \
76         strindex.c trimcpy.c uprf.c vfgets.c fmt_def.c  \
77         m_msgdef.c mf.c utils.c m_mktemp.c
78
79 # source for compatibility functions
80 COMPAT = snprintf.c strdup.c
81
82 OBJS =  $(SRCS:.c=.o) $(LIBOBJS)
83
84 # auxiliary files
85 AUX = Makefile.in sigmsg.awk dtimep.lex
86
87 # all files in this directory included in the distribution
88 DIST = $(SRCS) $(COMPAT) $(AUX)
89
90 # ========= DEPENDENCIES FOR BUILDING ==========
91
92 # default target
93 all: libmh.a
94
95 sigmsg.h: sigmsg.awk
96         $(AWK) -f $(srcdir)/sigmsg.awk $(SIGNAL_H) > $@
97
98 lint: sigmsg.h
99         $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
100
101 # Note that not all lexes support -o (it is not POSIX); also
102 # some lexes will only accept '-n -t', not '-nt'.
103 # Also, not all makes accept $< in non-pattern rules,
104 # hence the explicit filenames here.
105 dtimep.c: dtimep.lex
106         $(LEX) -n -t $(srcdir)/dtimep.lex > dtimep.c
107
108 mts.o: mts.c
109         $(COMPILE2) $(srcdir)/mts.c
110
111 pidstatus.o: sigmsg.h
112
113 libmh.a: $(OBJS)
114         rm -f $@
115         if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
116           $(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \
117         else \
118           ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT) 2>/dev/null`  ; \
119           $(RANLIB) libmh.a  ; \
120         fi
121
122 install:
123
124 uninstall:
125
126 # ========== DEPENDENCIES FOR CLEANUP ==========
127
128 mostlyclean:
129         rm -f *.o *~
130
131 clean: mostlyclean
132         rm -f libmh.a sigmsg.h dtimep.c
133
134 distclean: clean
135         rm -f Makefile
136
137 realclean: distclean
138
139 superclean: realclean
140
141 # ========== DEPENDENCIES FOR MAINTENANCE ==========
142
143 subdir = sbr
144
145 Makefile: Makefile.in ../config.status
146         cd .. && ./config.status $(subdir)/$@
147
148 distdir = ../`cat ../distname`/$(subdir)
149 nmhdist: $(DIST)
150         @echo "Copying distribution files in $(subdir)"
151         @for file in $(DIST); do \
152           cp -p $(srcdir)/$$file $(distdir); \
153         done
154