1999-04-23 22:53:34 +02:00
|
|
|
# $Id: bsd.own.mk,v 1.22 1999/04/20 14:24:52 peter Exp $
|
1996-05-26 01:09:49 +02:00
|
|
|
#
|
|
|
|
# The include file <bsd.own.mk> set common variables for owner,
|
|
|
|
# group, mode, and directories. Defaults are in brackets.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# +++ variables +++
|
|
|
|
#
|
|
|
|
# DESTDIR Change the tree where the file gets installed. [not set]
|
|
|
|
#
|
|
|
|
# DISTDIR Change the tree where the file for a distribution
|
|
|
|
# gets installed (see /usr/src/release/Makefile). [not set]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# COPY The flag passed to the install program to cause the binary
|
|
|
|
# to be copied rather than moved. This is to be used when
|
|
|
|
# building our own install script so that the entire system
|
|
|
|
# can either be installed with copies, or with moves using
|
|
|
|
# a single knob. [-c]
|
|
|
|
#
|
1997-03-09 00:46:56 +01:00
|
|
|
# COMPRESS_CMD Program to compress documents.
|
1998-03-19 14:32:43 +01:00
|
|
|
# Output is to stdout. [gzip -cn]
|
1997-03-09 00:46:56 +01:00
|
|
|
#
|
|
|
|
# COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz]
|
|
|
|
#
|
1996-05-26 01:09:49 +02:00
|
|
|
# STRIP The flag passed to the install program to cause the binary
|
|
|
|
# to be stripped. This is to be used when building your
|
|
|
|
# own install script so that the entire system can be made
|
|
|
|
# stripped/not-stripped using a single knob. [-s]
|
|
|
|
#
|
1998-08-18 02:50:36 +02:00
|
|
|
# OBJFORMAT Default object format that selects which set of tools to run.
|
|
|
|
# [elf on alpha, aout otherwise]
|
1996-05-26 01:09:49 +02:00
|
|
|
#
|
1998-09-14 10:34:45 +02:00
|
|
|
# BINOWN Binary owner. [root]
|
1996-05-26 01:09:49 +02:00
|
|
|
#
|
1998-09-14 10:34:45 +02:00
|
|
|
# BINGRP Binary group. [wheel]
|
1996-05-26 01:09:49 +02:00
|
|
|
#
|
|
|
|
# BINMODE Binary mode. [555]
|
|
|
|
#
|
|
|
|
# NOBINMODE Mode for non-executable files. [444]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# LIBDIR Base path for libraries. [/usr/lib]
|
|
|
|
#
|
1998-01-03 20:07:30 +01:00
|
|
|
# LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat]
|
|
|
|
#
|
|
|
|
# LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
|
|
|
|
#
|
1996-05-26 01:09:49 +02:00
|
|
|
# LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
|
|
|
|
#
|
|
|
|
# SHLIBDIR Base path for shared libraries. [${LIBDIR}]
|
|
|
|
#
|
|
|
|
# LIBOWN Library mode. [${BINOWN}]
|
|
|
|
#
|
|
|
|
# LIBGRP Library group. [${BINGRP}]
|
|
|
|
#
|
|
|
|
# LIBMODE Library mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# KMODDIR Base path for loadable kernel modules
|
1999-04-23 22:53:34 +02:00
|
|
|
# (see kld(4)). [/modules]
|
1996-05-26 01:09:49 +02:00
|
|
|
#
|
|
|
|
# KMODOWN LKM owner. [${BINOWN}]
|
|
|
|
#
|
|
|
|
# KMODGRP LKM group. [${BINGRP}]
|
|
|
|
#
|
|
|
|
# KMODMODE LKM mode. [${BINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# SHAREDIR Base path for architecture-independent ascii
|
|
|
|
# text files. [/usr/share]
|
|
|
|
#
|
1998-09-14 10:34:45 +02:00
|
|
|
# SHAREOWN ASCII text file owner. [root]
|
1996-05-26 01:09:49 +02:00
|
|
|
#
|
1998-09-14 10:34:45 +02:00
|
|
|
# SHAREGRP ASCII text file group. [wheel]
|
1996-05-26 01:09:49 +02:00
|
|
|
#
|
|
|
|
# SHAREMODE ASCII text file mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# DOCDIR Base path for system documentation (e.g. PSD, USD,
|
|
|
|
# handbook, FAQ etc.). [${SHAREDIR}/doc]
|
|
|
|
#
|
|
|
|
# DOCOWN Documentation owner. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# DOCGRP Documentation group. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# DOCMODE Documentation mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# INFODIR Base path for GNU's hypertext system
|
|
|
|
# called Info (see info(1)). [${SHAREDIR}/info]
|
|
|
|
#
|
|
|
|
# INFOOWN Info owner. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# INFOGRP Info group. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# INFOMODE Info mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
|
|
|
|
#
|
|
|
|
# MANOWN Manual owner. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# MANGRP Manual group. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# MANMODE Manual mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# NLSDIR Base path for National Language Support files
|
|
|
|
# installation (see mklocale(1)). [${SHAREDIR}/nls]
|
|
|
|
#
|
|
|
|
# NLSGRP National Language Support files group. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# NLSOWN National Language Support files owner. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# NLSMODE National Language Support files mode. [${NONBINMODE}]
|
|
|
|
#
|
1998-01-03 20:07:30 +01:00
|
|
|
# INCLUDEDIR Base path for standard C include files [/usr/include]
|
1996-05-26 01:09:49 +02:00
|
|
|
|
1998-08-03 10:28:14 +02:00
|
|
|
# This is only here for bootstrapping and is not officially exported
|
|
|
|
# from here. It has normally already been defined in sys.mk.
|
|
|
|
MACHINE_ARCH?= i386
|
|
|
|
|
1998-08-30 22:35:24 +02:00
|
|
|
#
|
|
|
|
# The build tools are indirected by /usr/bin/objformat which determines the
|
|
|
|
# object format from the OBJFORMAT environment variable and if this is not
|
|
|
|
# defined, it reads /etc/objectformat.
|
|
|
|
#
|
1998-09-01 01:34:37 +02:00
|
|
|
.if exists(/etc/objformat) && !defined(OBJFORMAT)
|
|
|
|
.include "/etc/objformat"
|
1998-08-30 22:35:24 +02:00
|
|
|
.endif
|
|
|
|
|
1998-08-03 10:28:14 +02:00
|
|
|
# Default executable format
|
1998-10-19 22:09:17 +02:00
|
|
|
OBJFORMAT?= elf
|
1998-08-03 10:28:14 +02:00
|
|
|
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-04-01 01:15:17 +02:00
|
|
|
# Binaries
|
1998-09-14 10:34:45 +02:00
|
|
|
BINOWN?= root
|
|
|
|
BINGRP?= wheel
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 01:07:28 +01:00
|
|
|
BINMODE?= 555
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-04-01 01:15:17 +02:00
|
|
|
NOBINMODE?= 444
|
1996-03-24 01:31:56 +01:00
|
|
|
|
1998-08-30 22:35:24 +02:00
|
|
|
.if ${OBJFORMAT} == aout
|
1998-05-26 22:12:56 +02:00
|
|
|
LIBDIR?= /usr/lib/aout
|
|
|
|
.else
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 01:07:28 +01:00
|
|
|
LIBDIR?= /usr/lib
|
1998-05-26 22:12:56 +02:00
|
|
|
.endif
|
1998-01-04 01:00:21 +01:00
|
|
|
LIBCOMPATDIR?= /usr/lib/compat
|
|
|
|
LIBDATADIR?= /usr/libdata
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 01:07:28 +01:00
|
|
|
LINTLIBDIR?= /usr/libdata/lint
|
|
|
|
SHLIBDIR?= ${LIBDIR}
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-04-01 01:15:17 +02:00
|
|
|
LIBOWN?= ${BINOWN}
|
|
|
|
LIBGRP?= ${BINGRP}
|
|
|
|
LIBMODE?= ${NOBINMODE}
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 01:07:28 +01:00
|
|
|
|
1999-04-20 16:24:52 +02:00
|
|
|
KMODDIR?= /modules
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-04-01 01:15:17 +02:00
|
|
|
KMODOWN?= ${BINOWN}
|
|
|
|
KMODGRP?= ${BINGRP}
|
|
|
|
KMODMODE?= ${BINMODE}
|
|
|
|
|
|
|
|
|
|
|
|
# Share files
|
|
|
|
SHAREDIR?= /usr/share
|
1998-09-14 10:34:45 +02:00
|
|
|
SHAREOWN?= root
|
|
|
|
SHAREGRP?= wheel
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-04-01 01:15:17 +02:00
|
|
|
SHAREMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
MANDIR?= ${SHAREDIR}/man/man
|
|
|
|
MANOWN?= ${SHAREOWN}
|
|
|
|
MANGRP?= ${SHAREGRP}
|
|
|
|
MANMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
DOCDIR?= ${SHAREDIR}/doc
|
|
|
|
DOCOWN?= ${SHAREOWN}
|
|
|
|
DOCGRP?= ${SHAREGRP}
|
|
|
|
DOCMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
INFODIR?= ${SHAREDIR}/info
|
|
|
|
INFOOWN?= ${SHAREOWN}
|
|
|
|
INFOGRP?= ${SHAREGRP}
|
|
|
|
INFOMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
NLSDIR?= ${SHAREDIR}/nls
|
|
|
|
NLSGRP?= ${SHAREOWN}
|
|
|
|
NLSOWN?= ${SHAREGRP}
|
|
|
|
NLSMODE?= ${NONBINMODE}
|
|
|
|
|
1998-01-03 20:07:30 +01:00
|
|
|
INCLUDEDIR?= /usr/include
|
|
|
|
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-04-01 01:15:17 +02:00
|
|
|
# Common variables
|
|
|
|
.if !defined(DEBUG_FLAGS)
|
|
|
|
STRIP?= -s
|
|
|
|
.endif
|
|
|
|
|
|
|
|
COPY?= -c
|
1998-03-19 14:32:43 +01:00
|
|
|
COMPRESS_CMD?= gzip -cn
|
1997-03-09 00:46:56 +01:00
|
|
|
COMPRESS_EXT?= .gz
|