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