bsd.own.mk revision 32216
1#	$Id: bsd.own.mk,v 1.10 1997/03/08 23:46:56 wosch 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 -c]
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#
33# BINOWN	Binary owner. [bin]
34#
35# BINGRP	Binary group. [bin]
36#
37# BINMODE	Binary mode. [555]
38#
39# NOBINMODE	Mode for non-executable files. [444]
40#
41#
42# LIBDIR	Base path for libraries. [/usr/lib]
43#
44# LIBCOMPATDIR	Base path for compat libraries. [/usr/lib/compat]
45#
46# LIBDATADIR	Base path for misc. utility data files. [/usr/libdata]
47#
48# LINTLIBDIR	Base path for lint libraries. [/usr/libdata/lint]
49#
50# SHLIBDIR	Base path for shared libraries. [${LIBDIR}]
51#
52# LIBOWN	Library mode. [${BINOWN}]
53#
54# LIBGRP	Library group. [${BINGRP}]
55#
56# LIBMODE	Library mode. [${NOBINMODE}]
57#
58#
59# KMODDIR	Base path for loadable kernel modules
60#		(see lkm(4)). [/lkm]
61#
62# KMODOWN	LKM owner. [${BINOWN}]
63#
64# KMODGRP	LKM group. [${BINGRP}]
65#
66# KMODMODE	LKM mode. [${BINMODE}]
67#
68#
69# SHAREDIR	Base path for architecture-independent ascii
70#		text files. [/usr/share]
71#
72# SHAREOWN	ASCII text file owner. [bin]
73#
74# SHAREGRP	ASCII text file group. [bin]
75#
76# SHAREMODE	ASCII text file mode. [${NOBINMODE}]
77#
78#
79# DOCDIR	Base path for system documentation (e.g. PSD, USD,
80#		handbook, FAQ etc.). [${SHAREDIR}/doc]
81#
82# DOCOWN	Documentation owner. [${SHAREOWN}]
83#
84# DOCGRP	Documentation group. [${SHAREGRP}]
85#
86# DOCMODE	Documentation mode. [${NOBINMODE}]
87#
88#
89# INFODIR	Base path for GNU's hypertext system
90#		called Info (see info(1)). [${SHAREDIR}/info]
91#
92# INFOOWN	Info owner. [${SHAREOWN}]
93#
94# INFOGRP	Info group. [${SHAREGRP}]
95#
96# INFOMODE	Info mode. [${NOBINMODE}]
97#
98#
99# MANDIR	Base path for manual installation. [${SHAREDIR}/man/man]
100#
101# MANOWN	Manual owner. [${SHAREOWN}]
102#
103# MANGRP	Manual group. [${SHAREGRP}]
104#
105# MANMODE	Manual mode. [${NOBINMODE}]
106#
107#
108# NLSDIR	Base path for National Language Support files
109#		installation (see mklocale(1)). [${SHAREDIR}/nls]
110#
111# NLSGRP	National Language Support files group. [${SHAREOWN}]
112#
113# NLSOWN	National Language Support files owner. [${SHAREGRP}]
114#
115# NLSMODE	National Language Support files mode. [${NONBINMODE}]
116#
117# INCLUDEDIR	Base path for standard C include files [/usr/include]
118
119# Binaries
120BINOWN?=	bin
121BINGRP?=	bin
122BINMODE?=	555
123NOBINMODE?=	444
124
125LIBDIR?=	/usr/lib
126LIBCOMPATDIR	/usr/lib/compat
127LIBDATADIR	/usr/libdata
128LINTLIBDIR?=	/usr/libdata/lint
129SHLIBDIR?=	${LIBDIR}
130LIBOWN?=	${BINOWN}
131LIBGRP?=	${BINGRP}
132LIBMODE?=	${NOBINMODE}
133
134KMODDIR?=	/lkm
135KMODOWN?=	${BINOWN}
136KMODGRP?=	${BINGRP}
137KMODMODE?=	${BINMODE}
138
139
140# Share files
141SHAREDIR?=	/usr/share
142SHAREOWN?=	bin
143SHAREGRP?=	bin
144SHAREMODE?=	${NOBINMODE}
145
146MANDIR?=	${SHAREDIR}/man/man
147MANOWN?=	${SHAREOWN}
148MANGRP?=	${SHAREGRP}
149MANMODE?=	${NOBINMODE}
150
151DOCDIR?=	${SHAREDIR}/doc
152DOCOWN?=	${SHAREOWN}
153DOCGRP?=	${SHAREGRP}
154DOCMODE?=	${NOBINMODE}
155
156INFODIR?=	${SHAREDIR}/info
157INFOOWN?=	${SHAREOWN}
158INFOGRP?=	${SHAREGRP}
159INFOMODE?=	${NOBINMODE}
160
161NLSDIR?=	${SHAREDIR}/nls
162NLSGRP?=	${SHAREOWN}
163NLSOWN?=	${SHAREGRP}
164NLSMODE?=	${NONBINMODE}
165
166INCLUDEDIR?=	/usr/include
167
168# Common variables
169.if !defined(DEBUG_FLAGS)
170STRIP?=		-s
171.endif
172
173COPY?=		-c
174COMPRESS_CMD?=	gzip -c
175COMPRESS_EXT?=	.gz
176