Merge from vendor branch GCC:
[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 # $DragonFly: src/share/mk/bsd.own.mk,v 1.15 2005/07/30 13:59:45 joerg Exp $
3 #
4 # The include file <bsd.own.mk> set common variables for owner,
5 # group, mode, and directories. Defaults are in brackets.
6 #
7 #
8 # +++ variables +++
9 #
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.
14 #
15 # DISTDIR       Change the tree where the file for a distribution
16 #               gets installed (see /usr/src/release/Makefile). [not set]
17 #
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/...
21 #
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.
25 #
26 #               This variable specifies how a program looks for data, it does
27 #               NOT specify where a program installs data.
28 #
29 # USRDATA_PREFIX
30 #               Change the tree where the program will search for auxillary
31 #               data files.  Defaults to ${TOOLS_PREFIX}
32 #
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.
39 #
40 #               This variable specifies how a program looks for data, it does
41 #               NOT specify where a program installs data.
42 #
43 # INCLUDEDIR
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}.
47 #
48 # COMPRESS_CMD  Program to compress documents. 
49 #               Output is to stdout. [gzip -cn]
50 #
51 # COMPRESS_EXT  File name extension of ${COMPRESS_CMD} command. [.gz]
52 #
53 # STRIP         The flag passed to the install program to cause the binary
54 #               to be stripped.  This is to be used when building your
55 #               own install script so that the entire system can be made
56 #               stripped/not-stripped using a single knob. [-s]
57 #
58 # BINOWN        Binary owner. [root]
59 #
60 # BINGRP        Binary group. [wheel]
61 #
62 # BINMODE       Binary mode. [555]
63 #
64 # CCVER         Default compiler version
65 # GCCLIBDIR     Default gcc subdirectory [${LIBDIR}/${CCVER}]
66 # GCCSHLIBDIR   Default gcc subdirectory [${SHLIBDIR}/${CCVER}]
67 #
68 # NOBINMODE     Mode for non-executable files. [444]
69 #
70 # LIBDIR        Base path for libraries. [/usr/lib]
71 #
72 # LIBCOMPATDIR  Base path for compat libraries. [/usr/lib/compat]
73 #
74 # LIBDATADIR    Base path for misc. utility data files. [/usr/libdata]
75 #
76 # LINTLIBDIR    Base path for lint libraries. [/usr/libdata/lint]
77 #
78 # SHLIBDIR      Base path for shared libraries. [${LIBDIR}]
79 #
80 # LIBOWN        Library mode. [${BINOWN}]
81 #
82 # LIBGRP        Library group. [${BINGRP}]
83 #
84 # LIBMODE       Library mode. [${NOBINMODE}]
85 #
86 #
87 # KMODDIR       Base path for loadable kernel modules
88 #               (see kld(4)). [/modules]
89 #
90 # KMODOWN       KLD owner. [${BINOWN}]
91 #
92 # KMODGRP       KLD group. [${BINGRP}]
93 #
94 # KMODMODE      KLD mode. [${BINMODE}]
95 #
96 #
97 # SHAREDIR      Base path for architecture-independent ascii
98 #               text files. [/usr/share]
99 #
100 # SHAREOWN      ASCII text file owner. [root]
101 #
102 # SHAREGRP      ASCII text file group. [wheel]
103 #
104 # SHAREMODE     ASCII text file mode. [${NOBINMODE}]
105 #
106 #
107 # DOCDIR        Base path for system documentation (e.g. PSD, USD,
108 #               handbook, FAQ etc.). [${SHAREDIR}/doc]
109 #
110 # DOCOWN        Documentation owner. [${SHAREOWN}]
111 #
112 # DOCGRP        Documentation group. [${SHAREGRP}]
113 #
114 # DOCMODE       Documentation mode. [${NOBINMODE}]
115 #
116 #
117 # INFODIR       Base path for GNU's hypertext system
118 #               called Info (see info(1)). [${SHAREDIR}/info]
119 #
120 # INFOOWN       Info owner. [${SHAREOWN}]
121 #
122 # INFOGRP       Info group. [${SHAREGRP}]
123 #
124 # INFOMODE      Info mode. [${NOBINMODE}]
125 #
126 #
127 # MANDIR        Base path for manual installation. [${SHAREDIR}/man/man]
128 #
129 # MANOWN        Manual owner. [${SHAREOWN}]
130 #
131 # MANGRP        Manual group. [${SHAREGRP}]
132 #
133 # MANMODE       Manual mode. [${NOBINMODE}]
134 #
135 #
136 # NLSDIR        Base path for National Language Support files
137 #               installation (see mklocale(1)). [${SHAREDIR}/nls]
138 #
139 # NLSGRP        National Language Support files group. [${SHAREOWN}]
140 #
141 # NLSOWN        National Language Support files owner. [${SHAREGRP}]
142 #
143 # NLSMODE       National Language Support files mode. [${NOBINMODE}]
144
145 .if !target(__<bsd.own.mk>__)
146 __<bsd.own.mk>__:
147
148 # Binaries
149 BINOWN?=        root
150 BINGRP?=        wheel
151 BINMODE?=       555
152 NOBINMODE?=     444
153
154 KMODDIR?=       /modules
155 KMODOWN?=       ${BINOWN}
156 KMODGRP?=       ${BINGRP}
157 KMODMODE?=      ${BINMODE}
158
159 LIBDIR?=        /usr/lib
160 GCCLIBDIR?=     ${LIBDIR}/${CCVER}
161 LIBCOMPATDIR?=  /usr/lib/compat
162 LIBDATADIR?=    /usr/libdata
163 LINTLIBDIR?=    /usr/libdata/lint
164 DEBUGLIBDIR?=   ${LIBDIR}/debug
165 PROFLIBDIR?=    ${LIBDIR}/profile
166 SHLIBDIR?=      ${LIBDIR}
167 GCCSHLIBDIR?=   ${SHLIBDIR}/${CCVER}
168 LIBOWN?=        ${BINOWN}
169 LIBGRP?=        ${BINGRP}
170 LIBMODE?=       ${NOBINMODE}
171
172 TOOLS_PREFIX?=
173 USRDATA_PREFIX?= ${TOOLS_PREFIX}
174 INCLUDEDIR?=    /usr/include
175
176 # Share files
177 SHAREDIR?=      /usr/share
178 SHAREOWN?=      root
179 SHAREGRP?=      wheel
180 SHAREMODE?=     ${NOBINMODE}
181
182 MANDIR?=        ${SHAREDIR}/man/man
183 MANOWN?=        ${SHAREOWN}
184 MANGRP?=        ${SHAREGRP}
185 MANMODE?=       ${NOBINMODE}
186
187 DOCDIR?=        ${SHAREDIR}/doc
188 DOCOWN?=        ${SHAREOWN}
189 DOCGRP?=        ${SHAREGRP}
190 DOCMODE?=       ${NOBINMODE}
191
192 INFODIR?=       ${SHAREDIR}/info
193 INFOOWN?=       ${SHAREOWN}
194 INFOGRP?=       ${SHAREGRP}
195 INFOMODE?=      ${NOBINMODE}
196
197 NLSDIR?=        ${SHAREDIR}/nls
198 NLSGRP?=        ${SHAREGRP}
199 NLSOWN?=        ${SHAREOWN}
200 NLSMODE?=       ${NOBINMODE}
201
202 LOCALEDIR?=     ${SHAREDIR}/locale
203 LOCALEGRP?=     ${SHAREGRP}
204 LOCALEOWN?=     ${SHAREOWN}
205 LOCALEMODE?=    ${NOBINMODE}
206
207 # Common variables
208 .if !defined(DEBUG_FLAGS)
209 STRIP?=         -s
210 .endif
211
212 COMPRESS_CMD?=  gzip -cn
213 COMPRESS_EXT?=  .gz
214
215 .endif # !target(__<bsd.own.mk>__)