]> diplodocus.org Git - nmh/blob - sbr/Makefile.in
Fixed warnings from diff on first-time install of nmh. Also added 'echo's
[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 LINT = @LINT@
26 LINTFLAGS = @LINTFLAGS@
27
28
29 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
30
31 .SUFFIXES:
32 .SUFFIXES: .c .o
33
34 .c.o:
35 $(COMPILE) $<
36
37 # this header file is parsed to generate signal messages (sigmsg.h)
38 SIGNAL_H = @SIGNAL_H@
39
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 \
63 m_msgdef.c mf.c
64
65 # source for compatibility functions
66 COMPAT = snprintf.c strdup.c strerror.c
67
68 OBJS = $(SRCS:.c=.o)
69
70 # auxiliary files
71 AUX = Makefile.in sigmsg.awk dtimep.lex
72
73 # all files in this directory included in the distribution
74 DIST = $(SRCS) $(COMPAT) $(AUX)
75
76 # ========= DEPENDENCIES FOR BUILDING ==========
77
78 # default target
79 all: libmh.a
80
81 sigmsg.h: sigmsg.awk
82 $(AWK) -f $(srcdir)/sigmsg.awk $(SIGNAL_H) > $@
83
84 lint: sigmsg.h
85 $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
86
87 dtimep.c: dtimep.lex
88 $(LEX) -nt $< > $@
89
90 pidstatus.o: sigmsg.h
91
92 libmh.a: $(OBJS)
93 rm -f $@
94 if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
95 $(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \
96 else \
97 ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)` ; \
98 $(RANLIB) libmh.a ; \
99 fi
100
101 install:
102
103 uninstall:
104
105 # ========== DEPENDENCIES FOR CLEANUP ==========
106
107 mostlyclean:
108 rm -f *.o *~
109
110 clean: mostlyclean
111 rm -f libmh.a sigmsg.h
112
113 distclean: clean
114 rm -f Makefile
115
116 realclean: distclean
117
118 superclean: realclean
119
120 # ========== DEPENDENCIES FOR MAINTENANCE ==========
121
122 subdir = sbr
123
124 Makefile: Makefile.in ../config.status
125 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
126
127 distdir = ../`cat ../distname`/$(subdir)
128 nmhdist: $(DIST)
129 @echo "Copying distribution files in $(subdir)"
130 @for file in $(DIST); do \
131 cp -p $(srcdir)/$$file $(distdir); \
132 done
133