openrc/mk/sys.mk

42 lines
871 B
Makefile
Raw Normal View History

2008-01-11 16:03:38 +00:00
# Generic system definitions
# Copyright 2008 Roy Marples
AR?= ar
ECHO?= echo
INSTALL?= install
RANLIB?= ranlib
SH= /bin/sh
2008-01-11 16:03:38 +00:00
2008-03-01 22:12:33 +00:00
PREFIX?=
_UPREFIX_SH= case "${PREFIX}" in "") echo /usr;; *) echo "${PREFIX}";; esac
_UPREFIX!= ${_UPREFIX_SH}
UPREFIX= ${_UPREFIX}$(shell ${_UPREFIX_SH})
LOCAL_PREFIX= /usr/local
2008-01-11 16:03:38 +00:00
PICFLAG?= -fPIC
2008-03-05 12:27:11 +00:00
SYSCONFDIR?= /etc
INITDIR?= ${SYSCONFDIR}/init.d
CONFDIR?= ${SYSCONFDIR}/conf.d
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!= ${_LIBNAME_SH}
LIBNAME?= ${_LIBNAME}$(shell ${_LIBNAME_SH})
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
2008-03-01 22:12:33 +00:00
MANDIR?= ${UPREFIX}/share/man/man
2008-01-11 16:03:38 +00:00
MANMODE?= 0444
2008-03-01 22:12:33 +00:00
DOCDIR?= ${UPREFIX}/share/doc
2008-02-01 13:24:09 +00:00
DOCMODE?= 0644
2008-01-30 10:04:15 +00:00
CONFMODE?= 0644