diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-05T12·17+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-05T12·17+0200 |
commit | 075cfe3b97bf0e90577bb7e842ba467524fad0ef (patch) | |
tree | d6675899455abe1472c260feb0e7584ab8f9804a /lib.mk | |
parent | afbdd5533448724aaf32b434fda8478ad5d80a0f (diff) |
Add support for using a build directory
Diffstat (limited to 'lib.mk')
-rw-r--r-- | lib.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib.mk b/lib.mk index 8b109e2ce8da..aa92d8d94304 100644 --- a/lib.mk +++ b/lib.mk @@ -25,6 +25,16 @@ sysconfdir ?= $(prefix)/etc mandir ?= $(prefix)/share/man +# Initialise support for build directories. +builddir ?= + +ifdef builddir + buildprefix = $(builddir)/ +else + buildprefix = +endif + + # Pass -fPIC if we're building dynamic libraries. BUILD_SHARED_LIBS ?= 1 |