openrc/mk/sys.mk

50 lines
1.0 KiB
Makefile
Raw Normal View History

2008-01-11 16:03:38 +00:00
# Generic system definitions
2009-05-01 15:11:40 +01:00
# Copyright (c) 2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.
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?=
2008-03-01 22:12:33 +00:00
_UPREFIX_SH= case "${PREFIX}" in "") echo /usr;; *) echo "${PREFIX}";; esac
_UPREFIX:= $(shell ${_UPREFIX_SH})
UPREFIX= ${_UPREFIX}
LOCAL_PREFIX= /usr/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}/sbin
BINMODE?= 0755
2008-01-11 16:03:38 +00:00
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