bsd.own.mk revision 38713
1#	$Id: bsd.own.mk,v 1.17 1998/08/30 20:35:24 jb 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# OBJFORMAT	Default object format that selects which set of tools to run.
32#		[elf on alpha, aout otherwise]
33#
34# BINOWN	Binary owner. [bin]
35#
36# BINGRP	Binary group. [bin]
37#
38# BINMODE	Binary mode. [555]
39#
40# NOBINMODE	Mode for non-executable files. [444]
41#
42#
43# LIBDIR	Base path for libraries. [/usr/lib]
44#
45# LIBCOMPATDIR	Base path for compat libraries. [/usr/lib/compat]
46#
47# LIBDATADIR	Base path for misc. utility data files. [/usr/libdata]
48#
49# LINTLIBDIR	Base path for lint libraries. [/usr/libdata/lint]
50#
51# SHLIBDIR	Base path for shared libraries. [${LIBDIR}]
52#
53# LIBOWN	Library mode. [${BINOWN}]
54#
55# LIBGRP	Library group. [${BINGRP}]
56#
57# LIBMODE	Library mode. [${NOBINMODE}]
58#
59#
60# KMODDIR	Base path for loadable kernel modules
61#		(see lkm(4)). [/lkm]
62#
63# KMODOWN	LKM owner. [${BINOWN}]
64#
65# KMODGRP	LKM group. [${BINGRP}]
66#
67# KMODMODE	LKM mode. [${BINMODE}]
68#
69#
70# SHAREDIR	Base path for architecture-independent ascii
71#		text files. [/usr/share]
72#
73# SHAREOWN	ASCII text file owner. [bin]
74#
75# SHAREGRP	ASCII text file group. [bin]
76#
77# SHAREMODE	ASCII text file mode. [${NOBINMODE}]
78#
79#
80# DOCDIR	Base path for system documentation (e.g. PSD, USD,
81#		handbook, FAQ etc.). [${SHAREDIR}/doc]
82#
83# DOCOWN	Documentation owner. [${SHAREOWN}]
84#
85# DOCGRP	Documentation group. [${SHAREGRP}]
86#
87# DOCMODE	Documentation mode. [${NOBINMODE}]
88#
89#
90# INFODIR	Base path for GNU's hypertext system
91#		called Info (see info(1)). [${SHAREDIR}/info]
92#
93# INFOOWN	Info owner. [${SHAREOWN}]
94#
95# INFOGRP	Info group. [${SHAREGRP}]
96#
97# INFOMODE	Info mode. [${NOBINMODE}]
98#
99#
100# MANDIR	Base path for manual installation. [${SHAREDIR}/man/man]
101#
102# MANOWN	Manual owner. [${SHAREOWN}]
103#
104# MANGRP	Manual group. [${SHAREGRP}]
105#
106# MANMODE	Manual mode. [${NOBINMODE}]
107#
108#
109# NLSDIR	Base path for National Language Support files
110#		installation (see mklocale(1)). [${SHAREDIR}/nls]
111#
112# NLSGRP	National Language Support files group. [${SHAREOWN}]
113#
114# NLSOWN	National Language Support files owner. [${SHAREGRP}]
115#
116# NLSMODE	National Language Support files mode. [${NONBINMODE}]
117#
118# INCLUDEDIR	Base path for standard C include files [/usr/include]
119
120# This is only here for bootstrapping and is not officially exported
121# from here.  It has normally already been defined in sys.mk.
122MACHINE_ARCH?=	i386
123
124#
125# The build tools are indirected by /usr/bin/objformat which determines the
126# object format from the OBJFORMAT environment variable and if this is not
127# defined, it reads /etc/objectformat.
128#
129.if exists(/etc/objformat) && !defined(OBJFORMAT)
130.include "/etc/objformat"
131.endif
132
133# Default executable format
134.if ${MACHINE_ARCH} == "alpha"
135OBJFORMAT?=	elf
136.else
137OBJFORMAT?=	aout
138.endif
139
140# Binaries
141BINOWN?=	bin
142BINGRP?=	bin
143BINMODE?=	555
144NOBINMODE?=	444
145
146.if ${OBJFORMAT} == aout
147LIBDIR?=	/usr/lib/aout
148.else
149LIBDIR?=	/usr/lib
150.endif
151LIBCOMPATDIR?=	/usr/lib/compat
152LIBDATADIR?=	/usr/libdata
153LINTLIBDIR?=	/usr/libdata/lint
154SHLIBDIR?=	${LIBDIR}
155LIBOWN?=	${BINOWN}
156LIBGRP?=	${BINGRP}
157LIBMODE?=	${NOBINMODE}
158
159KMODDIR?=	/lkm
160KMODOWN?=	${BINOWN}
161KMODGRP?=	${BINGRP}
162KMODMODE?=	${BINMODE}
163
164
165# Share files
166SHAREDIR?=	/usr/share
167SHAREOWN?=	bin
168SHAREGRP?=	bin
169SHAREMODE?=	${NOBINMODE}
170
171MANDIR?=	${SHAREDIR}/man/man
172MANOWN?=	${SHAREOWN}
173MANGRP?=	${SHAREGRP}
174MANMODE?=	${NOBINMODE}
175
176DOCDIR?=	${SHAREDIR}/doc
177DOCOWN?=	${SHAREOWN}
178DOCGRP?=	${SHAREGRP}
179DOCMODE?=	${NOBINMODE}
180
181INFODIR?=	${SHAREDIR}/info
182INFOOWN?=	${SHAREOWN}
183INFOGRP?=	${SHAREGRP}
184INFOMODE?=	${NOBINMODE}
185
186NLSDIR?=	${SHAREDIR}/nls
187NLSGRP?=	${SHAREOWN}
188NLSOWN?=	${SHAREGRP}
189NLSMODE?=	${NONBINMODE}
190
191INCLUDEDIR?=	/usr/include
192
193# Common variables
194.if !defined(DEBUG_FLAGS)
195STRIP?=		-s
196.endif
197
198COPY?=		-c
199COMPRESS_CMD?=	gzip -cn
200COMPRESS_EXT?=	.gz
201