bsd.own.mk revision 38042
1# $Id: bsd.own.mk,v 1.14 1998/05/26 20:12:54 sos 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# 32# BINFORMAT Default executable format. [elf on alpha, aout otherwise] 33# 34# 35# BINOWN Binary owner. [bin] 36# 37# BINGRP Binary group. [bin] 38# 39# BINMODE Binary mode. [555] 40# 41# NOBINMODE Mode for non-executable files. [444] 42# 43# 44# LIBDIR Base path for libraries. [/usr/lib] 45# 46# LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat] 47# 48# LIBDATADIR Base path for misc. utility data files. [/usr/libdata] 49# 50# LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint] 51# 52# SHLIBDIR Base path for shared libraries. [${LIBDIR}] 53# 54# LIBOWN Library mode. [${BINOWN}] 55# 56# LIBGRP Library group. [${BINGRP}] 57# 58# LIBMODE Library mode. [${NOBINMODE}] 59# 60# 61# KMODDIR Base path for loadable kernel modules 62# (see lkm(4)). [/lkm] 63# 64# KMODOWN LKM owner. [${BINOWN}] 65# 66# KMODGRP LKM group. [${BINGRP}] 67# 68# KMODMODE LKM mode. [${BINMODE}] 69# 70# 71# SHAREDIR Base path for architecture-independent ascii 72# text files. [/usr/share] 73# 74# SHAREOWN ASCII text file owner. [bin] 75# 76# SHAREGRP ASCII text file group. [bin] 77# 78# SHAREMODE ASCII text file mode. [${NOBINMODE}] 79# 80# 81# DOCDIR Base path for system documentation (e.g. PSD, USD, 82# handbook, FAQ etc.). [${SHAREDIR}/doc] 83# 84# DOCOWN Documentation owner. [${SHAREOWN}] 85# 86# DOCGRP Documentation group. [${SHAREGRP}] 87# 88# DOCMODE Documentation mode. [${NOBINMODE}] 89# 90# 91# INFODIR Base path for GNU's hypertext system 92# called Info (see info(1)). [${SHAREDIR}/info] 93# 94# INFOOWN Info owner. [${SHAREOWN}] 95# 96# INFOGRP Info group. [${SHAREGRP}] 97# 98# INFOMODE Info mode. [${NOBINMODE}] 99# 100# 101# MANDIR Base path for manual installation. [${SHAREDIR}/man/man] 102# 103# MANOWN Manual owner. [${SHAREOWN}] 104# 105# MANGRP Manual group. [${SHAREGRP}] 106# 107# MANMODE Manual mode. [${NOBINMODE}] 108# 109# 110# NLSDIR Base path for National Language Support files 111# installation (see mklocale(1)). [${SHAREDIR}/nls] 112# 113# NLSGRP National Language Support files group. [${SHAREOWN}] 114# 115# NLSOWN National Language Support files owner. [${SHAREGRP}] 116# 117# NLSMODE National Language Support files mode. [${NONBINMODE}] 118# 119# INCLUDEDIR Base path for standard C include files [/usr/include] 120 121# This is only here for bootstrapping and is not officially exported 122# from here. It has normally already been defined in sys.mk. 123MACHINE_ARCH?= i386 124 125# Default executable format 126.if ${MACHINE_ARCH} == "alpha" 127BINFORMAT?= elf 128.else 129BINFORMAT?= aout 130.endif 131 132# Binaries 133BINOWN?= bin 134BINGRP?= bin 135BINMODE?= 555 136NOBINMODE?= 444 137 138.if ${BINFORMAT} == aout 139LIBDIR?= /usr/lib/aout 140.else 141LIBDIR?= /usr/lib 142.endif 143LIBCOMPATDIR?= /usr/lib/compat 144LIBDATADIR?= /usr/libdata 145LINTLIBDIR?= /usr/libdata/lint 146SHLIBDIR?= ${LIBDIR} 147LIBOWN?= ${BINOWN} 148LIBGRP?= ${BINGRP} 149LIBMODE?= ${NOBINMODE} 150 151KMODDIR?= /lkm 152KMODOWN?= ${BINOWN} 153KMODGRP?= ${BINGRP} 154KMODMODE?= ${BINMODE} 155 156 157# Share files 158SHAREDIR?= /usr/share 159SHAREOWN?= bin 160SHAREGRP?= bin 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?= ${SHAREOWN} 180NLSOWN?= ${SHAREGRP} 181NLSMODE?= ${NONBINMODE} 182 183INCLUDEDIR?= /usr/include 184 185# Common variables 186.if !defined(DEBUG_FLAGS) 187STRIP?= -s 188.endif 189 190COPY?= -c 191COMPRESS_CMD?= gzip -cn 192COMPRESS_EXT?= .gz 193