From: Jan Nieuwenhuizen Date: Thu, 18 Jul 2002 00:36:18 +0000 (+0000) Subject: * stepmake/stepmake/compile-vars.make: X-Git-Tag: release/1.5.69~18 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=10b40b652e8794617ce95dba2fdb8150f0eeffa3;p=lilypond.git * stepmake/stepmake/compile-vars.make: * stepmake/stepmake/executable-rules.make: * stepmake/stepmake/python-module-rules.make: * stepmake/stepmake/shared-library-rules.make: Use ALL_LDFLAGS, to guard agains user override of LDFLAGS. --- diff --git a/ChangeLog b/ChangeLog index 5236dd34d9..516d56e8fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2002-07-18 Jan Nieuwenhuizen + * stepmake/stepmake/compile-vars.make: + * stepmake/stepmake/executable-rules.make: + * stepmake/stepmake/python-module-rules.make: + * stepmake/stepmake/shared-library-rules.make: Use ALL_LDFLAGS, to + guard agains user override of LDFLAGS. + * Documentation/user/refman.itely: Compile fix for \mark #'(music ...). * Documentation/user/internals.itely: Use ly-set-mus-property!. diff --git a/buildscripts/walk.sh b/buildscripts/walk.sh deleted file mode 100644 index a1ffd5c1d9..0000000000 --- a/buildscripts/walk.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!@SHELL@ -# walk.sh -# ugh -# print reversed relative path to $1 - -function base () -{ - expr "$1" : "\(/[^/]*\)" -} - -function unbase () -{ - expr "$1" : "/[^/]*\(.*\)" -} - -function walk () -{ - if expr "$1" : '/' > /dev/null 2>&1; then - c=../ - fi - from=`(cd "$1" && pwd) | sed 's://*:/:g'` - to=`pwd | sed 's://*:/:g'` - t=`base "$to"` - f=`base "$from"` - while [ -n "$t" -a "$t" = "$f" ]; do - to=`unbase "$to"` - from=`unbase "$from"` - t=`base "$to"` - f=`base "$from"` - done - i=`echo $from | sed -e 's:[^/]\+:..:g'` - i=`echo $i | sed -e 's:/[.][.]:..:'` - echo $c$i$to -} - -walk $1 - diff --git a/make/generic-vars.make b/make/generic-vars.make index f3406eaf0f..d809ef632e 100644 --- a/make/generic-vars.make +++ b/make/generic-vars.make @@ -8,9 +8,6 @@ # you do make dist # - -# using src-depth iso depth is only necessary for broken rules that do -# cd $(outdir) && foo $(depth) ... buildscript-dir = $(src-depth)/buildscripts script-dir = $(src-depth)/scripts input-dir = $(src-depth)/input diff --git a/stepmake/stepmake/compile-vars.make b/stepmake/stepmake/compile-vars.make index 04725547b8..085a4363e6 100644 --- a/stepmake/stepmake/compile-vars.make +++ b/stepmake/stepmake/compile-vars.make @@ -1,6 +1,6 @@ ARFLAGS = ru -LDFLAGS = $(ILDFLAGS) $(EXTRA_LDFLAGS) $($(PACKAGE)_LDFLAGS) $(MODULE_LDFLAGS) $(USER_LDFLAGS) +ALL_LDFLAGS = $(LDFLAGS) $(ILDFLAGS) $(EXTRA_LDFLAGS) $($(PACKAGE)_LDFLAGS) $(MODULE_LDFLAGS) $(USER_LDFLAGS) PIC_FLAGS = -fpic -fPIC SHARED_FLAGS = -shared diff --git a/stepmake/stepmake/executable-rules.make b/stepmake/stepmake/executable-rules.make index 7f0b076dc8..5d25e923f5 100644 --- a/stepmake/stepmake/executable-rules.make +++ b/stepmake/stepmake/executable-rules.make @@ -1,4 +1,4 @@ $(EXECUTABLE): $(outdir)/config.h $(O_FILES) $(outdir)/version.hh $(foreach a, $(MODULE_LIBS), $(MAKE) -C $(a) && ) true - $(LD) -o $@ $(O_FILES) $(LOADLIBES) $(LDFLAGS) + $(LD) -o $@ $(O_FILES) $(LOADLIBES) $(ALL_LDFLAGS) diff --git a/stepmake/stepmake/generic-vars.make b/stepmake/stepmake/generic-vars.make index 7b457f3c5a..c47a444f33 100644 --- a/stepmake/stepmake/generic-vars.make +++ b/stepmake/stepmake/generic-vars.make @@ -11,13 +11,11 @@ topdir := $(abs-srcdir) endif pwd := $(shell pwd) -# $(depth) is deprecated, for most cases you'll want $(src-depth) -# -# Well, on second thought. -# It can do no harm, but using src-depth iso depth is only necessary -# for broken rules that do -# cd $(outdir) && foo $(depth) ... -src-depth = $(depth)/$(srcdir) +ifeq ($(srcdir),.) +src-depth = $(depth) +else +src-depth = $(srcdir) +endif # derived names ifeq ($(distdir),) @@ -26,11 +24,6 @@ ifeq ($(distdir),) endif distname = $(package)-$(TOPLEVEL_VERSION) -# obsolete? -#makeout = $(depth)/make/$(outdir) -#docout = $(depth)/Documentation/$(outdir) -#binout = $(depth)/bin/$(outdir) - doc-dir = $(src-depth)/Documentation po-dir = $(src-depth)/po diff --git a/stepmake/stepmake/python-module-rules.make b/stepmake/stepmake/python-module-rules.make index e8087596eb..9a3c26bc04 100644 --- a/stepmake/stepmake/python-module-rules.make +++ b/stepmake/stepmake/python-module-rules.make @@ -1,3 +1,3 @@ $(outdir)/%$(SHARED_LIB_SUFFIX): $(outdir)/%.lo - $(LD) $(SHARED_FLAGS) -o $@ $< $(LDFLAGS) + $(LD) $(SHARED_FLAGS) -o $@ $< $(ALL_LDFLAGS) diff --git a/stepmake/stepmake/shared-library-rules.make b/stepmake/stepmake/shared-library-rules.make index d4256de5a7..bb68473be9 100644 --- a/stepmake/stepmake/shared-library-rules.make +++ b/stepmake/stepmake/shared-library-rules.make @@ -1,6 +1,6 @@ $(SHARED_LIBRARY): $(outdir)/config.h $(LO_FILES) - $(LD) $(SHARED_FLAGS) -o $@.$(VERSION) $(LO_FILES) $(LDFLAGS) + $(LD) $(SHARED_FLAGS) -o $@.$(VERSION) $(LO_FILES) $(ALL_LDFLAGS) rm -f $@.$(MAJOR_VERSION) ln -sf $(outdir)/$(LIB_PREFIX)$(NAME).so.$(VERSION) $@.$(MAJOR_VERSION) rm -f $@