bsd.own.mk revision 38656
167754Smsmith#	$Id: bsd.own.mk,v 1.16 1998/08/18 00:50:36 jb Exp $
267754Smsmith#
367754Smsmith# The include file <bsd.own.mk> set common variables for owner,
467754Smsmith# group, mode, and directories. Defaults are in brackets.
567754Smsmith#
667754Smsmith#
7217365Sjkim# +++ variables +++
8217365Sjkim#
970243Smsmith# DESTDIR	Change the tree where the file gets installed. [not set]
1067754Smsmith#
11217365Sjkim# DISTDIR	Change the tree where the file for a distribution
12217365Sjkim# 		gets installed (see /usr/src/release/Makefile). [not set]
13217365Sjkim#
14217365Sjkim#
15217365Sjkim# COPY		The flag passed to the install program to cause the binary
16217365Sjkim#		to be copied rather than moved.  This is to be used when
17217365Sjkim#		building our own install script so that the entire system
18217365Sjkim#		can either be installed with copies, or with moves using
19217365Sjkim#		a single knob. [-c]
20217365Sjkim#
21217365Sjkim# COMPRESS_CMD	Program to compress documents. 
22217365Sjkim#		Output is to stdout. [gzip -cn]
23217365Sjkim#
24217365Sjkim# COMPRESS_EXT	File name extension of ${COMPRESS_CMD} command. [.gz]
2567754Smsmith#
26217365Sjkim# STRIP		The flag passed to the install program to cause the binary
27217365Sjkim#		to be stripped.  This is to be used when building your
28217365Sjkim#		own install script so that the entire system can be made
2967754Smsmith#		stripped/not-stripped using a single knob. [-s]
30217365Sjkim#
31217365Sjkim# OBJFORMAT	Default object format that selects which set of tools to run.
32217365Sjkim#		[elf on alpha, aout otherwise]
33217365Sjkim#
34217365Sjkim# BINOWN	Binary owner. [bin]
35217365Sjkim#
36217365Sjkim# BINGRP	Binary group. [bin]
37217365Sjkim#
38217365Sjkim# BINMODE	Binary mode. [555]
39217365Sjkim#
40217365Sjkim# NOBINMODE	Mode for non-executable files. [444]
41217365Sjkim#
42217365Sjkim#
4367754Smsmith# LIBDIR	Base path for libraries. [/usr/lib]
4467754Smsmith#
4567754Smsmith# LIBCOMPATDIR	Base path for compat libraries. [/usr/lib/compat]
46193341Sjkim#
47193341Sjkim# LIBDATADIR	Base path for misc. utility data files. [/usr/libdata]
48193341Sjkim#
49193341Sjkim# LINTLIBDIR	Base path for lint libraries. [/usr/libdata/lint]
5067754Smsmith#
5167754Smsmith# SHLIBDIR	Base path for shared libraries. [${LIBDIR}]
5277424Smsmith#
5391116Smsmith# LIBOWN	Library mode. [${BINOWN}]
5467754Smsmith#
5567754Smsmith# LIBGRP	Library group. [${BINGRP}]
5667754Smsmith#
5767754Smsmith# LIBMODE	Library mode. [${NOBINMODE}]
5891116Smsmith#
5967754Smsmith#
6091116Smsmith# KMODDIR	Base path for loadable kernel modules
6191116Smsmith#		(see lkm(4)). [/lkm]
6291116Smsmith#
6367754Smsmith# KMODOWN	LKM owner. [${BINOWN}]
64193267Sjkim#
65193267Sjkim# KMODGRP	LKM group. [${BINGRP}]
6691116Smsmith#
6767754Smsmith# KMODMODE	LKM mode. [${BINMODE}]
6891116Smsmith#
6967754Smsmith#
7067754Smsmith# SHAREDIR	Base path for architecture-independent ascii
7167754Smsmith#		text files. [/usr/share]
72193267Sjkim#
7391116Smsmith# SHAREOWN	ASCII text file owner. [bin]
7491116Smsmith#
7591116Smsmith# SHAREGRP	ASCII text file group. [bin]
76114237Snjl#
7767754Smsmith# SHAREMODE	ASCII text file mode. [${NOBINMODE}]
7899679Siwasaki#
7967754Smsmith#
8067754Smsmith# DOCDIR	Base path for system documentation (e.g. PSD, USD,
8167754Smsmith#		handbook, FAQ etc.). [${SHAREDIR}/doc]
82167802Sjkim#
8367754Smsmith# DOCOWN	Documentation owner. [${SHAREOWN}]
8467754Smsmith#
8591116Smsmith# DOCGRP	Documentation group. [${SHAREGRP}]
8691116Smsmith#
8791116Smsmith# DOCMODE	Documentation mode. [${NOBINMODE}]
8891116Smsmith#
8967754Smsmith#
9091116Smsmith# INFODIR	Base path for GNU's hypertext system
9191116Smsmith#		called Info (see info(1)). [${SHAREDIR}/info]
92193267Sjkim#
9367754Smsmith# INFOOWN	Info owner. [${SHAREOWN}]
9467754Smsmith#
9591116Smsmith# INFOGRP	Info group. [${SHAREGRP}]
9667754Smsmith#
9791116Smsmith# INFOMODE	Info mode. [${NOBINMODE}]
9891116Smsmith#
9967754Smsmith#
10091116Smsmith# MANDIR	Base path for manual installation. [${SHAREDIR}/man/man]
10191116Smsmith#
10291116Smsmith# MANOWN	Manual owner. [${SHAREOWN}]
10367754Smsmith#
10491116Smsmith# MANGRP	Manual group. [${SHAREGRP}]
10591116Smsmith#
106117521Snjl# MANMODE	Manual mode. [${NOBINMODE}]
107209746Sjkim#
10891116Smsmith#
10991116Smsmith# NLSDIR	Base path for National Language Support files
11091116Smsmith#		installation (see mklocale(1)). [${SHAREDIR}/nls]
11191116Smsmith#
112114237Snjl# NLSGRP	National Language Support files group. [${SHAREOWN}]
11367754Smsmith#
11467754Smsmith# NLSOWN	National Language Support files owner. [${SHAREGRP}]
11591116Smsmith#
11667754Smsmith# NLSMODE	National Language Support files mode. [${NONBINMODE}]
11791116Smsmith#
11867754Smsmith# INCLUDEDIR	Base path for standard C include files [/usr/include]
11991116Smsmith
12067754Smsmith# This is only here for bootstrapping and is not officially exported
121167802Sjkim# from here.  It has normally already been defined in sys.mk.
122204773SjkimMACHINE_ARCH?=	i386
12399679Siwasaki
124193267Sjkim#
125193267Sjkim# The build tools are indirected by /usr/bin/objformat which determines the
12667754Smsmith# object format from the OBJFORMAT environment variable and if this is not
12767754Smsmith# defined, it reads /etc/objectformat.
128193267Sjkim#
12991116Smsmith.if exists(/etc/objectformat) && !defined(OBJFORMAT)
13067754Smsmith.include "/etc/objectformat"
13167754Smsmith.endif
13291116Smsmith
13391116Smsmith# Default executable format
13491116Smsmith.if ${MACHINE_ARCH} == "alpha"
13591116SmsmithOBJFORMAT?=	elf
136151937Sjkim.else
13791116SmsmithOBJFORMAT?=	aout
13891116Smsmith.endif
13991116Smsmith
14091116Smsmith# Binaries
14191116SmsmithBINOWN?=	bin
142193267SjkimBINGRP?=	bin
143193267SjkimBINMODE?=	555
14491116SmsmithNOBINMODE?=	444
14591116Smsmith
14667754Smsmith.if ${OBJFORMAT} == aout
147114237SnjlLIBDIR?=	/usr/lib/aout
14891116Smsmith.else
14991116SmsmithLIBDIR?=	/usr/lib
15091116Smsmith.endif
151193267SjkimLIBCOMPATDIR?=	/usr/lib/compat
152114237SnjlLIBDATADIR?=	/usr/libdata
15391116SmsmithLINTLIBDIR?=	/usr/libdata/lint
15467754SmsmithSHLIBDIR?=	${LIBDIR}
15567754SmsmithLIBOWN?=	${BINOWN}
156167802SjkimLIBGRP?=	${BINGRP}
15767754SmsmithLIBMODE?=	${NOBINMODE}
15891116Smsmith
15991116SmsmithKMODDIR?=	/lkm
16091116SmsmithKMODOWN?=	${BINOWN}
16191116SmsmithKMODGRP?=	${BINGRP}
162193267SjkimKMODMODE?=	${BINMODE}
163193267Sjkim
164193267Sjkim
165193267Sjkim# Share files
16691116SmsmithSHAREDIR?=	/usr/share
16791116SmsmithSHAREOWN?=	bin
16891116SmsmithSHAREGRP?=	bin
169167802SjkimSHAREMODE?=	${NOBINMODE}
17091116Smsmith
17167754SmsmithMANDIR?=	${SHAREDIR}/man/man
172193267SjkimMANOWN?=	${SHAREOWN}
17391116SmsmithMANGRP?=	${SHAREGRP}
17467754SmsmithMANMODE?=	${NOBINMODE}
17567754Smsmith
17691116SmsmithDOCDIR?=	${SHAREDIR}/doc
17791116SmsmithDOCOWN?=	${SHAREOWN}
178193267SjkimDOCGRP?=	${SHAREGRP}
179193267SjkimDOCMODE?=	${NOBINMODE}
180193267Sjkim
181193267SjkimINFODIR?=	${SHAREDIR}/info
182193267SjkimINFOOWN?=	${SHAREOWN}
183193267SjkimINFOGRP?=	${SHAREGRP}
184193267SjkimINFOMODE?=	${NOBINMODE}
18567754Smsmith
18667754SmsmithNLSDIR?=	${SHAREDIR}/nls
18767754SmsmithNLSGRP?=	${SHAREOWN}
18867754SmsmithNLSOWN?=	${SHAREGRP}
18967754SmsmithNLSMODE?=	${NONBINMODE}
19067754Smsmith
19173561SmsmithINCLUDEDIR?=	/usr/include
19273561Smsmith
19373561Smsmith# Common variables
19473561Smsmith.if !defined(DEBUG_FLAGS)
19573561SmsmithSTRIP?=		-s
19673561Smsmith.endif
19773561Smsmith
19873561SmsmithCOPY?=		-c
19973561SmsmithCOMPRESS_CMD?=	gzip -cn
20073561SmsmithCOMPRESS_EXT?=	.gz
20191116Smsmith