1# $FreeBSD: src/share/mk/bsd.own.mk,v 1.27.2.4 2002/07/22 14:21:51 ru Exp $ 2# 3# The include file <bsd.own.mk> set common variables for owner, 4# group, mode, and directories. Defaults are in brackets. 5# 6# 7# +++ variables +++ 8# 9# DESTDIR Change the tree where the file gets installed. [not set]. 10# Typical usage is ${DESTDIR}/usr/bin/... Note that this 11# variable is not used to determine where programs access 12# auxillary data, only where everything is installed. 13# 14# DISTDIR Change the tree where the file for a distribution 15# gets installed (see /usr/src/release/Makefile). [not set] 16# 17# TOOLS_PREFIX Change the tree where the program will search for auxillary 18# program binaries. Defaults to <empty>. e.g. usage is in 19# the typical form ${TOOLS_PREFIX}/usr/libexec/... 20# 21# This is primarily used when generating cross-building tools 22# where the cross-building tools must exec auxillary binaries 23# which are themselves cross-built tools. 24# 25# This variable specifies how a program looks for data, it does 26# NOT specify where a program installs data. 27# 28# USRDATA_PREFIX 29# Change the tree where the program will search for auxillary 30# data files. Defaults to ${TOOLS_PREFIX} 31# 32# Note that while auxillary program binaries and auxillary 33# data files are usually installed in the same tree, there 34# are cases where they might not be. For example, when 35# buildworld generates the cross compile tools it must install 36# auxillary binaries in the ctools obj hiearchy but those 37# binaries must access data from the world obj hierarchy. 38# 39# This variable specifies how a program looks for data, it does 40# NOT specify where a program installs data. 41# 42# INCLUDEDIR 43# Change the tree where header files are to be installed. 44# Defaults to /usr/include. Note that use of INCLUDEDIR 45# is typically prefixed by ${DESTDIR}. 46# 47# COMPRESS_CMD Program to compress documents. 48# Output is to stdout. [gzip -cn] 49# 50# COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz] 51# 52# STRIP The flag passed to the install program to cause the binary 53# to be stripped. This is to be used when building your 54# own install script so that the entire system can be made 55# stripped/not-stripped using a single knob. [-s] 56# 57# BINOWN Binary owner. [root] 58# 59# BINGRP Binary group. [wheel] 60# 61# BINMODE Binary mode. [555] 62# 63# CCVER Default compiler version 64# GCCLIBDIR Default gcc subdirectory [${LIBDIR}/${CCVER}] 65# GCCSHLIBDIR Default gcc subdirectory [${SHLIBDIR}/${CCVER}] 66# 67# NOBINMODE Mode for non-executable files. [444] 68# 69# LIBDIR Base path for libraries. [/usr/lib] 70# 71# LIBDATADIR Base path for misc. utility data files. [/usr/libdata] 72# 73# LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint] 74# 75# SHLIBDIR Base path for shared libraries. [${LIBDIR}] 76# 77# LIBOWN Library mode. [${BINOWN}] 78# 79# LIBGRP Library group. [${BINGRP}] 80# 81# LIBMODE Library mode. [${NOBINMODE}] 82# 83# 84# SHAREDIR Base path for architecture-independent ascii 85# text files. [/usr/share] 86# 87# SHAREOWN ASCII text file owner. [root] 88# 89# SHAREGRP ASCII text file group. [wheel] 90# 91# SHAREMODE ASCII text file mode. [${NOBINMODE}] 92# 93# 94# DOCDIR Base path for system documentation (e.g. PSD, USD, 95# handbook, FAQ etc.). [${SHAREDIR}/doc] 96# 97# DOCOWN Documentation owner. [${SHAREOWN}] 98# 99# DOCGRP Documentation group. [${SHAREGRP}] 100# 101# DOCMODE Documentation mode. [${NOBINMODE}] 102# 103# 104# INFODIR Base path for GNU's hypertext system 105# called Info (see info(1)). [${SHAREDIR}/info] 106# 107# INFOOWN Info owner. [${SHAREOWN}] 108# 109# INFOGRP Info group. [${SHAREGRP}] 110# 111# INFOMODE Info mode. [${NOBINMODE}] 112# 113# 114# MANDIR Base path for manual installation. [${SHAREDIR}/man/man] 115# 116# MANOWN Manual owner. [${SHAREOWN}] 117# 118# MANGRP Manual group. [${SHAREGRP}] 119# 120# MANMODE Manual mode. [${NOBINMODE}] 121# 122# 123# NLSDIR Base path for National Language Support files 124# installation (see localedef(1)). [${SHAREDIR}/nls] 125# 126# NLSGRP National Language Support files group. [${SHAREOWN}] 127# 128# NLSOWN National Language Support files owner. [${SHAREGRP}] 129# 130# NLSMODE National Language Support files mode. [${NOBINMODE}] 131 132.if !target(__<bsd.own.mk>__) 133__<bsd.own.mk>__: 134 135# Binaries 136BINOWN?= root 137BINGRP?= wheel 138BINMODE?= 555 139NOBINMODE?= 444 140 141LIBDIR?= /usr/lib 142GCCLIBDIR?= ${LIBDIR}/${CCVER} 143LIBDATADIR?= /usr/libdata 144LINTLIBDIR?= /usr/libdata/lint 145DEBUGLIBDIR?= ${LIBDIR}/debug 146PROFLIBDIR?= ${LIBDIR}/profile 147SHLIBDIR?= ${LIBDIR} 148GCCSHLIBDIR?= ${SHLIBDIR}/${CCVER} 149LIBOWN?= ${BINOWN} 150LIBGRP?= ${BINGRP} 151LIBMODE?= ${NOBINMODE} 152 153TOOLS_PREFIX?= 154USRDATA_PREFIX?= ${TOOLS_PREFIX} 155INCLUDEDIR?= /usr/include 156 157# Share files 158SHAREDIR?= /usr/share 159SHAREOWN?= root 160SHAREGRP?= wheel 161SHAREMODE?= ${NOBINMODE} 162 163MANDIR?= ${SHAREDIR}/man/man 164MANOWN?= ${SHAREOWN} 165MANGRP?= ${SHAREGRP} 166MANMODE?= ${NOBINMODE} 167 168DOCDIR?= ${SHAREDIR}/doc 169DOCOWN?= ${SHAREOWN} 170DOCGRP?= ${SHAREGRP} 171DOCMODE?= ${NOBINMODE} 172 173INFODIR?= ${SHAREDIR}/info 174INFOOWN?= ${SHAREOWN} 175INFOGRP?= ${SHAREGRP} 176INFOMODE?= ${NOBINMODE} 177 178NLSDIR?= ${SHAREDIR}/nls 179NLSGRP?= ${SHAREGRP} 180NLSOWN?= ${SHAREOWN} 181NLSMODE?= ${NOBINMODE} 182 183LOCALEDIR?= ${SHAREDIR}/locale 184LOCALEGRP?= ${SHAREGRP} 185LOCALEOWN?= ${SHAREOWN} 186LOCALEMODE?= ${NOBINMODE} 187 188# Common variables 189.if !defined(DEBUG_FLAGS) 190STRIP?= -s 191.endif 192 193COMPRESS_CMD?= gzip -cn 194COMPRESS_EXT?= .gz 195 196.endif # !target(__<bsd.own.mk>__) 197