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.10 2004/04/05 05:30:13 dillon Exp $
4 # The include file <bsd.own.mk> set common variables for owner,
5 # group, mode, and directories. Defaults are in brackets.
10 # DESTDIR Change the tree where the file gets installed. [not set].
11 # Typical usage is ${DESTDIR}/usr/bin/... Note that this
12 # variable is not used to determine where programs access
13 # auxillary data, only where everything is installed.
15 # DISTDIR Change the tree where the file for a distribution
16 # gets installed (see /usr/src/release/Makefile). [not set]
18 # TOOLS_PREFIX Change the tree where the program will search for auxillary
19 # program binaries. Defaults to <empty>. e.g. usage is in
20 # the typical form ${TOOLS_PREFIX}/usr/libexec/...
22 # This is primarily used when generating cross-building tools
23 # where the cross-building tools must exec auxillary binaries
24 # which are themselves cross-built tools.
26 # This variable specifies how a program looks for data, it does
27 # NOT specify where a program installs data.
30 # Change the tree where the program will search for auxillary
31 # data files. Defaults to ${TOOLS_PREFIX}
33 # Note that while auxillary program binaries and auxillary
34 # data files are usually installed in the same tree, there
35 # are cases where they might not be. For example, when
36 # buildworld generates the cross compile tools it must install
37 # auxillary binaries in the ctools obj hiearchy but those
38 # binaries must access data from the world obj hierarchy.
40 # This variable specifies how a program looks for data, it does
41 # NOT specify where a program installs data.
44 # Change the tree where header files are to be installed.
45 # Defaults to /usr/include. Note that use of INCLUDEDIR
46 # is typically prefixed by ${DESTDIR}.
48 # COPY The flag passed to the install program to cause the binary
49 # to be copied rather than moved. This is to be used when
50 # building our own install script so that the entire system
51 # can either be installed with copies, or with moves using
54 # COMPRESS_CMD Program to compress documents.
55 # Output is to stdout. [gzip -cn]
57 # COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz]
59 # STRIP The flag passed to the install program to cause the binary
60 # to be stripped. This is to be used when building your
61 # own install script so that the entire system can be made
62 # stripped/not-stripped using a single knob. [-s]
64 # BINOWN Binary owner. [root]
66 # BINGRP Binary group. [wheel]
68 # BINMODE Binary mode. [555]
70 # CCVER Default compiler version
71 # GCCLIBDIR Default gcc subdirectory [${LIBDIR}/${CCVER}]
72 # GCCSHLIBDIR Default gcc subdirectory [${SHLIBDIR}/${CCVER}]
74 # NOBINMODE Mode for non-executable files. [444]
76 # LIBDIR Base path for libraries. [/usr/lib]
78 # LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat]
80 # LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
82 # LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
84 # SHLIBDIR Base path for shared libraries. [${LIBDIR}]
86 # LIBOWN Library mode. [${BINOWN}]
88 # LIBGRP Library group. [${BINGRP}]
90 # LIBMODE Library mode. [${NOBINMODE}]
93 # KMODDIR Base path for loadable kernel modules
94 # (see kld(4)). [/modules]
96 # KMODOWN KLD owner. [${BINOWN}]
98 # KMODGRP KLD group. [${BINGRP}]
100 # KMODMODE KLD mode. [${BINMODE}]
103 # SHAREDIR Base path for architecture-independent ascii
104 # text files. [/usr/share]
106 # SHAREOWN ASCII text file owner. [root]
108 # SHAREGRP ASCII text file group. [wheel]
110 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
113 # DOCDIR Base path for system documentation (e.g. PSD, USD,
114 # handbook, FAQ etc.). [${SHAREDIR}/doc]
116 # DOCOWN Documentation owner. [${SHAREOWN}]
118 # DOCGRP Documentation group. [${SHAREGRP}]
120 # DOCMODE Documentation mode. [${NOBINMODE}]
123 # INFODIR Base path for GNU's hypertext system
124 # called Info (see info(1)). [${SHAREDIR}/info]
126 # INFOOWN Info owner. [${SHAREOWN}]
128 # INFOGRP Info group. [${SHAREGRP}]
130 # INFOMODE Info mode. [${NOBINMODE}]
133 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
135 # MANOWN Manual owner. [${SHAREOWN}]
137 # MANGRP Manual group. [${SHAREGRP}]
139 # MANMODE Manual mode. [${NOBINMODE}]
142 # NLSDIR Base path for National Language Support files
143 # installation (see mklocale(1)). [${SHAREDIR}/nls]
145 # NLSGRP National Language Support files group. [${SHAREOWN}]
147 # NLSOWN National Language Support files owner. [${SHAREGRP}]
149 # NLSMODE National Language Support files mode. [${NOBINMODE}]
151 .if !target(__<bsd.own.mk>__)
163 KMODMODE?= ${BINMODE}
166 GCCLIBDIR?= ${LIBDIR}/${CCVER}
167 LIBCOMPATDIR?= /usr/lib/compat
168 LIBDATADIR?= /usr/libdata
169 LINTLIBDIR?= /usr/libdata/lint
171 GCCSHLIBDIR?= ${SHLIBDIR}/${CCVER}
174 LIBMODE?= ${NOBINMODE}
177 USRDATA_PREFIX?= ${TOOLS_PREFIX}
178 INCLUDEDIR?= /usr/include
181 SHAREDIR?= /usr/share
184 SHAREMODE?= ${NOBINMODE}
186 MANDIR?= ${SHAREDIR}/man/man
189 MANMODE?= ${NOBINMODE}
191 DOCDIR?= ${SHAREDIR}/doc
194 DOCMODE?= ${NOBINMODE}
196 INFODIR?= ${SHAREDIR}/info
197 INFOOWN?= ${SHAREOWN}
198 INFOGRP?= ${SHAREGRP}
199 INFOMODE?= ${NOBINMODE}
201 NLSDIR?= ${SHAREDIR}/nls
204 NLSMODE?= ${NOBINMODE}
207 .if !defined(DEBUG_FLAGS)
212 COMPRESS_CMD?= gzip -cn
215 .endif !target(__<bsd.own.mk>__)