36 lines
639 B
Makefile
36 lines
639 B
Makefile
# Generic system definitions
|
|
# Copyright 2008 Roy Marples
|
|
|
|
AR?= ar
|
|
ECHO?= echo
|
|
INSTALL?= install
|
|
RANLIB?= ranlib
|
|
SH= /bin/sh
|
|
|
|
PREFIX?=
|
|
_UPREFIX_SH= case "${PREFIX}" in "") echo /usr;; *) echo "${PREFIX}";; esac
|
|
_UPREFIX!= ${_UPREFIX_SH}
|
|
UPREFIX= ${_UPREFIX}$(shell ${_UPREFIX_SH})
|
|
PKG_PREFIX= /usr/local
|
|
|
|
PICFLAG?= -fPIC
|
|
|
|
BINDIR?= ${PREFIX}/sbin
|
|
BINMODE?= 0755
|
|
|
|
INCDIR?= ${UPREFIX}/include
|
|
INCMODE?= 0444
|
|
|
|
LIBNAME?= lib
|
|
LIBDIR?= ${UPREFIX}/${LIBNAME}
|
|
LIBMODE?= 0444
|
|
SHLIBDIR?= ${PREFIX}/${LIBNAME}
|
|
|
|
MANDIR?= ${UPREFIX}/share/man/man
|
|
MANMODE?= 0444
|
|
|
|
DOCDIR?= ${UPREFIX}/share/doc
|
|
DOCMODE?= 0644
|
|
|
|
CONFMODE?= 0644
|