]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/mk/bsd.own.mk
ELF preparation step 2:
[FreeBSD/FreeBSD.git] / share / mk / bsd.own.mk
1 #       $Id: bsd.own.mk,v 1.13 1998/03/19 13:32:43 bde 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 #
11 # DISTDIR       Change the tree where the file for a distribution
12 #               gets installed (see /usr/src/release/Makefile). [not set]
13 #
14 #
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
19 #               a single knob. [-c]
20 #
21 # COMPRESS_CMD  Program to compress documents. 
22 #               Output is to stdout. [gzip -cn]
23 #
24 # COMPRESS_EXT  File name extension of ${COMPRESS_CMD} command. [.gz]
25 #
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]
30 #
31 #
32 #
33 # BINOWN        Binary owner. [bin]
34 #
35 # BINGRP        Binary group. [bin]
36 #
37 # BINMODE       Binary mode. [555]
38 #
39 # NOBINMODE     Mode for non-executable files. [444]
40 #
41 #
42 # LIBDIR        Base path for libraries. [/usr/lib]
43 #
44 # LIBCOMPATDIR  Base path for compat libraries. [/usr/lib/compat]
45 #
46 # LIBDATADIR    Base path for misc. utility data files. [/usr/libdata]
47 #
48 # LINTLIBDIR    Base path for lint libraries. [/usr/libdata/lint]
49 #
50 # SHLIBDIR      Base path for shared libraries. [${LIBDIR}]
51 #
52 # LIBOWN        Library mode. [${BINOWN}]
53 #
54 # LIBGRP        Library group. [${BINGRP}]
55 #
56 # LIBMODE       Library mode. [${NOBINMODE}]
57 #
58 #
59 # KMODDIR       Base path for loadable kernel modules
60 #               (see lkm(4)). [/lkm]
61 #
62 # KMODOWN       LKM owner. [${BINOWN}]
63 #
64 # KMODGRP       LKM group. [${BINGRP}]
65 #
66 # KMODMODE      LKM mode. [${BINMODE}]
67 #
68 #
69 # SHAREDIR      Base path for architecture-independent ascii
70 #               text files. [/usr/share]
71 #
72 # SHAREOWN      ASCII text file owner. [bin]
73 #
74 # SHAREGRP      ASCII text file group. [bin]
75 #
76 # SHAREMODE     ASCII text file mode. [${NOBINMODE}]
77 #
78 #
79 # DOCDIR        Base path for system documentation (e.g. PSD, USD,
80 #               handbook, FAQ etc.). [${SHAREDIR}/doc]
81 #
82 # DOCOWN        Documentation owner. [${SHAREOWN}]
83 #
84 # DOCGRP        Documentation group. [${SHAREGRP}]
85 #
86 # DOCMODE       Documentation mode. [${NOBINMODE}]
87 #
88 #
89 # INFODIR       Base path for GNU's hypertext system
90 #               called Info (see info(1)). [${SHAREDIR}/info]
91 #
92 # INFOOWN       Info owner. [${SHAREOWN}]
93 #
94 # INFOGRP       Info group. [${SHAREGRP}]
95 #
96 # INFOMODE      Info mode. [${NOBINMODE}]
97 #
98 #
99 # MANDIR        Base path for manual installation. [${SHAREDIR}/man/man]
100 #
101 # MANOWN        Manual owner. [${SHAREOWN}]
102 #
103 # MANGRP        Manual group. [${SHAREGRP}]
104 #
105 # MANMODE       Manual mode. [${NOBINMODE}]
106 #
107 #
108 # NLSDIR        Base path for National Language Support files
109 #               installation (see mklocale(1)). [${SHAREDIR}/nls]
110 #
111 # NLSGRP        National Language Support files group. [${SHAREOWN}]
112 #
113 # NLSOWN        National Language Support files owner. [${SHAREGRP}]
114 #
115 # NLSMODE       National Language Support files mode. [${NONBINMODE}]
116 #
117 # INCLUDEDIR    Base path for standard C include files [/usr/include]
118
119 # Binaries
120 BINOWN?=        bin
121 BINGRP?=        bin
122 BINMODE?=       555
123 NOBINMODE?=     444
124
125 .if ${BINFORMAT} == aout
126 LIBDIR?=        /usr/lib/aout
127 .else
128 LIBDIR?=        /usr/lib
129 .endif
130 LIBCOMPATDIR?=  /usr/lib/compat
131 LIBDATADIR?=    /usr/libdata
132 LINTLIBDIR?=    /usr/libdata/lint
133 SHLIBDIR?=      ${LIBDIR}
134 LIBOWN?=        ${BINOWN}
135 LIBGRP?=        ${BINGRP}
136 LIBMODE?=       ${NOBINMODE}
137
138 KMODDIR?=       /lkm
139 KMODOWN?=       ${BINOWN}
140 KMODGRP?=       ${BINGRP}
141 KMODMODE?=      ${BINMODE}
142
143
144 # Share files
145 SHAREDIR?=      /usr/share
146 SHAREOWN?=      bin
147 SHAREGRP?=      bin
148 SHAREMODE?=     ${NOBINMODE}
149
150 MANDIR?=        ${SHAREDIR}/man/man
151 MANOWN?=        ${SHAREOWN}
152 MANGRP?=        ${SHAREGRP}
153 MANMODE?=       ${NOBINMODE}
154
155 DOCDIR?=        ${SHAREDIR}/doc
156 DOCOWN?=        ${SHAREOWN}
157 DOCGRP?=        ${SHAREGRP}
158 DOCMODE?=       ${NOBINMODE}
159
160 INFODIR?=       ${SHAREDIR}/info
161 INFOOWN?=       ${SHAREOWN}
162 INFOGRP?=       ${SHAREGRP}
163 INFOMODE?=      ${NOBINMODE}
164
165 NLSDIR?=        ${SHAREDIR}/nls
166 NLSGRP?=        ${SHAREOWN}
167 NLSOWN?=        ${SHAREGRP}
168 NLSMODE?=       ${NONBINMODE}
169
170 INCLUDEDIR?=    /usr/include
171
172 # Common variables
173 .if !defined(DEBUG_FLAGS)
174 STRIP?=         -s
175 .endif
176
177 COPY?=          -c
178 COMPRESS_CMD?=  gzip -cn
179 COMPRESS_EXT?=  .gz