xref: /dragonfly/share/mk/bsd.own.mk (revision 1d1731fa)
1# $FreeBSD: src/share/mk/bsd.own.mk,v 1.27.2.4 2002/07/22 14:21:51 ru Exp $
2# $DragonFly: src/share/mk/bsd.own.mk,v 1.2 2003/06/17 04:37:02 dillon Exp $
3#
4# The include file <bsd.own.mk> set common variables for owner,
5# group, mode, and directories. Defaults are in brackets.
6#
7#
8# +++ variables +++
9#
10# DESTDIR	Change the tree where the file gets installed. [not set]
11#
12# DISTDIR	Change the tree where the file for a distribution
13# 		gets installed (see /usr/src/release/Makefile). [not set]
14#
15#
16# COPY		The flag passed to the install program to cause the binary
17#		to be copied rather than moved.  This is to be used when
18#		building our own install script so that the entire system
19#		can either be installed with copies, or with moves using
20#		a single knob. [-c]
21#
22# COMPRESS_CMD	Program to compress documents.
23#		Output is to stdout. [gzip -cn]
24#
25# COMPRESS_EXT	File name extension of ${COMPRESS_CMD} command. [.gz]
26#
27# STRIP		The flag passed to the install program to cause the binary
28#		to be stripped.  This is to be used when building your
29#		own install script so that the entire system can be made
30#		stripped/not-stripped using a single knob. [-s]
31#
32# OBJFORMAT	Default object format that selects which set of tools to run.
33#		[elf]
34#
35# BINOWN	Binary owner. [root]
36#
37# BINGRP	Binary group. [wheel]
38#
39# BINMODE	Binary mode. [555]
40#
41# NOBINMODE	Mode for non-executable files. [444]
42#
43# LIBDIR	Base path for libraries. [/usr/lib]
44#
45# LIBCOMPATDIR	Base path for compat libraries. [/usr/lib/compat]
46#
47# LIBDATADIR	Base path for misc. utility data files. [/usr/libdata]
48#
49# LINTLIBDIR	Base path for lint libraries. [/usr/libdata/lint]
50#
51# SHLIBDIR	Base path for shared libraries. [${LIBDIR}]
52#
53# LIBOWN	Library mode. [${BINOWN}]
54#
55# LIBGRP	Library group. [${BINGRP}]
56#
57# LIBMODE	Library mode. [${NOBINMODE}]
58#
59#
60# KMODDIR	Base path for loadable kernel modules
61#		(see kld(4)). [/modules]
62#
63# KMODOWN	KLD owner. [${BINOWN}]
64#
65# KMODGRP	KLD group. [${BINGRP}]
66#
67# KMODMODE	KLD mode. [${BINMODE}]
68#
69#
70# SHAREDIR	Base path for architecture-independent ascii
71#		text files. [/usr/share]
72#
73# SHAREOWN	ASCII text file owner. [root]
74#
75# SHAREGRP	ASCII text file group. [wheel]
76#
77# SHAREMODE	ASCII text file mode. [${NOBINMODE}]
78#
79#
80# DOCDIR	Base path for system documentation (e.g. PSD, USD,
81#		handbook, FAQ etc.). [${SHAREDIR}/doc]
82#
83# DOCOWN	Documentation owner. [${SHAREOWN}]
84#
85# DOCGRP	Documentation group. [${SHAREGRP}]
86#
87# DOCMODE	Documentation mode. [${NOBINMODE}]
88#
89#
90# INFODIR	Base path for GNU's hypertext system
91#		called Info (see info(1)). [${SHAREDIR}/info]
92#
93# INFOOWN	Info owner. [${SHAREOWN}]
94#
95# INFOGRP	Info group. [${SHAREGRP}]
96#
97# INFOMODE	Info mode. [${NOBINMODE}]
98#
99#
100# MANDIR	Base path for manual installation. [${SHAREDIR}/man/man]
101#
102# MANOWN	Manual owner. [${SHAREOWN}]
103#
104# MANGRP	Manual group. [${SHAREGRP}]
105#
106# MANMODE	Manual mode. [${NOBINMODE}]
107#
108#
109# NLSDIR	Base path for National Language Support files
110#		installation (see mklocale(1)). [${SHAREDIR}/nls]
111#
112# NLSGRP	National Language Support files group. [${SHAREOWN}]
113#
114# NLSOWN	National Language Support files owner. [${SHAREGRP}]
115#
116# NLSMODE	National Language Support files mode. [${NOBINMODE}]
117#
118# INCLUDEDIR	Base path for standard C include files [/usr/include]
119
120.if !target(__<bsd.own.mk>__)
121__<bsd.own.mk>__:
122
123# Binaries
124BINOWN?=	root
125BINGRP?=	wheel
126BINMODE?=	555
127NOBINMODE?=	444
128
129KMODDIR?=	/modules
130KMODOWN?=	${BINOWN}
131KMODGRP?=	${BINGRP}
132KMODMODE?=	${BINMODE}
133
134.if ${OBJFORMAT} == aout
135LIBDIR?=	/usr/lib/aout
136.else
137LIBDIR?=	/usr/lib
138.endif
139LIBCOMPATDIR?=	/usr/lib/compat
140LIBDATADIR?=	/usr/libdata
141LINTLIBDIR?=	/usr/libdata/lint
142SHLIBDIR?=	${LIBDIR}
143LIBOWN?=	${BINOWN}
144LIBGRP?=	${BINGRP}
145LIBMODE?=	${NOBINMODE}
146
147
148# Share files
149SHAREDIR?=	/usr/share
150SHAREOWN?=	root
151SHAREGRP?=	wheel
152SHAREMODE?=	${NOBINMODE}
153
154MANDIR?=	${SHAREDIR}/man/man
155MANOWN?=	${SHAREOWN}
156MANGRP?=	${SHAREGRP}
157MANMODE?=	${NOBINMODE}
158
159DOCDIR?=	${SHAREDIR}/doc
160DOCOWN?=	${SHAREOWN}
161DOCGRP?=	${SHAREGRP}
162DOCMODE?=	${NOBINMODE}
163
164INFODIR?=	${SHAREDIR}/info
165INFOOWN?=	${SHAREOWN}
166INFOGRP?=	${SHAREGRP}
167INFOMODE?=	${NOBINMODE}
168
169NLSDIR?=	${SHAREDIR}/nls
170NLSGRP?=	${SHAREOWN}
171NLSOWN?=	${SHAREGRP}
172NLSMODE?=	${NOBINMODE}
173
174INCLUDEDIR?=	/usr/include
175
176# Common variables
177.if !defined(DEBUG_FLAGS)
178STRIP?=		-s
179.endif
180
181COPY?=		-c
182COMPRESS_CMD?=	gzip -cn
183COMPRESS_EXT?=	.gz
184
185.endif !target(__<bsd.own.mk>__)
186