2 # Makefile for sbr subdirectory
7 top_srcdir = @top_srcdir@
12 exec_prefix = @exec_prefix@
20 INCLUDES = -I$(top_srcdir) @CPPFLAGS@
28 GNU_LIBTOOL = @GNU_LIBTOOL@
30 LINTFLAGS = @LINTFLAGS@
32 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
42 # this header file is parsed to generate signal messages (sigmsg.h)
45 # source for library functions
46 SRCS = addrsbr.c ambigsw.c brkstring.c \
47 charset.c concat.c context_del.c \
48 context_find.c context_read.c \
49 context_replace.c context_save.c \
50 cpydata.c cpydgst.c crawl_folders.c \
51 discard.c done.c dtime.c dtimep.c \
52 error.c ext_hook.c folder_addmsg.c folder_delmsgs.c \
53 folder_free.c folder_read.c \
54 folder_realloc.c gans.c getans.c getanswer.c \
55 getarguments.c getcpy.c getpass.c \
56 fmt_addr.c fmt_compile.c fmt_new.c fmt_rfc2047.c \
57 fmt_scan.c lock_file.c m_atoi.c \
58 m_convert.c m_draft.c m_getfld.c m_gmprot.c \
60 makedir.c mts.c norm_charmap.c \
61 path.c pidwait.c pidstatus.c \
62 print_help.c print_sw.c print_version.c \
63 putenv.c mhbasename.c \
64 readconfig.c seq_add.c seq_bits.c \
65 seq_del.c seq_getnum.c seq_list.c seq_nameok.c \
66 seq_print.c seq_read.c seq_save.c seq_setcur.c \
67 seq_setprev.c seq_setunseen.c signals.c \
68 smatch.c snprintb.c strcasecmp.c \
69 strindex.c trimcpy.c uprf.c vfgets.c fmt_def.c \
70 mf.c utils.c m_mktemp.c
75 AUX = Makefile.in sigmsg.awk dtimep.lex
77 # all files in this directory included in the distribution
80 # ========= DEPENDENCIES FOR BUILDING ==========
86 $(AWK) -f $(srcdir)/sigmsg.awk $(SIGNAL_H) > $@
89 $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
91 # Note that not all lexes support -o (it is not POSIX); also
92 # some lexes will only accept '-n -t', not '-nt'.
93 # Also, not all makes accept $< in non-pattern rules,
94 # hence the explicit filenames here.
96 $(LEX) -n -t $(srcdir)/dtimep.lex > dtimep.c
102 if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
103 $(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \
105 ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT) 2>/dev/null` ; \
106 $(RANLIB) libmh.a ; \
113 # ========== DEPENDENCIES FOR CLEANUP ==========
119 rm -f libmh.a sigmsg.h dtimep.c
126 superclean: realclean
128 # ========== DEPENDENCIES FOR MAINTENANCE ==========
132 Makefile: Makefile.in ../config.status
133 cd .. && ./config.status $(subdir)/$@
135 distdir = ../`cat ../distname`/$(subdir)
137 @echo "Copying distribution files in $(subdir)"
138 @for file in $(DIST); do \
139 cp -p $(srcdir)/$$file $(distdir); \