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