]> diplodocus.org Git - nmh/blob - sbr/Makefile.in
INSTALL never documented the etc/*.old thing. Documented the new etc/*.prev
[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 CC = @CC@
14 CFLAGS = @CFLAGS@
15 DEFS = @DEFS@
16 INCLUDES = -I.. -I. -I$(top_srcdir)
17
18 LEX = @LEX@
19 AWK = @AWK@
20 LORDER = @LORDER@
21 TSORT = @TSORT@
22 RANLIB = @RANLIB@
23 LIBTOOL = @LIBTOOL@
24 GNU_LIBTOOL = @GNU_LIBTOOL@
25
26 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
27
28 .SUFFIXES:
29 .SUFFIXES: .c .o
30
31 .c.o:
32 $(COMPILE) $<
33
34 # this header file is parsed to generate signal messages (sigmsg.h)
35 SIGNAL_H = @SIGNAL_H@
36
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 \
60 m_msgdef.c mf.c
61
62 # source for compatibility functions
63 COMPAT = snprintf.c strdup.c strerror.c
64
65 OBJS = $(patsubst %.c,%.o,$(SRCS))
66
67 # auxiliary files
68 AUX = Makefile.in sigmsg.awk dtimep.lex
69
70 # all files in this directory included in the distribution
71 DIST = $(SRCS) $(COMPAT) $(AUX)
72
73 # ========= DEPENDENCIES FOR BUILDING ==========
74
75 # default target
76 all: libmh.a
77
78 sigmsg.h: sigmsg.awk
79 $(AWK) -f $(srcdir)/sigmsg.awk $(SIGNAL_H) > $@
80
81 dtimep.c: dtimep.lex
82 $(LEX) -nit $< > $@
83
84 pidstatus.o: sigmsg.h
85
86 libmh.a: $(OBJS)
87 rm -f $@
88 if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
89 $(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \
90 else \
91 ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)` ; \
92 $(RANLIB) libmh.a ; \
93 fi
94
95 install:
96
97 uninstall:
98
99 # ========== DEPENDENCIES FOR CLEANUP ==========
100
101 mostlyclean:
102 rm -f *.o *~
103
104 clean: mostlyclean
105 rm -f libmh.a sigmsg.h
106
107 distclean: clean
108 rm -f Makefile
109
110 realclean: distclean
111
112 superclean: realclean
113
114 # ========== DEPENDENCIES FOR MAINTENANCE ==========
115
116 subdir = sbr
117
118 Makefile: Makefile.in ../config.status
119 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
120
121 distdir = ../`cat ../distname`/$(subdir)
122 nmhdist: $(DIST)
123 @echo "Copying distribution files in $(subdir)"
124 @for file in $(DIST); do \
125 cp -p $(srcdir)/$$file $(distdir); \
126 done
127