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