diff options
-rw-r--r-- | makefiles/Makefile.tools | 5 | ||||
-rw-r--r-- | makefiles/Makefile.top | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools index a7ae724..5b76f23 100644 --- a/makefiles/Makefile.tools +++ b/makefiles/Makefile.tools @@ -19,6 +19,8 @@ # TARGET Target platform (defaults to host) # PREFIX Absolute installation path prefix # (defaults to /usr/local) +# LIBDIR Library installation directory in ${PREFIX} +# (defaults to lib) # ############################################################################### @@ -368,6 +370,9 @@ endif # Default prefix PREFIX ?= /usr/local +# Default libdir +LIBDIR ?= lib + ############################################################################### # Tool defaults ############################################################################### diff --git a/makefiles/Makefile.top b/makefiles/Makefile.top index 031a150..6329c47 100644 --- a/makefiles/Makefile.top +++ b/makefiles/Makefile.top @@ -287,6 +287,7 @@ define install_pkgconfig $(Q)$(ECHO) $(ECHOFLAGS) "sed -e... $1 >$(BUILDDIR)/$(1:.in=)" $(Q)$(SED) \ -e 's#PREFIX#$(PREFIX)#' \ + -e 's#LIBDIR#$(LIBDIR)#' \ -e 's#MAJOR#$(major-version)#' \ -e 's#MINOR#$(minor-version)#' \ -e 's#PATCH#$(patch-version)#' \ |