aboutsummaryrefslogtreecommitdiff
path: root/mk/sys.mk
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-28 11:08:49 +0000
committerRoy Marples <roy@marples.name>2008-02-28 11:08:49 +0000
commitf092045650faad778d25d000d80b3128664d2e2a (patch)
tree89188e92a4d01423ee59e33e5eaf5355fa14d103 /mk/sys.mk
parentaabf3976db5ffb41f8f8bbd47f5015b4158e095a (diff)
Support the use of PREFIX and PKG_PREFIX.
Diffstat (limited to 'mk/sys.mk')
-rw-r--r--mk/sys.mk15
1 files changed, 9 insertions, 6 deletions
diff --git a/mk/sys.mk b/mk/sys.mk
index 7be86426..e3111e37 100644
--- a/mk/sys.mk
+++ b/mk/sys.mk
@@ -7,23 +7,26 @@ INSTALL?= install
RANLIB?= ranlib
SH= /bin/sh
+PREFIX=
+PKG_PREFIX= /usr/local
+
PICFLAG?= -fPIC
-BINDIR?= /sbin
+BINDIR?= ${PREFIX}/sbin
BINMODE?= 0755
-INCDIR?= /usr/include
+INCDIR?= ${PREFIX}/usr/include
INCMODE?= 0444
LIBNAME?= lib
-LIBDIR?= /usr/${LIBNAME}
+LIBDIR?= ${PREFIX}/usr/${LIBNAME}
LIBMODE?= 0444
-SHLIBDIR?= /${LIBNAME}
+SHLIBDIR?= ${PREFIX}/${LIBNAME}
-MANDIR?= /usr/share/man/man
+MANDIR?= ${PREFIX}/usr/share/man/man
MANMODE?= 0444
-DOCDIR?= /usr/share/doc
+DOCDIR?= ${PREFIX}/usr/share/doc
DOCMODE?= 0644
CONFMODE?= 0644