diff options
author | Tim Potter <tpot@samba.org> | 2000-03-13 23:20:01 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-03-13 23:20:01 +0000 |
commit | 191566780e04760dc8d128133172a167d2011516 (patch) | |
tree | f68744f0a22f44b2ff3f7534bc1ca93bca59454a /source3/Makefile.in | |
parent | 01d88573ea1b3809a3e264989e1e04cd397528f7 (diff) | |
download | samba-191566780e04760dc8d128133172a167d2011516.tar.gz samba-191566780e04760dc8d128133172a167d2011516.tar.xz samba-191566780e04760dc8d128133172a167d2011516.zip |
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)
Diffstat (limited to 'source3/Makefile.in')
-rw-r--r-- | source3/Makefile.in | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in index cd7447502db..d2c5a289c6e 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 |