openrc/mk/sys.mk

65 lines
1.5 KiB
Makefile
Raw Normal View History

2008-01-11 16:03:38 +00:00
# Generic system definitions
# 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 16:03:38 +00:00
AR?= ar
2008-03-26 14:27:46 +00:00
CP?= cp
2008-01-11 16:03:38 +00:00
ECHO?= echo
INSTALL?= install
RANLIB?= ranlib
2008-03-26 14:27:46 +00:00
SED?= sed
SH= /bin/sh
2008-01-11 16:03:38 +00:00
2012-01-22 01:17:42 +01:00
PREFIX?=
ifeq (${PREFIX},)
UPREFIX= /usr
else
UPREFIX= ${PREFIX}
ifeq (${MKPREFIX},yes)
UPREFIX= ${PREFIX}/usr
endif
endif
LOCAL_PREFIX= $(UPREFIX)/local
2008-01-11 16:03:38 +00:00
PICFLAG?= -fPIC
2008-03-26 05:08:56 +00:00
SYSCONFDIR?= ${PREFIX}/etc
2008-03-05 12:27:11 +00:00
INITDIR?= ${SYSCONFDIR}/init.d
CONFDIR?= ${SYSCONFDIR}/conf.d
LOCALDIR?= ${SYSCONFDIR}/local.d
SYSCTLDIR?= ${SYSCONFDIR}/sysctl.d
2008-03-05 12:27:11 +00:00
BINDIR?= ${PREFIX}/bin
BINMODE?= 0755
2008-01-11 16:03:38 +00:00
SBINDIR?= ${PREFIX}/sbin
SBINMODE?= 0755
2008-03-01 22:12:33 +00:00
INCDIR?= ${UPREFIX}/include
2008-01-11 16:03:38 +00:00
INCMODE?= 0444
2008-03-04 20:44:39 +00:00
_LIBNAME_SH= case `readlink /lib` in /lib64|lib64) echo "lib64";; *) echo "lib";; esac
_LIBNAME:= $(shell ${_LIBNAME_SH})
LIBNAME?= ${_LIBNAME}
2008-03-01 22:12:33 +00:00
LIBDIR?= ${UPREFIX}/${LIBNAME}
2008-01-11 16:03:38 +00:00
LIBMODE?= 0444
SHLIBDIR?= ${PREFIX}/${LIBNAME}
2008-01-11 16:03:38 +00:00
LIBEXECDIR?= ${PREFIX}/libexec/rc
2008-03-25 17:24:54 +00:00
MANPREFIX?= ${UPREFIX}/share
2008-03-25 20:39:31 +00:00
MANDIR?= ${MANPREFIX}/man
2008-01-11 16:03:38 +00:00
MANMODE?= 0444
2008-03-01 22:12:33 +00:00
DOCDIR?= ${UPREFIX}/share/doc
2012-01-22 01:17:42 +01:00
DOCMODE?= 0644
2008-02-01 13:24:09 +00:00
2008-01-30 10:04:15 +00:00
CONFMODE?= 0644