2 # Makefile for sbr subdirectory
9 top_srcdir = @top_srcdir@
16 INCLUDES = -I.. -I. -I$(top_srcdir)
23 GNU_LIBTOOL = @GNU_LIBTOOL@
27 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
35 # this header file is parsed to generate signal messages (sigmsg.h)
38 # source for library functions
39 SRCS = add.c addrsbr.c ambigsw.c atooi.c brkstring.c check_charset.c \
40 closefds.c concat.c context_del.c context_find.c context_foil.c \
41 context_read.c context_replace.c context_save.c copy.c \
42 copyip.c cpydata.c cpydgst.c discard.c done.c error.c \
43 fdcompare.c folder_addmsg.c folder_delmsgs.c folder_free.c \
44 folder_pack.c folder_read.c folder_realloc.c gans.c \
45 getans.c getanswer.c getarguments.c getcpy.c getfolder.c fmt_addr.c \
46 fmt_compile.c fmt_new.c fmt_rfc2047.c fmt_scan.c lock_file.c \
47 m_atoi.c m_backup.c m_convert.c m_draft.c m_getfld.c m_gmprot.c \
48 m_maildir.c m_name.c m_scratch.c m_tmpfil.c makedir.c \
49 path.c peekc.c pidwait.c pidstatus.c print_help.c \
50 print_sw.c print_version.c push.c putenv.c pwd.c refile.c \
51 remdir.c r1bindex.c readconfig.c seq_add.c seq_bits.c seq_del.c \
52 seq_getnum.c seq_list.c seq_nameok.c seq_print.c seq_read.c \
53 seq_save.c seq_setcur.c seq_setprev.c seq_setunseen.c showfile.c \
54 signals.c smatch.c snprintb.c ssequal.c strcasecmp.c strindex.c \
55 trimcpy.c uprf.c vfgets.c fmt_def.c m_msgdef.c
57 # source for compatibility functions
58 COMPAT = snprintf.c strdup.c strerror.c ruserpass.c
60 OBJS = add.o addrsbr.o ambigsw.o atooi.o brkstring.o check_charset.o \
61 closefds.o concat.o context_del.o context_find.o context_foil.o \
62 context_read.o context_replace.o context_save.o copy.o \
63 copyip.o cpydata.o cpydgst.o discard.o done.o error.o \
64 fdcompare.o folder_addmsg.o folder_delmsgs.o folder_free.o \
65 folder_pack.o folder_read.o folder_realloc.o gans.o \
66 getans.o getanswer.o getarguments.o getcpy.o getfolder.o fmt_addr.o \
67 fmt_compile.o fmt_new.o fmt_rfc2047.o fmt_scan.o lock_file.o \
68 m_atoi.o m_backup.o m_convert.o m_draft.o m_getfld.o m_gmprot.o \
69 m_maildir.o m_name.o m_scratch.o m_tmpfil.o makedir.o \
70 path.o peekc.o pidwait.o pidstatus.o print_help.o \
71 print_sw.o print_version.o push.o putenv.o pwd.o refile.o \
72 remdir.o r1bindex.o readconfig.o seq_add.o seq_bits.o seq_del.o \
73 seq_getnum.o seq_list.o seq_nameok.o seq_print.o seq_read.o \
74 seq_save.o seq_setcur.o seq_setprev.o seq_setunseen.o showfile.o \
75 signals.o smatch.o snprintb.o ssequal.o strcasecmp.o strindex.o \
76 trimcpy.o uprf.o vfgets.o fmt_def.o m_msgdef.o \
80 AUX = Makefile.in sigmsg.awk
82 # all files in this directory included in the distribution
83 DIST = $(SRCS) $(COMPAT) $(AUX)
85 # ========= DEPENDENCIES FOR BUILDING ==========
91 $(AWK) -f $(srcdir)/sigmsg.awk $(SIGNAL_H) > $@
97 if test x$(LIBTOOL) != xno -a x$(GNU_LIBTOOL) = x ; then \
98 $(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \
100 ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)` ; \
101 $(RANLIB) libmh.a ; \
108 # ========== DEPENDENCIES FOR CLEANUP ==========
114 rm -f libmh.a sigmsg.h
121 superclean: realclean
123 # ========== DEPENDENCIES FOR MAINTENANCE ==========
127 Makefile: Makefile.in ../config.status
128 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
130 distdir = ../`cat ../distname`/$(subdir)
132 @echo "Copying distribution files in $(subdir)"
133 @for file in $(DIST); do \
134 cp -p $(srcdir)/$$file $(distdir); \