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