3 # The include file <bsd.own.mk> set common variables for owner,
4 # group, mode, and directories. Defaults are in brackets.
9 # DESTDIR Change the tree where the file gets installed. [not set]
11 # DISTDIR Change the tree where the file for a distribution
12 # gets installed (see /usr/src/release/Makefile). [not set]
15 # COPY The flag passed to the install program to cause the binary
16 # to be copied rather than moved. This is to be used when
17 # building our own install script so that the entire system
18 # can either be installed with copies, or with moves using
21 # COMPRESS_CMD Program to compress documents.
22 # Output is to stdout. [gzip -cn]
24 # COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz]
26 # STRIP The flag passed to the install program to cause the binary
27 # to be stripped. This is to be used when building your
28 # own install script so that the entire system can be made
29 # stripped/not-stripped using a single knob. [-s]
31 # OBJFORMAT Default object format that selects which set of tools to run.
34 # BINOWN Binary owner. [root]
36 # BINGRP Binary group. [wheel]
38 # BINMODE Binary mode. [555]
40 # NOBINMODE Mode for non-executable files. [444]
42 # INCOWN Include owner. [root]
44 # INCGRP Include group. [wheel]
46 # INCMODE Include mode. [444]
48 # INCDIR Base path for include files. [/usr/include]
50 # LIBDIR Base path for libraries. [/usr/lib]
52 # LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat]
54 # LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
56 # LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
58 # SHLIBDIR Base path for shared libraries. [${LIBDIR}]
60 # LIBOWN Library mode. [${BINOWN}]
62 # LIBGRP Library group. [${BINGRP}]
64 # LIBMODE Library mode. [${NOBINMODE}]
67 # KMODDIR Base path for loadable kernel modules
68 # (see kld(4)). [/boot/kernel]
70 # KMODOWN KLD owner. [${BINOWN}]
72 # KMODGRP KLD group. [${BINGRP}]
74 # KMODMODE KLD mode. [${BINMODE}]
77 # SHAREDIR Base path for architecture-independent ascii
78 # text files. [/usr/share]
80 # SHAREOWN ASCII text file owner. [root]
82 # SHAREGRP ASCII text file group. [wheel]
84 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
87 # DOCDIR Base path for system documentation (e.g. PSD, USD,
88 # handbook, FAQ etc.). [${SHAREDIR}/doc]
90 # DOCOWN Documentation owner. [${SHAREOWN}]
92 # DOCGRP Documentation group. [${SHAREGRP}]
94 # DOCMODE Documentation mode. [${NOBINMODE}]
97 # INFODIR Base path for GNU's hypertext system
98 # called Info (see info(1)). [${SHAREDIR}/info]
100 # INFOOWN Info owner. [${SHAREOWN}]
102 # INFOGRP Info group. [${SHAREGRP}]
104 # INFOMODE Info mode. [${NOBINMODE}]
107 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
109 # MANOWN Manual owner. [${SHAREOWN}]
111 # MANGRP Manual group. [${SHAREGRP}]
113 # MANMODE Manual mode. [${NOBINMODE}]
116 # NLSDIR Base path for National Language Support files
117 # installation (see mklocale(1)). [${SHAREDIR}/nls]
119 # NLSGRP National Language Support files group. [${SHAREOWN}]
121 # NLSOWN National Language Support files owner. [${SHAREGRP}]
123 # NLSMODE National Language Support files mode. [${NOBINMODE}]
125 # INCLUDEDIR Base path for standard C include files [/usr/include]
127 # This is only here for bootstrapping and is not officially exported
128 # from here. It has normally already been defined in sys.mk.
132 # The build tools are indirected by /usr/bin/objformat which determines the
133 # object format from the OBJFORMAT environment variable and if this is not
134 # defined, it reads /etc/objformat.
136 .if exists(/etc/objformat) && !defined(OBJFORMAT)
137 .include "/etc/objformat"
140 # Default executable format
152 INCDIR?= /usr/include
154 KMODDIR?= /boot/kernel
157 KMODMODE?= ${BINMODE}
159 .if ${OBJFORMAT} == aout
160 LIBDIR?= /usr/lib/aout
164 LIBCOMPATDIR?= /usr/lib/compat
165 LIBDATADIR?= /usr/libdata
166 LINTLIBDIR?= /usr/libdata/lint
170 LIBMODE?= ${NOBINMODE}
174 SHAREDIR?= /usr/share
177 SHAREMODE?= ${NOBINMODE}
179 MANDIR?= ${SHAREDIR}/man/man
182 MANMODE?= ${NOBINMODE}
184 DOCDIR?= ${SHAREDIR}/doc
187 DOCMODE?= ${NOBINMODE}
189 INFODIR?= ${SHAREDIR}/info
190 INFOOWN?= ${SHAREOWN}
191 INFOGRP?= ${SHAREGRP}
192 INFOMODE?= ${NOBINMODE}
194 NLSDIR?= ${SHAREDIR}/nls
197 NLSMODE?= ${NOBINMODE}
199 INCLUDEDIR?= /usr/include
202 .if !defined(DEBUG_FLAGS)
207 COMPRESS_CMD?= gzip -cn