Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – tendra.SVN – Blame – /branches/algol60/mk/tendra.base.mk – Rev 7

Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 7u83 1
# TenDRA make build infrastructure
2
#
3
# $Id$
4
 
5
# STANDARD DIRECTORIES
6
#
7
# These directories are used to configure where the release is to be
8
# installed:
9
#
10
#       BASE_DIR        gives the directory in which the source has been
11
#                       installed (i.e. the directory containing this script).
12
#
13
#	PREFIX		gives the base directory prefix in which binaries and
14
#			helper files will be installed.
15
#
16
#       PUBLIC_BIN      gives the directory in which the public executables
17
#                       (tcc, tchk and tspec) are to be installed.  If
18
#                       PUBLIC_BIN is left blank then the public executables
19
#                       will be installed in the private executables
20
#                       directory.
21
#
22
#       INSTALL_DIR     gives the directory in which the configuration files,
23
#                       include files, private executables, libraries etc.
24
#                       are to be installed.
25
#
26
#       COMMON_DIR      gives the sub-directory of INSTALL_DIR in which the
27
#                       target independent components are to be installed.
28
#
29
#       MACH_DIR        gives the sub-directory of INSTALL_DIR in which the
30
#                       target dependent components are to be installed.
31
#
32
#       MAN_DIR         gives the directory in which the manual pages are
33
#                       to be installed.
34
#
35
#       OBJ_DIR         gives the working directory in which binary object
36
#                       files etc. created during the build process will
37
#                       be stored.
38
#
39
#	OBJ_SDIR	gives the full path to the working directory and the
40
#			sub-directory of the current source directory.
41
#
42
#       TMP_DIR         gives a temporary directory, used both by this
43
#                       script and by tcc (so make sure that there is
44
#                       plenty of free space).
45
 
46
.if !defined(_TENDRA_BASE_MK_)
47
_TENDRA_BASE_MK_=1
48
 
49
.MAKEOVERRIDES:	BASE_DIR
50
BASE_DIR?=	${.CURDIR:C/\/(mk|src).*//}
51
APIS=		src/lib/apis
52
ENVIRONMENT=	src/lib/env
53
INCLUDE=	src/include
54
STARTUP=	src/lib/startup
55
STARTUP_MACH=	src/lib/machines/${OSFAM}/${BLDARCH}/startup
56
TOKENS_COMMON=	src/lib/machines/common/tokens
57
TOKENS_MACH=	src/lib/machines/${OSFAM}/${BLDARCH}/tokens
58
TOOLS=		src/tools
59
UTILITIES=	src/utilities
60
 
61
PUBLIC_BIN=	${PREFIX}/bin
62
INSTALL_DIR=	${PREFIX}/lib/TenDRA
63
COMMON_DIR=	${INSTALL_DIR}/lib
64
MACH_DIR=	${INSTALL_DIR}/machines
65
MACH_BASE=	${MACH_DIR}/${OSFAM}/${BLDARCH}
66
#MACH_BASE=	${MACH_DIR}/${OSFAM}/${MACH_VERS}/${BLDARCH}
67
MAN_DIR=	${PREFIX}/man
68
.if defined(BOOTSTRAP)
69
OBJ_DIR=	${BASE_DIR}/bootstrap
70
OBJ_SDIR=	${OBJ_DIR}${.CURDIR:C/${BASE_DIR}//}
71
.else
72
OBJ_DIR=	${BASE_DIR}/obj
73
OBJ_SDIR=	${OBJ_DIR}${.CURDIR:C/${BASE_DIR}//}
74
.endif
75
BOBJ_DIR=	${BASE_DIR}/bootstrap
76
BOBJ_SDIR=	${BOBJ_DIR}${.CURDIR:C/${BASE_DIR}//}
77
TMP_DIR=	/var/tmp
78
 
79
# If this file exists then the object tree is complete
80
OBJ_DIR_INDICATOR=${OBJ_DIR}/_obj_tree_complete
81
 
82
OBJS=  ${SRCS:S/.c/.o/}
83
 
84
# Binary paths
85
 
86
SHELL=		/bin/sh
87
 
88
ENV?=		/usr/bin/env
89
 
90
# Keep in alphabetical order
91
AR?=		${ENV} ar
92
COPY?=		${ENV} cp
93
ECHO?=		${ENV} echo
94
ECHODIR?=	${ENV} echo
95
EXIT?=		exit
96
INSTALL?=	${ENV} install
97
LN?=		${ENV} ln
98
MKDIR?=		${ENV} mkdir
99
MOVE?=		${ENV} mv
100
RANLIB?=	${ENV} ranlib
101
REMOVE?=	${ENV} rm -f
102
SORT?=		${ENV} sort
103
TEST?=		${ENV} test
104
 
105
.endif	# !defined(_TENDRA_BASE_MK_)