2008-01-11 21:33:38 +05:30
|
|
|
# Generic system definitions
|
|
|
|
# Copyright 2008 Roy Marples
|
|
|
|
|
|
|
|
AR?= ar
|
|
|
|
ECHO?= echo
|
|
|
|
INSTALL?= install
|
|
|
|
RANLIB?= ranlib
|
2008-02-28 01:59:32 +05:30
|
|
|
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!= ${_UPREFIX_SH}
|
|
|
|
UPREFIX= ${_UPREFIX}$(shell ${_UPREFIX_SH})
|
2008-02-28 16:38:49 +05:30
|
|
|
PKG_PREFIX= /usr/local
|
|
|
|
|
2008-01-11 21:33:38 +05:30
|
|
|
PICFLAG?= -fPIC
|
|
|
|
|
2008-03-05 17:57:11 +05:30
|
|
|
SYSCONFDIR?= /etc
|
|
|
|
INITDIR?= ${SYSCONFDIR}/init.d
|
|
|
|
CONFDIR?= ${SYSCONFDIR}/conf.d
|
|
|
|
|
2008-02-28 16:38:49 +05:30
|
|
|
BINDIR?= ${PREFIX}/sbin
|
2008-01-30 15:32:53 +05:30
|
|
|
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!= ${_LIBNAME_SH}
|
|
|
|
LIBNAME?= ${_LIBNAME}$(shell ${_LIBNAME_SH})
|
2008-03-02 03:42:33 +05:30
|
|
|
LIBDIR?= ${UPREFIX}/${LIBNAME}
|
2008-01-11 21:33:38 +05:30
|
|
|
LIBMODE?= 0444
|
2008-02-28 16:38:49 +05:30
|
|
|
SHLIBDIR?= ${PREFIX}/${LIBNAME}
|
2008-01-11 21:33:38 +05:30
|
|
|
|
2008-03-02 03:42:33 +05:30
|
|
|
MANDIR?= ${UPREFIX}/share/man/man
|
2008-01-11 21:33:38 +05:30
|
|
|
MANMODE?= 0444
|
2008-01-30 15:32:53 +05:30
|
|
|
|
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
|