aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2012-08-31 09:22:12 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-08-31 10:40:47 -0500
commit9e88d73aaaba93d716ecd49767dfcdf3ffdbff30 (patch)
tree25f26e955406827c3bee4e27bd3d7e467656e88e /mk
parent1f011573544487bab0bee9d2a3d6ffa81c08ff48 (diff)
add MKPREFIX flag to build system
This allows building OpenRC for a Gentoo Prefix installation.
Diffstat (limited to 'mk')
-rw-r--r--mk/os-prefix.mk6
-rw-r--r--mk/os.mk1
2 files changed, 7 insertions, 0 deletions
diff --git a/mk/os-prefix.mk b/mk/os-prefix.mk
new file mode 100644
index 00000000..94fda963
--- /dev/null
+++ b/mk/os-prefix.mk
@@ -0,0 +1,6 @@
+# Copyright (c) 2012 William Hubbs <w.d.hubbs@gmail.com>
+# Released under the 2-clause BSD license.
+
+ifeq (${MKPREFIX},yes}
+CPPFLAGS+= -DPREFIX
+endif
diff --git a/mk/os.mk b/mk/os.mk
index c306f05f..3e189625 100644
--- a/mk/os.mk
+++ b/mk/os.mk
@@ -7,5 +7,6 @@ _OS_SH= uname -s
_OS:= $(shell ${_OS_SH})
OS?= ${_OS}
include ${MK}/os-${OS}.mk
+include ${MK}/os-prefix.mk
RC_LIB= /$(LIBNAME)/rc