From 191566780e04760dc8d128133172a167d2011516 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 13 Mar 2000 23:20:01 +0000 Subject: Adding libtool support to HEAD branch. We're going to need this for various things yet to be merged from TNG. The smbwrapper stuff should probably be ported across too. (This used to be commit b183c24220154b33fbb1c1712d1ef819ef4e1290) --- source3/Makefile.in | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'source3/Makefile.in') diff --git a/source3/Makefile.in b/source3/Makefile.in index cd7447502d..d2c5a289c6 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -14,11 +14,16 @@ CPPFLAGS=@CPPFLAGS@ LDFLAGS=@LDFLAGS@ AWK=@AWK@ +LIBTOOL=@LIBTOOL@ --quiet +LIBTOOL_DEPS=@LIBTOOL_DEPS@ +LINK=$(LIBTOOL) --mode=link $(CC) $(FLAGS) $(LDFLAGS) + INSTALLCMD=@INSTALL@ VPATH=@srcdir@ srcdir=@srcdir@ builddir=@builddir@ +top_builddir=. SHELL=/bin/sh BASEDIR= @prefix@ @@ -297,7 +302,7 @@ debug2html : CHECK bin/debug2html smbfilter : CHECK bin/smbfilter .SUFFIXES: -.SUFFIXES: .c .o .po .po32 +.SUFFIXES: .c .o .po .po32 .lo CHECK: @echo "Using FLAGS = $(FLAGS)" @@ -329,6 +334,21 @@ MAKEDIR = || exec false; \ @MAINT@ <.deps/$@ >.deps/$@d && \ @MAINT@ rm -f .deps/$@ && : >.deps/.stamp +# This is for libtool +.c.lo: @MAINT@ .deps/.dummy + @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \ + dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi +@MAINT@ @if (: >> .deps/$@ || : > .deps/$@) >/dev/null 2>&1; then :; \ +@MAINT@ else dir=.deps/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \ +@MAINT@ $(MAKEDIR); fi; rm -f .deps/$@ .deps/$@d + @echo Compiling $< with libtool + @$(LIBTOOL) --mode=compile \ + $(CC) -I. -I$(srcdir) $(FLAGS) -c $< \ + -o $@ @MAINT@ -Wp,-MD,.deps/$@ +@MAINT@ @sed 's|^.*'`echo $* | sed 's,.*/,,'`'.*:|$@:|' \ +@MAINT@ <.deps/$@ >.deps/$@d && \ +@MAINT@ rm -f .deps/$@ && : >.deps/.stamp + .c.po: @MAINT@ .deps/.dummy @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \ dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi -- cgit