X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2FMakefile.in;h=02038e74309f72a4c013435a15dfbfc2a03c1934;hp=6bda3700c77c9c38761ab8f4d071ce7fa2e4b98e;hb=f78e7c6e6e616cc4ff2bee8a726365fafef2d8ce;hpb=0347722f5b69de06a867b73ddc23388d082ab219 diff --git a/sbr/Makefile.in b/sbr/Makefile.in index 6bda370..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@ @@ -17,7 +19,9 @@ etcdir = @sysconfdir@ CC = @CC@ CFLAGS = @CFLAGS@ DEFS = @DEFS@ -INCLUDES = -I$(top_srcdir) @CPPFLAGS@ +# add include dir . for sigmsg.h and .. for config.h when building +# in different directory +INCLUDES = -I$(top_srcdir) -I. -I.. @CPPFLAGS@ LEX = @LEX@ AWK = @AWK@ @@ -31,7 +35,7 @@ LINTFLAGS = @LINTFLAGS@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) - +LOCALLIBS = ../config/config.o .SUFFIXES: .SUFFIXES: .c .o @@ -47,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 \ - discard.c done.c dtime.c dtimep.c \ - error.c ext_hook.c folder_addmsg.c folder_delmsgs.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 \ @@ -67,16 +71,11 @@ SRCS = addrsbr.c ambigsw.c brkstring.c \ seq_setprev.c seq_setunseen.c signals.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 + mf.c utils.c m_mktemp.c seq_msgstats.c \ + unquote.c encode_rfc2047.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 @@ -93,18 +92,20 @@ lint: sigmsg.h # 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 + $(LEX) -n -t $(srcdir)/dtimep.lex > $@ pidstatus.o: sigmsg.h -libmh.a: $(OBJS) +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) ; \ + $(LIBTOOL) -static -c -o libmh.a $(OBJS) $(LOCALLIBS) version.o; \ else \ - ar cr libmh.a `$(LORDER) $(OBJS) | $(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: @@ -131,11 +132,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 -