Merge branch 'vendor/OPENRESOLV' with the following changes:
[dragonfly.git] / share / mk / bsd.own.mk
1 # $FreeBSD: src/share/mk/bsd.own.mk,v 1.27.2.4 2002/07/22 14:21:51 ru Exp $
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 #               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.
13 #
14 # DISTDIR       Change the tree where the file for a distribution
15 #               gets installed (see /usr/src/release/Makefile). [not set]
16 #
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/...
20 #
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.
24 #
25 #               This variable specifies how a program looks for data, it does
26 #               NOT specify where a program installs data.
27 #
28 # USRDATA_PREFIX
29 #               Change the tree where the program will search for auxillary
30 #               data files.  Defaults to ${TOOLS_PREFIX}
31 #
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.
38 #
39 #               This variable specifies how a program looks for data, it does
40 #               NOT specify where a program installs data.
41 #
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}.
46 #
47 # COMPRESS_CMD  Program to compress documents. 
48 #               Output is to stdout. [gzip -cn]
49 #
50 # COMPRESS_EXT  File name extension of ${COMPRESS_CMD} command. [.gz]
51 #
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]
56 #
57 # BINOWN        Binary owner. [root]
58 #
59 # BINGRP        Binary group. [wheel]
60 #
61 # BINMODE       Binary mode. [555]
62 #
63 # CCVER         Default compiler version
64 # GCCLIBDIR     Default gcc subdirectory [${LIBDIR}/${CCVER}]
65 # GCCSHLIBDIR   Default gcc subdirectory [${SHLIBDIR}/${CCVER}]
66 #
67 # NOBINMODE     Mode for non-executable files. [444]
68 #
69 # LIBDIR        Base path for libraries. [/usr/lib]
70 #
71 # LIBDATADIR    Base path for misc. utility data files. [/usr/libdata]
72 #
73 # LINTLIBDIR    Base path for lint libraries. [/usr/libdata/lint]
74 #
75 # SHLIBDIR      Base path for shared libraries. [${LIBDIR}]
76 #
77 # LIBOWN        Library mode. [${BINOWN}]
78 #
79 # LIBGRP        Library group. [${BINGRP}]
80 #
81 # LIBMODE       Library mode. [${NOBINMODE}]
82 #
83 #
84 # SHAREDIR      Base path for architecture-independent ascii
85 #               text files. [/usr/share]
86 #
87 # SHAREOWN      ASCII text file owner. [root]
88 #
89 # SHAREGRP      ASCII text file group. [wheel]
90 #
91 # SHAREMODE     ASCII text file mode. [${NOBINMODE}]
92 #
93 #
94 # DOCDIR        Base path for system documentation (e.g. PSD, USD,
95 #               handbook, FAQ etc.). [${SHAREDIR}/doc]
96 #
97 # DOCOWN        Documentation owner. [${SHAREOWN}]
98 #
99 # DOCGRP        Documentation group. [${SHAREGRP}]
100 #
101 # DOCMODE       Documentation mode. [${NOBINMODE}]
102 #
103 #
104 # INFODIR       Base path for GNU's hypertext system
105 #               called Info (see info(1)). [${SHAREDIR}/info]
106 #
107 # INFOOWN       Info owner. [${SHAREOWN}]
108 #
109 # INFOGRP       Info group. [${SHAREGRP}]
110 #
111 # INFOMODE      Info mode. [${NOBINMODE}]
112 #
113 #
114 # MANDIR        Base path for manual installation. [${SHAREDIR}/man/man]
115 #
116 # MANOWN        Manual owner. [${SHAREOWN}]
117 #
118 # MANGRP        Manual group. [${SHAREGRP}]
119 #
120 # MANMODE       Manual mode. [${NOBINMODE}]
121 #
122 #
123 # NLSDIR        Base path for National Language Support files
124 #               installation (see localedef(1)). [${SHAREDIR}/nls]
125 #
126 # NLSGRP        National Language Support files group. [${SHAREOWN}]
127 #
128 # NLSOWN        National Language Support files owner. [${SHAREGRP}]
129 #
130 # NLSMODE       National Language Support files mode. [${NOBINMODE}]
131
132 .if !target(__<bsd.own.mk>__)
133 __<bsd.own.mk>__:
134
135 # Binaries
136 BINOWN?=        root
137 BINGRP?=        wheel
138 BINMODE?=       555
139 NOBINMODE?=     444
140
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}
152
153 TOOLS_PREFIX?=
154 USRDATA_PREFIX?= ${TOOLS_PREFIX}
155 INCLUDEDIR?=    /usr/include
156
157 # Share files
158 SHAREDIR?=      /usr/share
159 SHAREOWN?=      root
160 SHAREGRP?=      wheel
161 SHAREMODE?=     ${NOBINMODE}
162
163 MANDIR?=        ${SHAREDIR}/man/man
164 MANOWN?=        ${SHAREOWN}
165 MANGRP?=        ${SHAREGRP}
166 MANMODE?=       ${NOBINMODE}
167
168 DOCDIR?=        ${SHAREDIR}/doc
169 DOCOWN?=        ${SHAREOWN}
170 DOCGRP?=        ${SHAREGRP}
171 DOCMODE?=       ${NOBINMODE}
172
173 INFODIR?=       ${SHAREDIR}/info
174 INFOOWN?=       ${SHAREOWN}
175 INFOGRP?=       ${SHAREGRP}
176 INFOMODE?=      ${NOBINMODE}
177
178 NLSDIR?=        ${SHAREDIR}/nls
179 NLSGRP?=        ${SHAREGRP}
180 NLSOWN?=        ${SHAREOWN}
181 NLSMODE?=       ${NOBINMODE}
182
183 LOCALEDIR?=     ${SHAREDIR}/locale
184 LOCALEGRP?=     ${SHAREGRP}
185 LOCALEOWN?=     ${SHAREOWN}
186 LOCALEMODE?=    ${NOBINMODE}
187
188 # Common variables
189 .if !defined(DEBUG_FLAGS)
190 STRIP?=         -s
191 .endif
192
193 COMPRESS_CMD?=  gzip -cn
194 COMPRESS_EXT?=  .gz
195
196 .endif # !target(__<bsd.own.mk>__)