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.9 2004/03/22 20:58:15 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]
12 # DISTDIR Change the tree where the file for a distribution
13 # gets installed (see /usr/src/release/Makefile). [not set]
15 # USRDATA_PREFIX This is a companion to TOOLS_PREFIX, and is set to
16 # TOOLS_PREFIX by default. It controls where an entity
17 # should look for ${USRDATA_PREFIX}/usr/... data. For
18 # example in a buildworld the compiler and includes are
19 # installed in one place (in /usr/obj somewhere), but
20 # will eventually be installworld'd and so these programs
21 # are expected to access /usr data from somewhere other
22 # then where they were initially built/installed.
24 # COPY The flag passed to the install program to cause the binary
25 # to be copied rather than moved. This is to be used when
26 # building our own install script so that the entire system
27 # can either be installed with copies, or with moves using
30 # COMPRESS_CMD Program to compress documents.
31 # Output is to stdout. [gzip -cn]
33 # COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz]
35 # STRIP The flag passed to the install program to cause the binary
36 # to be stripped. This is to be used when building your
37 # own install script so that the entire system can be made
38 # stripped/not-stripped using a single knob. [-s]
40 # BINOWN Binary owner. [root]
42 # BINGRP Binary group. [wheel]
44 # BINMODE Binary mode. [555]
46 # CCVER Default compiler version
47 # GCCLIBDIR Default gcc subdirectory [${LIBDIR}/${CCVER}]
48 # GCCSHLIBDIR Default gcc subdirectory [${SHLIBDIR}/${CCVER}]
50 # NOBINMODE Mode for non-executable files. [444]
52 # LIBDIR Base path for libraries. [/usr/lib]
54 # LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat]
56 # LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
58 # LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
60 # SHLIBDIR Base path for shared libraries. [${LIBDIR}]
62 # LIBOWN Library mode. [${BINOWN}]
64 # LIBGRP Library group. [${BINGRP}]
66 # LIBMODE Library mode. [${NOBINMODE}]
69 # KMODDIR Base path for loadable kernel modules
70 # (see kld(4)). [/modules]
72 # KMODOWN KLD owner. [${BINOWN}]
74 # KMODGRP KLD group. [${BINGRP}]
76 # KMODMODE KLD mode. [${BINMODE}]
79 # SHAREDIR Base path for architecture-independent ascii
80 # text files. [/usr/share]
82 # SHAREOWN ASCII text file owner. [root]
84 # SHAREGRP ASCII text file group. [wheel]
86 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
89 # DOCDIR Base path for system documentation (e.g. PSD, USD,
90 # handbook, FAQ etc.). [${SHAREDIR}/doc]
92 # DOCOWN Documentation owner. [${SHAREOWN}]
94 # DOCGRP Documentation group. [${SHAREGRP}]
96 # DOCMODE Documentation mode. [${NOBINMODE}]
99 # INFODIR Base path for GNU's hypertext system
100 # called Info (see info(1)). [${SHAREDIR}/info]
102 # INFOOWN Info owner. [${SHAREOWN}]
104 # INFOGRP Info group. [${SHAREGRP}]
106 # INFOMODE Info mode. [${NOBINMODE}]
109 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
111 # MANOWN Manual owner. [${SHAREOWN}]
113 # MANGRP Manual group. [${SHAREGRP}]
115 # MANMODE Manual mode. [${NOBINMODE}]
118 # NLSDIR Base path for National Language Support files
119 # installation (see mklocale(1)). [${SHAREDIR}/nls]
121 # NLSGRP National Language Support files group. [${SHAREOWN}]
123 # NLSOWN National Language Support files owner. [${SHAREGRP}]
125 # NLSMODE National Language Support files mode. [${NOBINMODE}]
127 # INCLUDEDIR Base path for standard C include files [/usr/include]
129 .if !target(__<bsd.own.mk>__)
141 KMODMODE?= ${BINMODE}
144 GCCLIBDIR?= ${LIBDIR}/${CCVER}
145 LIBCOMPATDIR?= /usr/lib/compat
146 LIBDATADIR?= /usr/libdata
147 LINTLIBDIR?= /usr/libdata/lint
149 GCCSHLIBDIR?= ${SHLIBDIR}/${CCVER}
152 LIBMODE?= ${NOBINMODE}
154 USRDATA_PREFIX?= ${TOOLS_PREFIX}
157 SHAREDIR?= /usr/share
160 SHAREMODE?= ${NOBINMODE}
162 MANDIR?= ${SHAREDIR}/man/man
165 MANMODE?= ${NOBINMODE}
167 DOCDIR?= ${SHAREDIR}/doc
170 DOCMODE?= ${NOBINMODE}
172 INFODIR?= ${SHAREDIR}/info
173 INFOOWN?= ${SHAREOWN}
174 INFOGRP?= ${SHAREGRP}
175 INFOMODE?= ${NOBINMODE}
177 NLSDIR?= ${SHAREDIR}/nls
180 NLSMODE?= ${NOBINMODE}
182 INCLUDEDIR?= /usr/include
185 .if !defined(DEBUG_FLAGS)
190 COMPRESS_CMD?= gzip -cn
193 .endif !target(__<bsd.own.mk>__)