1# $Id: bsd.own.mk,v 1.20 1998/10/19 20:09:17 imp 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# 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 on alpha, aout otherwise] 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 lkm(4)). [/lkm] 62# 63# KMODOWN LKM owner. [${BINOWN}] 64# 65# KMODGRP LKM group. [${BINGRP}] 66# 67# KMODMODE LKM 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/objectformat. 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 142.if ${OBJFORMAT} == aout 143LIBDIR?= /usr/lib/aout 144.else 145LIBDIR?= /usr/lib 146.endif 147LIBCOMPATDIR?= /usr/lib/compat 148LIBDATADIR?= /usr/libdata 149LINTLIBDIR?= /usr/libdata/lint 150SHLIBDIR?= ${LIBDIR} 151LIBOWN?= ${BINOWN} 152LIBGRP?= ${BINGRP} 153LIBMODE?= ${NOBINMODE} 154 155KMODDIR?= /lkm 156KMODOWN?= ${BINOWN} 157KMODGRP?= ${BINGRP} 158KMODMODE?= ${BINMODE} 159 160 161# Share files 162SHAREDIR?= /usr/share 163SHAREOWN?= root 164SHAREGRP?= wheel 165SHAREMODE?= ${NOBINMODE} 166 167MANDIR?= ${SHAREDIR}/man/man 168MANOWN?= ${SHAREOWN} 169MANGRP?= ${SHAREGRP} 170MANMODE?= ${NOBINMODE} 171 172DOCDIR?= ${SHAREDIR}/doc 173DOCOWN?= ${SHAREOWN} 174DOCGRP?= ${SHAREGRP} 175DOCMODE?= ${NOBINMODE} 176 177INFODIR?= ${SHAREDIR}/info 178INFOOWN?= ${SHAREOWN} 179INFOGRP?= ${SHAREGRP} 180INFOMODE?= ${NOBINMODE} 181 182NLSDIR?= ${SHAREDIR}/nls 183NLSGRP?= ${SHAREOWN} 184NLSOWN?= ${SHAREGRP} 185NLSMODE?= ${NONBINMODE} 186 187INCLUDEDIR?= /usr/include 188 189# Common variables 190.if !defined(DEBUG_FLAGS) 191STRIP?= -s 192.endif 193 194COPY?= -c 195COMPRESS_CMD?= gzip -cn 196COMPRESS_EXT?= .gz 197