Deleted Added
full compact
bsd.own.mk (94940) bsd.own.mk (94982)
1# $FreeBSD: head/share/mk/bsd.own.mk 94940 2002-04-17 13:49:29Z ru $
1# $FreeBSD: head/share/mk/bsd.own.mk 94982 2002-04-18 06:37:48Z ru $
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. [${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
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. [${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.if !target(__<bsd.own.mk>__)
128__<bsd.own.mk>__:
129
127# Binaries
128BINOWN?= root
129BINGRP?= wheel
130BINMODE?= 555
131NOBINMODE?= 444
132
133INCOWN?= root
134INCGRP?= wheel
135INCMODE?= 444
136INCDIR?= /usr/include
137
138KMODDIR?= /boot/kernel
139KMODOWN?= ${BINOWN}
140KMODGRP?= ${BINGRP}
141KMODMODE?= ${BINMODE}
142
143.if ${OBJFORMAT} == 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
156
157# Share files
158SHAREDIR?= /usr/share
159SHAREOWN?= root
160SHAREGRP?= wheel
161SHAREMODE?= ${NOBINMODE}
162
163MANDIR?= ${SHAREDIR}/man/man
164MANOWN?= ${SHAREOWN}
165MANGRP?= ${SHAREGRP}
166MANMODE?= ${NOBINMODE}
167
168DOCDIR?= ${SHAREDIR}/doc
169DOCOWN?= ${SHAREOWN}
170DOCGRP?= ${SHAREGRP}
171DOCMODE?= ${NOBINMODE}
172
173INFODIR?= ${SHAREDIR}/info
174INFOOWN?= ${SHAREOWN}
175INFOGRP?= ${SHAREGRP}
176INFOMODE?= ${NOBINMODE}
177
178NLSDIR?= ${SHAREDIR}/nls
179NLSOWN?= ${SHAREOWN}
180NLSGRP?= ${SHAREGRP}
181NLSMODE?= ${NOBINMODE}
182
183INCLUDEDIR?= /usr/include
184
185# Common variables
186.if !defined(DEBUG_FLAGS)
187STRIP?= -s
188.endif
189
190COPY?= -c
191COMPRESS_CMD?= gzip -cn
192COMPRESS_EXT?= .gz
130# Binaries
131BINOWN?= root
132BINGRP?= wheel
133BINMODE?= 555
134NOBINMODE?= 444
135
136INCOWN?= root
137INCGRP?= wheel
138INCMODE?= 444
139INCDIR?= /usr/include
140
141KMODDIR?= /boot/kernel
142KMODOWN?= ${BINOWN}
143KMODGRP?= ${BINGRP}
144KMODMODE?= ${BINMODE}
145
146.if ${OBJFORMAT} == aout
147LIBDIR?= /usr/lib/aout
148.else
149LIBDIR?= /usr/lib
150.endif
151LIBCOMPATDIR?= /usr/lib/compat
152LIBDATADIR?= /usr/libdata
153LINTLIBDIR?= /usr/libdata/lint
154SHLIBDIR?= ${LIBDIR}
155LIBOWN?= ${BINOWN}
156LIBGRP?= ${BINGRP}
157LIBMODE?= ${NOBINMODE}
158
159
160# Share files
161SHAREDIR?= /usr/share
162SHAREOWN?= root
163SHAREGRP?= wheel
164SHAREMODE?= ${NOBINMODE}
165
166MANDIR?= ${SHAREDIR}/man/man
167MANOWN?= ${SHAREOWN}
168MANGRP?= ${SHAREGRP}
169MANMODE?= ${NOBINMODE}
170
171DOCDIR?= ${SHAREDIR}/doc
172DOCOWN?= ${SHAREOWN}
173DOCGRP?= ${SHAREGRP}
174DOCMODE?= ${NOBINMODE}
175
176INFODIR?= ${SHAREDIR}/info
177INFOOWN?= ${SHAREOWN}
178INFOGRP?= ${SHAREGRP}
179INFOMODE?= ${NOBINMODE}
180
181NLSDIR?= ${SHAREDIR}/nls
182NLSOWN?= ${SHAREOWN}
183NLSGRP?= ${SHAREGRP}
184NLSMODE?= ${NOBINMODE}
185
186INCLUDEDIR?= /usr/include
187
188# Common variables
189.if !defined(DEBUG_FLAGS)
190STRIP?= -s
191.endif
192
193COPY?= -c
194COMPRESS_CMD?= gzip -cn
195COMPRESS_EXT?= .gz
196
197.endif !target(__<bsd.own.mk>__)