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