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# 43# LIBDIR Base path for libraries. [/usr/lib] 44# 45# LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat] 46# 47# LIBDATADIR Base path for misc. utility data files. [/usr/libdata] 48# 49# LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint] 50# 51# SHLIBDIR Base path for shared libraries. [${LIBDIR}] 52# 53# LIBOWN Library mode. [${BINOWN}] 54# 55# LIBGRP Library group. [${BINGRP}] 56# 57# LIBMODE Library mode. [${NOBINMODE}] 58# 59# 60# KMODDIR Base path for loadable kernel modules 61# (see kld(4)). [/modules] 62# 63# KMODOWN KLD owner. [${BINOWN}] 64# 65# KMODGRP KLD group. [${BINGRP}] 66# 67# KMODMODE KLD mode. [${BINMODE}] 68# 69# 70# SHAREDIR Base path for architecture-independent ascii 71# text files. [/usr/share] 72# 73# SHAREOWN ASCII text file owner. [root] 74# 75# SHAREGRP ASCII text file group. [wheel] 76# 77# SHAREMODE ASCII text file mode. [${NOBINMODE}] 78# 79# 80# DOCDIR Base path for system documentation (e.g. PSD, USD, 81# handbook, FAQ etc.). [${SHAREDIR}/doc] 82# 83# DOCOWN Documentation owner. [${SHAREOWN}] 84# 85# DOCGRP Documentation group. [${SHAREGRP}] 86# 87# DOCMODE Documentation mode. [${NOBINMODE}] 88# 89# 90# INFODIR Base path for GNU's hypertext system 91# called Info (see info(1)). [${SHAREDIR}/info] 92# 93# INFOOWN Info owner. [${SHAREOWN}] 94# 95# INFOGRP Info group. [${SHAREGRP}] 96# 97# INFOMODE Info mode. [${NOBINMODE}] 98# 99# 100# MANDIR Base path for manual installation. [${SHAREDIR}/man/man] 101# 102# MANOWN Manual owner. [${SHAREOWN}] 103# 104# MANGRP Manual group. [${SHAREGRP}] 105# 106# MANMODE Manual mode. [${NOBINMODE}] 107# 108# 109# NLSDIR Base path for National Language Support files 110# installation (see mklocale(1)). [${SHAREDIR}/nls] 111# 112# NLSGRP National Language Support files group. [${SHAREOWN}] 113# 114# NLSOWN National Language Support files owner. [${SHAREGRP}] 115# 116# NLSMODE National Language Support files mode. [${NONBINMODE}] 117# 118# INCLUDEDIR Base path for standard C include files [/usr/include] 119 120# This is only here for bootstrapping and is not officially exported 121# from here. It has normally already been defined in sys.mk. 122MACHINE_ARCH?= i386 123 124# 125# The build tools are indirected by /usr/bin/objformat which determines the 126# object format from the OBJFORMAT environment variable and if this is not 127# defined, it reads /etc/objformat. 128# 129.if exists(/etc/objformat) && !defined(OBJFORMAT) 130.include "/etc/objformat" 131.endif 132 133# Default executable format 134OBJFORMAT?= elf 135 136# Binaries 137BINOWN?= root 138BINGRP?= wheel 139BINMODE?= 555 140NOBINMODE?= 444 141 142GAMEGRP?= games 143 144KMODDIR?= /modules 145KMODOWN?= ${BINOWN} 146KMODGRP?= ${BINGRP} 147KMODMODE?= ${BINMODE} 148 149.if ${OBJFORMAT} == aout 150LIBDIR?= /usr/lib/aout 151.else 152LIBDIR?= /usr/lib 153.endif 154LIBCOMPATDIR?= /usr/lib/compat 155LIBDATADIR?= /usr/libdata 156LINTLIBDIR?= /usr/libdata/lint 157SHLIBDIR?= ${LIBDIR} 158LIBOWN?= ${BINOWN} 159LIBGRP?= ${BINGRP} 160LIBMODE?= ${NOBINMODE} 161 162 163# Share files 164SHAREDIR?= /usr/share 165SHAREOWN?= root 166SHAREGRP?= wheel 167SHAREMODE?= ${NOBINMODE} 168 169MANDIR?= ${SHAREDIR}/man/man 170MANOWN?= ${SHAREOWN} 171MANGRP?= ${SHAREGRP} 172MANMODE?= ${NOBINMODE} 173 174DOCDIR?= ${SHAREDIR}/doc 175DOCOWN?= ${SHAREOWN} 176DOCGRP?= ${SHAREGRP} 177DOCMODE?= ${NOBINMODE} 178 179INFODIR?= ${SHAREDIR}/info 180INFOOWN?= ${SHAREOWN} 181INFOGRP?= ${SHAREGRP} 182INFOMODE?= ${NOBINMODE} 183 184NLSDIR?= ${SHAREDIR}/nls 185NLSGRP?= ${SHAREOWN} 186NLSOWN?= ${SHAREGRP} 187NLSMODE?= ${NONBINMODE} 188 189INCLUDEDIR?= /usr/include 190 191# Common variables 192.if !defined(DEBUG_FLAGS) 193STRIP?= -s 194.endif 195 196COPY?= -c 197COMPRESS_CMD?= gzip -cn 198COMPRESS_EXT?= .gz 199