]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/mk/bsd.own.mk
Finally document the net.link.ether.bridge_cfg and
[FreeBSD/FreeBSD.git] / share / mk / bsd.own.mk
1 # $FreeBSD$
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 # NLSGRP        National Language Support files group. [${SHAREOWN}]
120 #
121 # NLSOWN        National Language Support files owner. [${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.
129 MACHINE_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
141 OBJFORMAT?=     elf
142
143 # Binaries
144 BINOWN?=        root
145 BINGRP?=        wheel
146 BINMODE?=       555
147 NOBINMODE?=     444
148
149 INCOWN?=        root
150 INCGRP?=        wheel
151 INCMODE?=       444
152 INCDIR?=        /usr/include
153
154 KMODDIR?=       /boot/kernel
155 KMODOWN?=       ${BINOWN}
156 KMODGRP?=       ${BINGRP}
157 KMODMODE?=      ${BINMODE}
158
159 .if ${OBJFORMAT} == aout
160 LIBDIR?=        /usr/lib/aout
161 .else
162 LIBDIR?=        /usr/lib
163 .endif
164 LIBCOMPATDIR?=  /usr/lib/compat
165 LIBDATADIR?=    /usr/libdata
166 LINTLIBDIR?=    /usr/libdata/lint
167 SHLIBDIR?=      ${LIBDIR}
168 LIBOWN?=        ${BINOWN}
169 LIBGRP?=        ${BINGRP}
170 LIBMODE?=       ${NOBINMODE}
171
172
173 # Share files
174 SHAREDIR?=      /usr/share
175 SHAREOWN?=      root
176 SHAREGRP?=      wheel
177 SHAREMODE?=     ${NOBINMODE}
178
179 MANDIR?=        ${SHAREDIR}/man/man
180 MANOWN?=        ${SHAREOWN}
181 MANGRP?=        ${SHAREGRP}
182 MANMODE?=       ${NOBINMODE}
183
184 DOCDIR?=        ${SHAREDIR}/doc
185 DOCOWN?=        ${SHAREOWN}
186 DOCGRP?=        ${SHAREGRP}
187 DOCMODE?=       ${NOBINMODE}
188
189 INFODIR?=       ${SHAREDIR}/info
190 INFOOWN?=       ${SHAREOWN}
191 INFOGRP?=       ${SHAREGRP}
192 INFOMODE?=      ${NOBINMODE}
193
194 NLSDIR?=        ${SHAREDIR}/nls
195 NLSGRP?=        ${SHAREOWN}
196 NLSOWN?=        ${SHAREGRP}
197 NLSMODE?=       ${NOBINMODE}
198
199 INCLUDEDIR?=    /usr/include
200
201 # Common variables
202 .if !defined(DEBUG_FLAGS)
203 STRIP?=         -s
204 .endif
205
206 COPY?=          -c
207 COMPRESS_CMD?=  gzip -cn
208 COMPRESS_EXT?=  .gz