xref: /freebsd/share/mk/bsd.own.mk (revision 8e748d82e45bb1bd73dd0a8ddf2398454e492bd5)
17f3dea24SPeter Wemm# $FreeBSD$
253996fadSWolfram Schneider#
353996fadSWolfram Schneider# The include file <bsd.own.mk> set common variables for owner,
453996fadSWolfram Schneider# group, mode, and directories. Defaults are in brackets.
553996fadSWolfram Schneider#
653996fadSWolfram Schneider#
753996fadSWolfram Schneider# +++ variables +++
853996fadSWolfram Schneider#
953996fadSWolfram Schneider# DESTDIR	Change the tree where the file gets installed. [not set]
1053996fadSWolfram Schneider#
1153996fadSWolfram Schneider# DISTDIR	Change the tree where the file for a distribution
1253996fadSWolfram Schneider# 		gets installed (see /usr/src/release/Makefile). [not set]
1353996fadSWolfram Schneider#
1453996fadSWolfram Schneider#
1553996fadSWolfram Schneider# COPY		The flag passed to the install program to cause the binary
1653996fadSWolfram Schneider#		to be copied rather than moved.  This is to be used when
1753996fadSWolfram Schneider#		building our own install script so that the entire system
1853996fadSWolfram Schneider#		can either be installed with copies, or with moves using
1953996fadSWolfram Schneider#		a single knob. [-c]
2053996fadSWolfram Schneider#
21f7ea12a0SWolfram Schneider# COMPRESS_CMD	Program to compress documents.
228d17ea52SBruce Evans#		Output is to stdout. [gzip -cn]
23f7ea12a0SWolfram Schneider#
24f7ea12a0SWolfram Schneider# COMPRESS_EXT	File name extension of ${COMPRESS_CMD} command. [.gz]
25f7ea12a0SWolfram Schneider#
2653996fadSWolfram Schneider# STRIP		The flag passed to the install program to cause the binary
2753996fadSWolfram Schneider#		to be stripped.  This is to be used when building your
2853996fadSWolfram Schneider#		own install script so that the entire system can be made
2953996fadSWolfram Schneider#		stripped/not-stripped using a single knob. [-s]
3053996fadSWolfram Schneider#
317c9bea41SJohn Birrell# OBJFORMAT	Default object format that selects which set of tools to run.
324c62f5d1SAlexey Zelkin#		[elf]
3353996fadSWolfram Schneider#
345ecaf9a8SDavid E. O'Brien# BINOWN	Binary owner. [root]
3553996fadSWolfram Schneider#
365ecaf9a8SDavid E. O'Brien# BINGRP	Binary group. [wheel]
3753996fadSWolfram Schneider#
3853996fadSWolfram Schneider# BINMODE	Binary mode. [555]
3953996fadSWolfram Schneider#
4053996fadSWolfram Schneider# NOBINMODE	Mode for non-executable files. [444]
4153996fadSWolfram Schneider#
42fccf86c1SRodney W. Grimes# INCOWN	Include owner. [root]
43fccf86c1SRodney W. Grimes#
44fccf86c1SRodney W. Grimes# INCGRP	Include group. [wheel]
45fccf86c1SRodney W. Grimes#
46fccf86c1SRodney W. Grimes# INCMODE	Include mode. [444]
47fccf86c1SRodney W. Grimes#
48fccf86c1SRodney W. Grimes# INCDIR	Base path for include files. [/usr/include]
4953996fadSWolfram Schneider#
5053996fadSWolfram Schneider# LIBDIR	Base path for libraries. [/usr/lib]
5153996fadSWolfram Schneider#
52c7d591d6SWolfram Schneider# LIBCOMPATDIR	Base path for compat libraries. [/usr/lib/compat]
53c7d591d6SWolfram Schneider#
54c7d591d6SWolfram Schneider# LIBDATADIR	Base path for misc. utility data files. [/usr/libdata]
55c7d591d6SWolfram Schneider#
5653996fadSWolfram Schneider# LINTLIBDIR	Base path for lint libraries. [/usr/libdata/lint]
5753996fadSWolfram Schneider#
5853996fadSWolfram Schneider# SHLIBDIR	Base path for shared libraries. [${LIBDIR}]
5953996fadSWolfram Schneider#
6053996fadSWolfram Schneider# LIBOWN	Library mode. [${BINOWN}]
6153996fadSWolfram Schneider#
6253996fadSWolfram Schneider# LIBGRP	Library group. [${BINGRP}]
6353996fadSWolfram Schneider#
6453996fadSWolfram Schneider# LIBMODE	Library mode. [${NOBINMODE}]
6553996fadSWolfram Schneider#
6653996fadSWolfram Schneider#
6753996fadSWolfram Schneider# KMODDIR	Base path for loadable kernel modules
683bdfa9e5SDavid E. O'Brien#		(see kld(4)). [/boot/kernel]
6953996fadSWolfram Schneider#
704c62f5d1SAlexey Zelkin# KMODOWN	KLD owner. [${BINOWN}]
7153996fadSWolfram Schneider#
724c62f5d1SAlexey Zelkin# KMODGRP	KLD group. [${BINGRP}]
7353996fadSWolfram Schneider#
744c62f5d1SAlexey Zelkin# KMODMODE	KLD mode. [${BINMODE}]
7553996fadSWolfram Schneider#
7653996fadSWolfram Schneider#
7753996fadSWolfram Schneider# SHAREDIR	Base path for architecture-independent ascii
7853996fadSWolfram Schneider#		text files. [/usr/share]
7953996fadSWolfram Schneider#
805ecaf9a8SDavid E. O'Brien# SHAREOWN	ASCII text file owner. [root]
8153996fadSWolfram Schneider#
825ecaf9a8SDavid E. O'Brien# SHAREGRP	ASCII text file group. [wheel]
8353996fadSWolfram Schneider#
8453996fadSWolfram Schneider# SHAREMODE	ASCII text file mode. [${NOBINMODE}]
8553996fadSWolfram Schneider#
8653996fadSWolfram Schneider#
8753996fadSWolfram Schneider# DOCDIR	Base path for system documentation (e.g. PSD, USD,
8853996fadSWolfram Schneider#		handbook, FAQ etc.). [${SHAREDIR}/doc]
8953996fadSWolfram Schneider#
9053996fadSWolfram Schneider# DOCOWN	Documentation owner. [${SHAREOWN}]
9153996fadSWolfram Schneider#
9253996fadSWolfram Schneider# DOCGRP	Documentation group. [${SHAREGRP}]
9353996fadSWolfram Schneider#
9453996fadSWolfram Schneider# DOCMODE	Documentation mode. [${NOBINMODE}]
9553996fadSWolfram Schneider#
9653996fadSWolfram Schneider#
9753996fadSWolfram Schneider# INFODIR	Base path for GNU's hypertext system
9853996fadSWolfram Schneider#		called Info (see info(1)). [${SHAREDIR}/info]
9953996fadSWolfram Schneider#
10053996fadSWolfram Schneider# INFOOWN	Info owner. [${SHAREOWN}]
10153996fadSWolfram Schneider#
10253996fadSWolfram Schneider# INFOGRP	Info group. [${SHAREGRP}]
10353996fadSWolfram Schneider#
10453996fadSWolfram Schneider# INFOMODE	Info mode. [${NOBINMODE}]
10553996fadSWolfram Schneider#
10653996fadSWolfram Schneider#
10753996fadSWolfram Schneider# MANDIR	Base path for manual installation. [${SHAREDIR}/man/man]
10853996fadSWolfram Schneider#
10953996fadSWolfram Schneider# MANOWN	Manual owner. [${SHAREOWN}]
11053996fadSWolfram Schneider#
11153996fadSWolfram Schneider# MANGRP	Manual group. [${SHAREGRP}]
11253996fadSWolfram Schneider#
11353996fadSWolfram Schneider# MANMODE	Manual mode. [${NOBINMODE}]
11453996fadSWolfram Schneider#
11553996fadSWolfram Schneider#
11653996fadSWolfram Schneider# NLSDIR	Base path for National Language Support files
1178e748d82SAlexey Zelkin#		installation. [${SHAREDIR}/nls]
11853996fadSWolfram Schneider#
1197778ad49SAlexey Zelkin# NLSOWN	National Language Support files owner. [${SHAREOWN}]
12053996fadSWolfram Schneider#
1217778ad49SAlexey Zelkin# NLSGRP	National Language Support files group. [${SHAREGRP}]
12253996fadSWolfram Schneider#
12324f8e0e9SGuy Helmer# NLSMODE	National Language Support files mode. [${NOBINMODE}]
12453996fadSWolfram Schneider#
125c7d591d6SWolfram Schneider# INCLUDEDIR	Base path for standard C include files [/usr/include]
12653996fadSWolfram Schneider
127cf94fb21SBruce Evans# This is only here for bootstrapping and is not officially exported
128cf94fb21SBruce Evans# from here.  It has normally already been defined in sys.mk.
129cf94fb21SBruce EvansMACHINE_ARCH?=	i386
130cf94fb21SBruce Evans
1313cba8076SJohn Birrell#
1323cba8076SJohn Birrell# The build tools are indirected by /usr/bin/objformat which determines the
1333cba8076SJohn Birrell# object format from the OBJFORMAT environment variable and if this is not
1344c62f5d1SAlexey Zelkin# defined, it reads /etc/objformat.
1353cba8076SJohn Birrell#
13604df7eaaSJohn Birrell.if exists(/etc/objformat) && !defined(OBJFORMAT)
13704df7eaaSJohn Birrell.include "/etc/objformat"
1383cba8076SJohn Birrell.endif
1393cba8076SJohn Birrell
140cf94fb21SBruce Evans# Default executable format
141830775aaSWarner LoshOBJFORMAT?=	elf
142cf94fb21SBruce Evans
14305e5545fSWolfram Schneider# Binaries
1445ecaf9a8SDavid E. O'BrienBINOWN?=	root
1455ecaf9a8SDavid E. O'BrienBINGRP?=	wheel
14605e5545fSWolfram SchneiderBINMODE?=	555
14705e5545fSWolfram SchneiderNOBINMODE?=	444
14805e5545fSWolfram Schneider
149fccf86c1SRodney W. GrimesINCOWN?=	root
150fccf86c1SRodney W. GrimesINCGRP?=	wheel
151fccf86c1SRodney W. GrimesINCMODE?=	444
152fccf86c1SRodney W. GrimesINCDIR?=	/usr/include
153fccf86c1SRodney W. Grimes
1543bdfa9e5SDavid E. O'BrienKMODDIR?=	/boot/kernel
1550099533aSJohn-Mark GurneyKMODOWN?=	${BINOWN}
1560099533aSJohn-Mark GurneyKMODGRP?=	${BINGRP}
1570099533aSJohn-Mark GurneyKMODMODE?=	${BINMODE}
1580099533aSJohn-Mark Gurney
1593cba8076SJohn Birrell.if ${OBJFORMAT} == aout
160cabb97dcSSøren SchmidtLIBDIR?=	/usr/lib/aout
161cabb97dcSSøren Schmidt.else
16205e5545fSWolfram SchneiderLIBDIR?=	/usr/lib
163cabb97dcSSøren Schmidt.endif
1645ea3b080SSteve PriceLIBCOMPATDIR?=	/usr/lib/compat
1655ea3b080SSteve PriceLIBDATADIR?=	/usr/libdata
16605e5545fSWolfram SchneiderLINTLIBDIR?=	/usr/libdata/lint
16705e5545fSWolfram SchneiderSHLIBDIR?=	${LIBDIR}
16805e5545fSWolfram SchneiderLIBOWN?=	${BINOWN}
16905e5545fSWolfram SchneiderLIBGRP?=	${BINGRP}
17005e5545fSWolfram SchneiderLIBMODE?=	${NOBINMODE}
17105e5545fSWolfram Schneider
17205e5545fSWolfram Schneider
17305e5545fSWolfram Schneider# Share files
17405e5545fSWolfram SchneiderSHAREDIR?=	/usr/share
1755ecaf9a8SDavid E. O'BrienSHAREOWN?=	root
1765ecaf9a8SDavid E. O'BrienSHAREGRP?=	wheel
17705e5545fSWolfram SchneiderSHAREMODE?=	${NOBINMODE}
17805e5545fSWolfram Schneider
17905e5545fSWolfram SchneiderMANDIR?=	${SHAREDIR}/man/man
18005e5545fSWolfram SchneiderMANOWN?=	${SHAREOWN}
18105e5545fSWolfram SchneiderMANGRP?=	${SHAREGRP}
18205e5545fSWolfram SchneiderMANMODE?=	${NOBINMODE}
18305e5545fSWolfram Schneider
18405e5545fSWolfram SchneiderDOCDIR?=	${SHAREDIR}/doc
18505e5545fSWolfram SchneiderDOCOWN?=	${SHAREOWN}
18605e5545fSWolfram SchneiderDOCGRP?=	${SHAREGRP}
18705e5545fSWolfram SchneiderDOCMODE?=	${NOBINMODE}
18805e5545fSWolfram Schneider
18905e5545fSWolfram SchneiderINFODIR?=	${SHAREDIR}/info
19005e5545fSWolfram SchneiderINFOOWN?=	${SHAREOWN}
19105e5545fSWolfram SchneiderINFOGRP?=	${SHAREGRP}
19205e5545fSWolfram SchneiderINFOMODE?=	${NOBINMODE}
19305e5545fSWolfram Schneider
19405e5545fSWolfram SchneiderNLSDIR?=	${SHAREDIR}/nls
1957778ad49SAlexey ZelkinNLSOWN?=	${SHAREOWN}
1967778ad49SAlexey ZelkinNLSGRP?=	${SHAREGRP}
19724f8e0e9SGuy HelmerNLSMODE?=	${NOBINMODE}
19805e5545fSWolfram Schneider
199c7d591d6SWolfram SchneiderINCLUDEDIR?=	/usr/include
200c7d591d6SWolfram Schneider
20105e5545fSWolfram Schneider# Common variables
202e82b0b99SJordan K. Hubbard.if !defined(DEBUG_FLAGS)
203d14f862cSGarrett WollmanSTRIP?=		-s
204e82b0b99SJordan K. Hubbard.endif
205d14f862cSGarrett Wollman
206d14f862cSGarrett WollmanCOPY?=		-c
2078d17ea52SBruce EvansCOMPRESS_CMD?=	gzip -cn
208f7ea12a0SWolfram SchneiderCOMPRESS_EXT?=	.gz
209