openrc/mk/sys.mk

36 lines
639 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})
PKG_PREFIX= /usr/local
2008-01-11 16:03:38 +00:00
PICFLAG?= -fPIC
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
LIBNAME?= lib
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