]> diplodocus.org Git - nmh/blob - sbr/Makefile.in
* uip/new.c: cast folder_len to int to avoid warning on
[nmh] / 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 prefix = @prefix@
14 exec_prefix = @exec_prefix@
15 bindir = @bindir@
16 libdir = @libdir@
17 etcdir = @sysconfdir@
18
19 CC = @CC@
20 CFLAGS = @CFLAGS@
21 DEFS = @DEFS@
22 KRB4_INCLUDES = @KRB4_INCLUDES@ # for mts
23 HESIOD_INCLUDES = @HESIOD_INCLUDES@ # for mts
24 CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' -DMAILSPOOL='"$(mailspool)"' -DSENDMAILPATH='"$(sendmailpath)"'
25 INCLUDES = -I.. -I. -I$(top_srcdir)
26
27 LEX = @LEX@
28 AWK = @AWK@
29 LORDER = @LORDER@
30 TSORT = @TSORT@
31 RANLIB = @RANLIB@
32 LIBTOOL = @LIBTOOL@
33 GNU_LIBTOOL = @GNU_LIBTOOL@
34 LINT = @LINT@
35 LINTFLAGS = @LINTFLAGS@
36
37 LIBOBJS = @LIBOBJS@
38
39 mailspool = @mailspool@
40 sendmailpath = @sendmailpath@
41
42 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
43 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(KRB4_INCLUDES) $(HESIOD_INCLUDES) $(CFLAGS)
44
45
46
47 .SUFFIXES:
48 .SUFFIXES: .c .o
49
50 .c.o:
51 $(COMPILE) $<
52
53 # this header file is parsed to generate signal messages (sigmsg.h)
54 SIGNAL_H = @SIGNAL_H@
55
56 # source for library functions
57 SRCS = addrsbr.c ambigsw.c atooi.c brkstring.c \
58 check_charset.c client.c closefds.c concat.c context_del.c \
59 context_find.c context_foil.c context_read.c \
60 context_replace.c context_save.c copy.c \
61 copyip.c cpydata.c cpydgst.c crawl_folders.c \
62 discard.c done.c dtime.c dtimep.c \
63 error.c ext_hook.c fdcompare.c folder_addmsg.c folder_delmsgs.c \
64 folder_free.c folder_pack.c folder_read.c \
65 folder_realloc.c gans.c getans.c getanswer.c \
66 getarguments.c getcpy.c getfolder.c getpass.c \
67 fmt_addr.c fmt_compile.c fmt_new.c fmt_rfc2047.c \
68 fmt_scan.c lock_file.c m_atoi.c m_backup.c \
69 m_convert.c m_draft.c m_getfld.c m_gmprot.c \
70 m_maildir.c m_name.c m_scratch.c m_tmpfil.c \
71 makedir.c mts.c norm_charmap.c \
72 path.c peekc.c pidwait.c pidstatus.c \
73 print_help.c print_sw.c print_version.c push.c \
74 putenv.c refile.c remdir.c r1bindex.c \
75 readconfig.c ruserpass.c seq_add.c seq_bits.c \
76 seq_del.c seq_getnum.c seq_list.c seq_nameok.c \
77 seq_print.c seq_read.c seq_save.c seq_setcur.c \
78 seq_setprev.c seq_setunseen.c showfile.c signals.c \
79 smatch.c snprintb.c ssequal.c strcasecmp.c \
80 strindex.c trimcpy.c uprf.c vfgets.c fmt_def.c \
81 m_msgdef.c mf.c utils.c
82
83 # source for compatibility functions
84 COMPAT = memmove.c snprintf.c strdup.c strerror.c
85
86 OBJS = $(SRCS:.c=.o) $(LIBOBJS)
87
88 # auxiliary files
89 AUX = Makefile.in sigmsg.awk dtimep.lex
90
91 # all files in this directory included in the distribution
92 DIST = $(SRCS) $(COMPAT) $(AUX)
93
94 # ========= DEPENDENCIES FOR BUILDING ==========
95
96 # default target
97 all: libmh.a
98
99 sigmsg.h: sigmsg.awk
100 $(AWK) -f $(srcdir)/sigmsg.awk $(SIGNAL_H) > $@
101
102 lint: sigmsg.h
103 $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
104
105 # Note that not all lexes support -o (it is not POSIX); also
106 # some lexes will only accept '-n -t', not '-nt'.
107 # Also, not all makes accept $< in non-pattern rules,
108 # hence the explicit filenames here.
109 dtimep.c: dtimep.lex
110 $(LEX) -n -t $(srcdir)/dtimep.lex > dtimep.c
111
112 client.o: client.c
113 $(COMPILE2) $(srcdir)/client.c
114
115 mts.o: mts.c
116 $(COMPILE2) $(srcdir)/mts.c
117
118 pidstatus.o: sigmsg.h
119
120 libmh.a: $(OBJS)
121 rm -f $@
122 if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
123 $(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \
124 else \
125 ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)` ; \
126 $(RANLIB) libmh.a ; \
127 fi
128
129 install:
130
131 uninstall:
132
133 # ========== DEPENDENCIES FOR CLEANUP ==========
134
135 mostlyclean:
136 rm -f *.o *~
137
138 clean: mostlyclean
139 rm -f libmh.a sigmsg.h dtimep.c
140
141 distclean: clean
142 rm -f Makefile
143
144 realclean: distclean
145
146 superclean: realclean
147
148 # ========== DEPENDENCIES FOR MAINTENANCE ==========
149
150 subdir = sbr
151
152 Makefile: Makefile.in ../config.status
153 cd .. && ./config.status $(subdir)/$@
154
155 distdir = ../`cat ../distname`/$(subdir)
156 nmhdist: $(DIST)
157 @echo "Copying distribution files in $(subdir)"
158 @for file in $(DIST); do \
159 cp -p $(srcdir)/$$file $(distdir); \
160 done
161