sbin/hammer: Split alloc_bigblock() into two functions [1/2]
[dragonfly.git] / share / mk / bsd.own.mk
blob84eca900684e17e04673f175495b26221e9ea70b
1 # $FreeBSD: src/share/mk/bsd.own.mk,v 1.27.2.4 2002/07/22 14:21:51 ru Exp $
3 # The include file <bsd.own.mk> set common variables for owner,
4 # group, mode, and directories. Defaults are in brackets.
7 # +++ variables +++
9 # DESTDIR Change the tree where the file gets installed. [not set].
10 # Typical usage is ${DESTDIR}/usr/bin/... Note that this
11 # variable is not used to determine where programs access
12 # auxillary data, only where everything is installed.
14 # DISTDIR Change the tree where the file for a distribution
15 # gets installed (see /usr/src/release/Makefile). [not set]
17 # TOOLS_PREFIX Change the tree where the program will search for auxillary
18 # program binaries. Defaults to <empty>. e.g. usage is in
19 # the typical form ${TOOLS_PREFIX}/usr/libexec/...
21 # This is primarily used when generating cross-building tools
22 # where the cross-building tools must exec auxillary binaries
23 # which are themselves cross-built tools.
25 # This variable specifies how a program looks for data, it does
26 # NOT specify where a program installs data.
28 # USRDATA_PREFIX
29 # Change the tree where the program will search for auxillary
30 # data files. Defaults to ${TOOLS_PREFIX}
32 # Note that while auxillary program binaries and auxillary
33 # data files are usually installed in the same tree, there
34 # are cases where they might not be. For example, when
35 # buildworld generates the cross compile tools it must install
36 # auxillary binaries in the ctools obj hiearchy but those
37 # binaries must access data from the world obj hierarchy.
39 # This variable specifies how a program looks for data, it does
40 # NOT specify where a program installs data.
42 # INCLUDEDIR
43 # Change the tree where header files are to be installed.
44 # Defaults to /usr/include. Note that use of INCLUDEDIR
45 # is typically prefixed by ${DESTDIR}.
47 # COMPRESS_CMD Program to compress documents.
48 # Output is to stdout. [gzip -cn]
50 # COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz]
52 # STRIP The flag passed to the install program to cause the binary
53 # to be stripped. This is to be used when building your
54 # own install script so that the entire system can be made
55 # stripped/not-stripped using a single knob. [-s]
57 # BINOWN Binary owner. [root]
59 # BINGRP Binary group. [wheel]
61 # BINMODE Binary mode. [555]
63 # CCVER Default compiler version
64 # GCCLIBDIR Default gcc subdirectory [${LIBDIR}/${CCVER}]
65 # GCCSHLIBDIR Default gcc subdirectory [${SHLIBDIR}/${CCVER}]
67 # NOBINMODE Mode for non-executable files. [444]
69 # LIBDIR Base path for libraries. [/usr/lib]
71 # LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
73 # LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
75 # SHLIBDIR Base path for shared libraries. [${LIBDIR}]
77 # LIBOWN Library mode. [${BINOWN}]
79 # LIBGRP Library group. [${BINGRP}]
81 # LIBMODE Library mode. [${NOBINMODE}]
84 # SHAREDIR Base path for architecture-independent ascii
85 # text files. [/usr/share]
87 # SHAREOWN ASCII text file owner. [root]
89 # SHAREGRP ASCII text file group. [wheel]
91 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
94 # DOCDIR Base path for system documentation (e.g. PSD, USD,
95 # handbook, FAQ etc.). [${SHAREDIR}/doc]
97 # DOCOWN Documentation owner. [${SHAREOWN}]
99 # DOCGRP Documentation group. [${SHAREGRP}]
101 # DOCMODE Documentation mode. [${NOBINMODE}]
104 # INFODIR Base path for GNU's hypertext system
105 # called Info (see info(1)). [${SHAREDIR}/info]
107 # INFOOWN Info owner. [${SHAREOWN}]
109 # INFOGRP Info group. [${SHAREGRP}]
111 # INFOMODE Info mode. [${NOBINMODE}]
114 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
116 # MANOWN Manual owner. [${SHAREOWN}]
118 # MANGRP Manual group. [${SHAREGRP}]
120 # MANMODE Manual mode. [${NOBINMODE}]
123 # NLSDIR Base path for National Language Support files
124 # installation (see localedef(1)). [${SHAREDIR}/nls]
126 # NLSGRP National Language Support files group. [${SHAREOWN}]
128 # NLSOWN National Language Support files owner. [${SHAREGRP}]
130 # NLSMODE National Language Support files mode. [${NOBINMODE}]
132 .if !target(__<bsd.own.mk>__)
133 __<bsd.own.mk>__:
135 # Binaries
136 BINOWN?= root
137 BINGRP?= wheel
138 BINMODE?= 555
139 NOBINMODE?= 444
141 LIBDIR?= /usr/lib
142 GCCLIBDIR?= ${LIBDIR}/${CCVER}
143 LIBDATADIR?= /usr/libdata
144 LINTLIBDIR?= /usr/libdata/lint
145 DEBUGLIBDIR?= ${LIBDIR}/debug
146 PROFLIBDIR?= ${LIBDIR}/profile
147 SHLIBDIR?= ${LIBDIR}
148 GCCSHLIBDIR?= ${SHLIBDIR}/${CCVER}
149 LIBOWN?= ${BINOWN}
150 LIBGRP?= ${BINGRP}
151 LIBMODE?= ${NOBINMODE}
153 TOOLS_PREFIX?=
154 USRDATA_PREFIX?= ${TOOLS_PREFIX}
155 INCLUDEDIR?= /usr/include
157 # Share files
158 SHAREDIR?= /usr/share
159 SHAREOWN?= root
160 SHAREGRP?= wheel
161 SHAREMODE?= ${NOBINMODE}
163 MANDIR?= ${SHAREDIR}/man/man
164 MANOWN?= ${SHAREOWN}
165 MANGRP?= ${SHAREGRP}
166 MANMODE?= ${NOBINMODE}
168 DOCDIR?= ${SHAREDIR}/doc
169 DOCOWN?= ${SHAREOWN}
170 DOCGRP?= ${SHAREGRP}
171 DOCMODE?= ${NOBINMODE}
173 INFODIR?= ${SHAREDIR}/info
174 INFOOWN?= ${SHAREOWN}
175 INFOGRP?= ${SHAREGRP}
176 INFOMODE?= ${NOBINMODE}
178 NLSDIR?= ${SHAREDIR}/nls
179 NLSGRP?= ${SHAREGRP}
180 NLSOWN?= ${SHAREOWN}
181 NLSMODE?= ${NOBINMODE}
183 LOCALEDIR?= ${SHAREDIR}/locale
184 LOCALEGRP?= ${SHAREGRP}
185 LOCALEOWN?= ${SHAREOWN}
186 LOCALEMODE?= ${NOBINMODE}
188 # Common variables
189 .if !defined(DEBUG_FLAGS)
190 STRIP?= -s
191 .endif
193 COMPRESS_CMD?= gzip -cn
194 COMPRESS_EXT?= .gz
196 .endif # !target(__<bsd.own.mk>__)