X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2FMakefile.in;h=f2310fb836ecd579ff0d1b5e8c0eeeb956604ada;hp=6b4acf1576275762b7061a50a980d41a04b013b1;hb=431604647f89d5aac7b199a7883e98e56e4ccf9e;hpb=fd828e57682371471c6dacd11ac389bd745de14b diff --git a/sbr/Makefile.in b/sbr/Makefile.in index 6b4acf1..f2310fb 100644 --- a/sbr/Makefile.in +++ b/sbr/Makefile.in @@ -8,6 +8,8 @@ top_srcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ +VERSION = `$(top_srcdir)/version.sh $(top_srcdir)` + prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ @@ -33,7 +35,7 @@ LINTFLAGS = @LINTFLAGS@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) -LOCALLIBS = ../config/version.o ../config/config.o +LOCALLIBS = ../config/config.o .SUFFIXES: .SUFFIXES: .c .o @@ -49,15 +51,15 @@ SRCS = addrsbr.c ambigsw.c brkstring.c \ charset.c concat.c context_del.c \ context_find.c context_read.c \ context_replace.c context_save.c \ - cpydata.c cpydgst.c crawl_folders.c \ + cpydata.c crawl_folders.c \ dtime.c dtimep.c \ error.c execprog.c ext_hook.c folder_addmsg.c folder_delmsgs.c \ folder_free.c folder_read.c \ folder_realloc.c gans.c getans.c getanswer.c \ - getarguments.c getcpy.c \ + getarguments.c \ fmt_addr.c fmt_compile.c fmt_new.c fmt_rfc2047.c \ fmt_scan.c lock_file.c m_atoi.c \ - m_convert.c m_draft.c m_getfld.c m_gmprot.c \ + m_convert.c m_draft.c m_getfld2.c m_gmprot.c \ m_name.c \ makedir.c mts.c norm_charmap.c \ path.c pidwait.c pidstatus.c \ @@ -70,16 +72,11 @@ SRCS = addrsbr.c ambigsw.c brkstring.c \ smatch.c snprintb.c strcasecmp.c \ strindex.c trim.c trimcpy.c uprf.c vfgets.c fmt_def.c \ mf.c utils.c m_mktemp.c seq_msgstats.c \ - unquote.c encode_rfc2047.c + unquote.c encode_rfc2047.c parse_msgs.c \ + getthreadid.c OBJS = $(SRCS:.c=.o) -# auxiliary files -AUX = Makefile.in sigmsg.awk dtimep.lex - -# all files in this directory included in the distribution -DIST = $(SRCS) $(AUX) - # ========= DEPENDENCIES FOR BUILDING ========== # default target @@ -100,14 +97,16 @@ dtimep.c: dtimep.lex pidstatus.o: sigmsg.h -libmh.a: $(OBJS) $(LOCALLIBS) +libmh.a: $(OBJS) $(LOCALLIBS) version.c rm -f $@ + $(COMPILE) -DVERSION="\"$(VERSION)\"" -o version.o $(srcdir)/version.c if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \ - $(LIBTOOL) -static -c -o libmh.a $(OBJS) $(LOCALLIBS) ; \ + $(LIBTOOL) -static -c -o libmh.a $(OBJS) $(LOCALLIBS) version.o; \ else \ - ar cr libmh.a `$(LORDER) $(OBJS) $(LOCALLIBS) | $(TSORT) 2>/dev/null` ; \ + ar cr libmh.a `$(LORDER) $(OBJS) $(LOCALLIBS) version.o | $(TSORT) 2>/dev/null` ; \ $(RANLIB) libmh.a ; \ fi + rm -f version.o install: @@ -119,10 +118,10 @@ mostlyclean: rm -f *.o *~ clean: mostlyclean - rm -f libmh.a sigmsg.h dtimep.c + rm -f libmh.a sigmsg.h distclean: clean - rm -f Makefile + rm -f Makefile dtimep.c realclean: distclean @@ -134,11 +133,3 @@ subdir = sbr Makefile: Makefile.in ../config.status cd .. && ./config.status $(subdir)/$@ - -distdir = ../`cat ../distname`/$(subdir) -mmhdist: $(DIST) - @echo "Copying distribution files in $(subdir)" - @for file in $(DIST); do \ - cp -p $(srcdir)/$$file $(distdir); \ - done -