2008-01-11 21:33:38 +05:30
|
|
|
# Generic system definitions
|
2015-12-05 04:22:19 +05:30
|
|
|
# Copyright (c) 2008-2015 The OpenRC Authors.
|
|
|
|
# See the Authors file at the top-level directory of this distribution and
|
|
|
|
# https://github.com/OpenRC/openrc/blob/master/AUTHORS
|
|
|
|
#
|
|
|
|
# This file is part of OpenRC. It is subject to the license terms in
|
|
|
|
# the LICENSE file found in the top-level directory of this
|
|
|
|
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
|
|
|
|
# This file may not be copied, modified, propagated, or distributed
|
|
|
|
# except according to the terms contained in the LICENSE file.
|
2008-01-11 21:33:38 +05:30
|
|
|
|
|
|
|
AR?= ar
|
2008-03-26 19:57:46 +05:30
|
|
|
CP?= cp
|
2016-06-29 17:57:37 +05:30
|
|
|
PKG_CONFIG?= pkg-config
|
2008-01-11 21:33:38 +05:30
|
|
|
ECHO?= echo
|
|
|
|
INSTALL?= install
|
|
|
|
RANLIB?= ranlib
|
2008-03-26 19:57:46 +05:30
|
|
|
SED?= sed
|
2008-02-28 01:59:32 +05:30
|
|
|
SH= /bin/sh
|
2008-01-11 21:33:38 +05:30
|
|
|
|
2012-01-22 05:47:42 +05:30
|
|
|
PREFIX?=
|
2012-09-01 02:24:52 +05:30
|
|
|
ifeq (${PREFIX},)
|
|
|
|
UPREFIX= /usr
|
|
|
|
else
|
|
|
|
UPREFIX= ${PREFIX}
|
|
|
|
ifeq (${MKPREFIX},yes)
|
|
|
|
UPREFIX= ${PREFIX}/usr
|
|
|
|
endif
|
|
|
|
endif
|
2016-06-14 04:13:36 +05:30
|
|
|
LOCAL_PREFIX= $(UPREFIX)/local
|
2008-02-28 16:38:49 +05:30
|
|
|
|
2008-01-11 21:33:38 +05:30
|
|
|
PICFLAG?= -fPIC
|
|
|
|
|
2008-03-26 10:38:56 +05:30
|
|
|
SYSCONFDIR?= ${PREFIX}/etc
|
2008-03-05 17:57:11 +05:30
|
|
|
INITDIR?= ${SYSCONFDIR}/init.d
|
|
|
|
CONFDIR?= ${SYSCONFDIR}/conf.d
|
2017-12-07 23:00:32 +05:30
|
|
|
CONFMODE?= 0644
|
2011-01-06 23:43:33 +05:30
|
|
|
LOCALDIR?= ${SYSCONFDIR}/local.d
|
2012-02-09 15:19:04 +05:30
|
|
|
SYSCTLDIR?= ${SYSCONFDIR}/sysctl.d
|
2008-03-05 17:57:11 +05:30
|
|
|
|
2013-02-17 11:51:09 +05:30
|
|
|
BINDIR?= ${PREFIX}/bin
|
2008-01-30 15:32:53 +05:30
|
|
|
BINMODE?= 0755
|
2008-01-11 21:33:38 +05:30
|
|
|
|
2013-02-17 11:51:09 +05:30
|
|
|
SBINDIR?= ${PREFIX}/sbin
|
|
|
|
SBINMODE?= 0755
|
|
|
|
|
2008-03-02 03:42:33 +05:30
|
|
|
INCDIR?= ${UPREFIX}/include
|
2018-05-12 02:08:27 +05:30
|
|
|
INCMODE?= 0644
|
2008-01-11 21:33:38 +05:30
|
|
|
|
2008-03-05 02:14:39 +05:30
|
|
|
_LIBNAME_SH= case `readlink /lib` in /lib64|lib64) echo "lib64";; *) echo "lib";; esac
|
2011-01-30 05:02:38 +05:30
|
|
|
_LIBNAME:= $(shell ${_LIBNAME_SH})
|
|
|
|
LIBNAME?= ${_LIBNAME}
|
2008-03-02 03:42:33 +05:30
|
|
|
LIBDIR?= ${UPREFIX}/${LIBNAME}
|
2018-05-12 02:08:27 +05:30
|
|
|
LIBMODE?= 0644
|
2008-02-28 16:38:49 +05:30
|
|
|
SHLIBDIR?= ${PREFIX}/${LIBNAME}
|
2008-01-11 21:33:38 +05:30
|
|
|
|
2009-05-24 01:08:12 +05:30
|
|
|
LIBEXECDIR?= ${PREFIX}/libexec/rc
|
|
|
|
|
2008-03-25 22:54:54 +05:30
|
|
|
MANPREFIX?= ${UPREFIX}/share
|
2008-03-26 02:09:31 +05:30
|
|
|
MANDIR?= ${MANPREFIX}/man
|
2018-05-12 02:08:27 +05:30
|
|
|
MANMODE?= 0644
|
2008-01-30 15:32:53 +05:30
|
|
|
|
2017-12-07 00:51:25 +05:30
|
|
|
BASHCOMPDIR?= ${UPREFIX}/share/bash-completion/completions
|
|
|
|
|
2017-02-18 00:22:38 +05:30
|
|
|
DATADIR?= ${UPREFIX}/share/openrc
|
|
|
|
DATAMODE?= 0644
|
|
|
|
|
2008-03-02 03:42:33 +05:30
|
|
|
DOCDIR?= ${UPREFIX}/share/doc
|
2012-01-22 05:47:42 +05:30
|
|
|
DOCMODE?= 0644
|
2008-02-01 18:54:09 +05:30
|
|
|
|
2017-12-07 23:00:32 +05:30
|
|
|
ZSHCOMPDIR?= ${UPREFIX}/share/zsh/site-functions
|