From 42c25d444af1863572547bd060efd7eb217f08d6 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 23 Dec 2012 21:18:08 +0400 Subject: common.mk: define libsuffix (e. g. empty or /amd64); undefine bindir --- rules/autotools.mk | 8 ++++---- rules/common.mk | 15 ++++++--------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/rules/autotools.mk b/rules/autotools.mk index afdf6e5..4d284c4 100644 --- a/rules/autotools.mk +++ b/rules/autotools.mk @@ -38,12 +38,12 @@ configure-env = \ configure-options = \ - --prefix="$(prefix)" \ - --libdir="$(libdir)" \ - --bindir="$(bindir)" \ + --prefix=$(prefix) \ + --libdir=\$${prefix}/lib$(lib-suffix.$(variant)) \ + --bindir=\$${prefix}/bin \ --includedir=\$${prefix}/include \ - --infodir=/usr/share/info \ --mandir=\$${prefix}/share/man \ + --infodir=/usr/share/info \ --localstatedir=/var \ $(configure-options.$(variant)) \ diff --git a/rules/common.mk b/rules/common.mk index 2811539..7de5728 100644 --- a/rules/common.mk +++ b/rules/common.mk @@ -77,21 +77,18 @@ export CFLAGS = -O2 $(CFLAGS.$(variant)) export CXXFLAGS = -O2 $(CXXFLAGS.$(variant)) prefix = /usr -libdir.32 = $(prefix)/lib/$(mach32) -libdir.64 = $(prefix)/lib/$(mach64) -bindir.32 = $(prefix)/bin -bindir.64 = $(prefix)/bin -includedir = /usr/include -libdir.noarch = $(prefix)/lib -bindir.noarch = $(prefix)/bin + +lib-suffix.noarch = +lib-suffix.32 = +lib-suffix.64 = /$(mach64) + +libdir = $(prefix)/lib$(lib-suffix.$(variant)) PKG_CONFIG_PATH.32 = /usr/gnu/lib/$(mach32)/pkgconfig:/usr/lib/$(mach32)/pkgconfig PKG_CONFIG_PATH.64 = /usr/gnu/lib/$(mach64)/pkgconfig:/usr/lib/$(mach64)/pkgconfig export PKG_CONFIG_PATH = PKG_CONFIG_PATH.$(bits) # $(bits) are target-specific and defined in 32.mk or 64.mk -bindir = $(bindir.$(bits)) -libdir = $(libdir.$(bits)) CC = $(CC.$(bits)) CXX = $(CXX.$(bits)) -- cgit v1.2.3