openrc/mk/sys.mk

49 lines
1.0 KiB
Makefile
Raw Normal View History

2008-01-11 21:33:38 +05:30
# Generic system definitions
2009-05-01 19:41:40 +05:30
# Copyright (c) 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
2008-01-11 21:33:38 +05:30
AR?= ar
2008-03-26 19:57:46 +05:30
CP?= cp
2008-01-11 21:33:38 +05:30
ECHO?= echo
INSTALL?= install
RANLIB?= ranlib
2008-03-26 19:57:46 +05:30
SED?= sed
SH= /bin/sh
2008-01-11 21:33:38 +05:30
2008-03-02 03:42:33 +05:30
PREFIX?=
_UPREFIX_SH= case "${PREFIX}" in "") echo /usr;; *) echo "${PREFIX}";; esac
_UPREFIX:= $(shell ${_UPREFIX_SH})
UPREFIX= ${_UPREFIX}
LOCAL_PREFIX= /usr/local
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
LOCALDIR?= ${SYSCONFDIR}/local.d
2008-03-05 17:57:11 +05:30
BINDIR?= ${PREFIX}/sbin
BINMODE?= 0755
2008-01-11 21:33:38 +05:30
2008-03-02 03:42:33 +05:30
INCDIR?= ${UPREFIX}/include
2008-01-11 21:33:38 +05:30
INCMODE?= 0444
2008-03-05 02:14:39 +05:30
_LIBNAME_SH= case `readlink /lib` in /lib64|lib64) echo "lib64";; *) echo "lib";; esac
_LIBNAME:= $(shell ${_LIBNAME_SH})
LIBNAME?= ${_LIBNAME}
2008-03-02 03:42:33 +05:30
LIBDIR?= ${UPREFIX}/${LIBNAME}
2008-01-11 21:33:38 +05:30
LIBMODE?= 0444
SHLIBDIR?= ${PREFIX}/${LIBNAME}
2008-01-11 21:33:38 +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
2008-01-11 21:33:38 +05:30
MANMODE?= 0444
2008-03-02 03:42:33 +05:30
DOCDIR?= ${UPREFIX}/share/doc
2008-02-01 18:54:09 +05:30
DOCMODE?= 0644
2008-01-30 15:34:15 +05:30
CONFMODE?= 0644