1# $FreeBSD$ 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# 11# DISTDIR Change the tree where the file for a distribution 12# gets installed (see /usr/src/release/Makefile). [not set] 13# 14# 15# COPY The flag passed to the install program to cause the binary 16# to be copied rather than moved. This is to be used when 17# building our own install script so that the entire system 18# can either be installed with copies, or with moves using 19# a single knob. [-c] 20# 21# COMPRESS_CMD Program to compress documents. 22# Output is to stdout. [gzip -cn] 23# 24# COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz] 25# 26# STRIP The flag passed to the install program to cause the binary 27# to be stripped. This is to be used when building your 28# own install script so that the entire system can be made 29# stripped/not-stripped using a single knob. [-s] 30# 31# OBJFORMAT Default object format that selects which set of tools to run. 32# [elf] 33# 34# BINOWN Binary owner. [root] 35# 36# BINGRP Binary group. [wheel] 37# 38# BINMODE Binary mode. [555] 39# 40# NOBINMODE Mode for non-executable files. [444] 41# 42# INCOWN Include owner. [root] 43# 44# INCGRP Include group. [wheel] 45# 46# INCMODE Include mode. [444] 47# 48# INCDIR Base path for include files. [/usr/include] 49# 50# LIBDIR Base path for libraries. [/usr/lib] 51# 52# LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat] 53# 54# LIBDATADIR Base path for misc. utility data files. [/usr/libdata] 55# 56# LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint] 57# 58# SHLIBDIR Base path for shared libraries. [${LIBDIR}] 59# 60# LIBOWN Library mode. [${BINOWN}] 61# 62# LIBGRP Library group. [${BINGRP}] 63# 64# LIBMODE Library mode. [${NOBINMODE}] 65# 66# 67# KMODDIR Base path for loadable kernel modules 68# (see kld(4)). [/modules] 69# 70# KMODOWN KLD owner. [${BINOWN}] 71# 72# KMODGRP KLD group. [${BINGRP}] 73# 74# KMODMODE KLD mode. [${BINMODE}] 75# 76# 77# SHAREDIR Base path for architecture-independent ascii 78# text files. [/usr/share] 79# 80# SHAREOWN ASCII text file owner. [root] 81# 82# SHAREGRP ASCII text file group. [wheel] 83# 84# SHAREMODE ASCII text file mode. [${NOBINMODE}] 85# 86# 87# DOCDIR Base path for system documentation (e.g. PSD, USD, 88# handbook, FAQ etc.). [${SHAREDIR}/doc] 89# 90# DOCOWN Documentation owner. [${SHAREOWN}] 91# 92# DOCGRP Documentation group. [${SHAREGRP}] 93# 94# DOCMODE Documentation mode. [${NOBINMODE}] 95# 96# 97# INFODIR Base path for GNU's hypertext system 98# called Info (see info(1)). [${SHAREDIR}/info] 99# 100# INFOOWN Info owner. [${SHAREOWN}] 101# 102# INFOGRP Info group. [${SHAREGRP}] 103# 104# INFOMODE Info mode. [${NOBINMODE}] 105# 106# 107# MANDIR Base path for manual installation. [${SHAREDIR}/man/man] 108# 109# MANOWN Manual owner. [${SHAREOWN}] 110# 111# MANGRP Manual group. [${SHAREGRP}] 112# 113# MANMODE Manual mode. [${NOBINMODE}] 114# 115# 116# NLSDIR Base path for National Language Support files 117# installation (see mklocale(1)). [${SHAREDIR}/nls] 118# 119# NLSGRP National Language Support files group. [${SHAREOWN}] 120# 121# NLSOWN National Language Support files owner. [${SHAREGRP}] 122# 123# NLSMODE National Language Support files mode. [${NONBINMODE}] 124# 125# INCLUDEDIR Base path for standard C include files [/usr/include] 126 127# This is only here for bootstrapping and is not officially exported 128# from here. It has normally already been defined in sys.mk. 129MACHINE_ARCH?= i386 130 131# 132# The build tools are indirected by /usr/bin/objformat which determines the 133# object format from the OBJFORMAT environment variable and if this is not 134# defined, it reads /etc/objformat. 135# 136.if exists(/etc/objformat) && !defined(OBJFORMAT) 137.include "/etc/objformat" 138.endif 139 140# Default executable format 141OBJFORMAT?= elf 142 143# Binaries 144BINOWN?= root 145BINGRP?= wheel 146BINMODE?= 555 147NOBINMODE?= 444 148 149GAMEGRP?= games 150 151INCOWN?= root 152INCGRP?= wheel 153INCMODE?= 444 154INCDIR?= /usr/include 155 156KMODDIR?= /modules 157KMODOWN?= ${BINOWN} 158KMODGRP?= ${BINGRP} 159KMODMODE?= ${BINMODE} 160 161.if ${OBJFORMAT} == aout 162LIBDIR?= /usr/lib/aout 163.else 164LIBDIR?= /usr/lib 165.endif 166LIBCOMPATDIR?= /usr/lib/compat 167LIBDATADIR?= /usr/libdata 168LINTLIBDIR?= /usr/libdata/lint 169SHLIBDIR?= ${LIBDIR} 170LIBOWN?= ${BINOWN} 171LIBGRP?= ${BINGRP} 172LIBMODE?= ${NOBINMODE} 173 174 175# Share files 176SHAREDIR?= /usr/share 177SHAREOWN?= root 178SHAREGRP?= wheel 179SHAREMODE?= ${NOBINMODE} 180 181MANDIR?= ${SHAREDIR}/man/man 182MANOWN?= ${SHAREOWN} 183MANGRP?= ${SHAREGRP} 184MANMODE?= ${NOBINMODE} 185 186DOCDIR?= ${SHAREDIR}/doc 187DOCOWN?= ${SHAREOWN} 188DOCGRP?= ${SHAREGRP} 189DOCMODE?= ${NOBINMODE} 190 191INFODIR?= ${SHAREDIR}/info 192INFOOWN?= ${SHAREOWN} 193INFOGRP?= ${SHAREGRP} 194INFOMODE?= ${NOBINMODE} 195 196NLSDIR?= ${SHAREDIR}/nls 197NLSGRP?= ${SHAREOWN} 198NLSOWN?= ${SHAREGRP} 199NLSMODE?= ${NONBINMODE} 200 201INCLUDEDIR?= /usr/include 202 203# Common variables 204.if !defined(DEBUG_FLAGS) 205STRIP?= -s 206.endif 207 208COPY?= -c 209COMPRESS_CMD?= gzip -cn 210COMPRESS_EXT?= .gz 211