X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2FMakefile.in;h=02038e74309f72a4c013435a15dfbfc2a03c1934;hp=f60bd9aa4245113c31ff8479cc1ccf85c911f577;hb=f78e7c6e6e616cc4ff2bee8a726365fafef2d8ce;hpb=04a3dfc70394a517a79340a7d3ecd9c6a23d0bee diff --git a/sbr/Makefile.in b/sbr/Makefile.in index f60bd9a..02038e7 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,7 +51,7 @@ 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 \ @@ -94,14 +96,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: @@ -128,4 +132,3 @@ subdir = sbr Makefile: Makefile.in ../config.status cd .. && ./config.status $(subdir)/$@ -