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.6 2004/01/26 16:13:49 joerg 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]
16 # COPY The flag passed to the install program to cause the binary
17 # to be copied rather than moved. This is to be used when
18 # building our own install script so that the entire system
19 # can either be installed with copies, or with moves using
22 # COMPRESS_CMD Program to compress documents.
23 # Output is to stdout. [gzip -cn]
25 # COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz]
27 # STRIP The flag passed to the install program to cause the binary
28 # to be stripped. This is to be used when building your
29 # own install script so that the entire system can be made
30 # stripped/not-stripped using a single knob. [-s]
32 # OBJFORMAT Default object format that selects which set of tools to run.
35 # BINOWN Binary owner. [root]
37 # BINGRP Binary group. [wheel]
39 # BINMODE Binary mode. [555]
41 # CCVER Default compiler version
42 # GCCLIBDIR Default gcc subdirectory [${LIBDIR}/${CCVER}]
43 # GCCSHLIBDIR Default gcc subdirectory [${SHLIBDIR}/${CCVER}]
45 # NOBINMODE Mode for non-executable files. [444]
47 # LIBDIR Base path for libraries. [/usr/lib]
49 # LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat]
51 # LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
53 # LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
55 # SHLIBDIR Base path for shared libraries. [${LIBDIR}]
57 # LIBOWN Library mode. [${BINOWN}]
59 # LIBGRP Library group. [${BINGRP}]
61 # LIBMODE Library mode. [${NOBINMODE}]
64 # KMODDIR Base path for loadable kernel modules
65 # (see kld(4)). [/modules]
67 # KMODOWN KLD owner. [${BINOWN}]
69 # KMODGRP KLD group. [${BINGRP}]
71 # KMODMODE KLD mode. [${BINMODE}]
74 # SHAREDIR Base path for architecture-independent ascii
75 # text files. [/usr/share]
77 # SHAREOWN ASCII text file owner. [root]
79 # SHAREGRP ASCII text file group. [wheel]
81 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
84 # DOCDIR Base path for system documentation (e.g. PSD, USD,
85 # handbook, FAQ etc.). [${SHAREDIR}/doc]
87 # DOCOWN Documentation owner. [${SHAREOWN}]
89 # DOCGRP Documentation group. [${SHAREGRP}]
91 # DOCMODE Documentation mode. [${NOBINMODE}]
94 # INFODIR Base path for GNU's hypertext system
95 # called Info (see info(1)). [${SHAREDIR}/info]
97 # INFOOWN Info owner. [${SHAREOWN}]
99 # INFOGRP Info group. [${SHAREGRP}]
101 # INFOMODE Info mode. [${NOBINMODE}]
104 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
106 # MANOWN Manual owner. [${SHAREOWN}]
108 # MANGRP Manual group. [${SHAREGRP}]
110 # MANMODE Manual mode. [${NOBINMODE}]
113 # NLSDIR Base path for National Language Support files
114 # installation (see mklocale(1)). [${SHAREDIR}/nls]
116 # NLSGRP National Language Support files group. [${SHAREOWN}]
118 # NLSOWN National Language Support files owner. [${SHAREGRP}]
120 # NLSMODE National Language Support files mode. [${NOBINMODE}]
122 # INCLUDEDIR Base path for standard C include files [/usr/include]
124 .if !target(__<bsd.own.mk>__)
136 KMODMODE?= ${BINMODE}
141 .if defined(OBJFORMAT) && ${OBJFORMAT} == aout
142 LIBDIR?= /usr/lib/aout
146 GCCLIBDIR?= ${LIBDIR}/${CCVER}
147 LIBCOMPATDIR?= /usr/lib/compat
148 LIBDATADIR?= /usr/libdata
149 LINTLIBDIR?= /usr/libdata/lint
151 GCCSHLIBDIR?= ${SHLIBDIR}/${CCVER}
154 LIBMODE?= ${NOBINMODE}
158 SHAREDIR?= /usr/share
161 SHAREMODE?= ${NOBINMODE}
163 MANDIR?= ${SHAREDIR}/man/man
166 MANMODE?= ${NOBINMODE}
168 DOCDIR?= ${SHAREDIR}/doc
171 DOCMODE?= ${NOBINMODE}
173 INFODIR?= ${SHAREDIR}/info
174 INFOOWN?= ${SHAREOWN}
175 INFOGRP?= ${SHAREGRP}
176 INFOMODE?= ${NOBINMODE}
178 NLSDIR?= ${SHAREDIR}/nls
181 NLSMODE?= ${NOBINMODE}
183 INCLUDEDIR?= /usr/include
186 .if !defined(DEBUG_FLAGS)
191 COMPRESS_CMD?= gzip -cn
194 .endif !target(__<bsd.own.mk>__)