APOP support: If APOP is enabled, build it into inc and msgchk
[mmh] / sbr / Makefile.in
1 #
2 # Makefile for sbr subdirectory
3 #
4 # $Id$
5 #
6
7 SHELL = /bin/sh
8
9 top_srcdir = @top_srcdir@
10 srcdir     = @srcdir@
11 VPATH      = @srcdir@
12
13 CC       = @CC@
14 CFLAGS   = @CFLAGS@
15 DEFS     = @DEFS@
16 INCLUDES = -I.. -I. -I$(top_srcdir)
17
18 AWK    = @AWK@
19 LORDER = @LORDER@
20 TSORT  = @TSORT@
21 RANLIB = @RANLIB@
22 LIBTOOL = @LIBTOOL@
23 GNU_LIBTOOL = @GNU_LIBTOOL@
24
25 LIBOBJS = @LIBOBJS@
26
27 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
28
29 .SUFFIXES:
30 .SUFFIXES: .c .o
31
32 .c.o:
33         $(COMPILE) $<
34
35 # this header file is parsed to generate signal messages (sigmsg.h)
36 SIGNAL_H = @SIGNAL_H@
37
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
56
57 # source for compatibility functions
58 COMPAT = snprintf.c strdup.c strerror.c ruserpass.c
59
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 \
77         $(LIBOBJS)
78
79 # auxiliary files
80 AUX = Makefile.in sigmsg.awk
81
82 # all files in this directory included in the distribution
83 DIST = $(SRCS) $(COMPAT) $(AUX)
84
85 # ========= DEPENDENCIES FOR BUILDING ==========
86
87 # default target
88 all: libmh.a
89
90 sigmsg.h: sigmsg.awk
91         $(AWK) -f $(srcdir)/sigmsg.awk $(SIGNAL_H) > $@
92
93 pidstatus.o: sigmsg.h
94
95 libmh.a: $(OBJS)
96         rm -f $@
97         if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
98           $(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \
99         else \
100           ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)`  ; \
101           $(RANLIB) libmh.a  ; \
102         fi 
103
104 install:
105
106 uninstall:
107
108 # ========== DEPENDENCIES FOR CLEANUP ==========
109
110 mostlyclean:
111         rm -f *.o *~
112
113 clean: mostlyclean
114         rm -f libmh.a sigmsg.h
115
116 distclean: clean
117         rm -f Makefile
118
119 realclean: distclean
120
121 superclean: realclean
122
123 # ========== DEPENDENCIES FOR MAINTENANCE ==========
124
125 subdir = sbr
126
127 Makefile: Makefile.in ../config.status
128         cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
129  
130 distdir = ../`cat ../distname`/$(subdir)
131 nmhdist: $(DIST)
132         @echo "Copying distribution files in $(subdir)"
133         @for file in $(DIST); do \
134           cp -p $(srcdir)/$$file $(distdir); \
135         done
136