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