xref: /dragonfly/share/mk/bsd.own.mk (revision 6be0577fd9f1b3c327dfa45e6886941e51ecbbdc)
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# MANDIR  Base path for manual installation. [${SHAREDIR}/man/man]
95#
96# MANOWN  Manual owner. [${SHAREOWN}]
97#
98# MANGRP  Manual group. [${SHAREGRP}]
99#
100# MANMODE Manual mode. [${NOBINMODE}]
101#
102#
103# NLSDIR  Base path for National Language Support files
104#                   installation (see localedef(1)). [${SHAREDIR}/nls]
105#
106# NLSGRP  National Language Support files group. [${SHAREOWN}]
107#
108# NLSOWN  National Language Support files owner. [${SHAREGRP}]
109#
110# NLSMODE National Language Support files mode. [${NOBINMODE}]
111
112.if !target(__<bsd.own.mk>__)
113__<bsd.own.mk>__:
114
115# Binaries
116BINOWN?=  root
117BINGRP?=  wheel
118BINMODE?= 555
119NOBINMODE?=         444
120
121LIBDIR?=  /usr/lib
122GCCLIBDIR?=         ${LIBDIR}/${CCVER}
123LIBDATADIR?=        /usr/libdata
124LINTLIBDIR?=        /usr/libdata/lint
125DEBUGLIBDIR?=       ${LIBDIR}/debug
126PROFLIBDIR?=        ${LIBDIR}/profile
127SHLIBDIR?=          ${LIBDIR}
128GCCSHLIBDIR?=       ${SHLIBDIR}/${CCVER}
129LIBOWN?=  ${BINOWN}
130LIBGRP?=  ${BINGRP}
131LIBMODE?= ${NOBINMODE}
132
133TOOLS_PREFIX?=
134USRDATA_PREFIX?= ${TOOLS_PREFIX}
135INCLUDEDIR?=        /usr/include
136
137# Share files
138SHAREDIR?=          /usr/share
139SHAREOWN?=          root
140SHAREGRP?=          wheel
141SHAREMODE?=         ${NOBINMODE}
142
143MANDIR?=  ${SHAREDIR}/man/man
144MANOWN?=  ${SHAREOWN}
145MANGRP?=  ${SHAREGRP}
146MANMODE?= ${NOBINMODE}
147
148NLSDIR?=  ${SHAREDIR}/nls
149NLSGRP?=  ${SHAREGRP}
150NLSOWN?=  ${SHAREOWN}
151NLSMODE?= ${NOBINMODE}
152
153LOCALEDIR?=         ${SHAREDIR}/locale
154LOCALEGRP?=         ${SHAREGRP}
155LOCALEOWN?=         ${SHAREOWN}
156LOCALEMODE?=        ${NOBINMODE}
157
158# Common variables
159.if !defined(DEBUG_FLAGS)
160STRIP?=             -s
161.endif
162
163COMPRESS_CMD?=      gzip -cn
164COMPRESS_EXT?=      .gz
165
166.endif # !target(__<bsd.own.mk>__)
167