xref: /titanic_51/usr/src/tools/Makefile.tools (revision 35551380472894a564e057962b701af78f719377)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# Definitions common to tool source.
29#
30include $(SRC)/Makefile.master
31
32FILEMODE=	0555
33
34TOOLS=			$(SRC)/tools
35TOOLS_PROTO=		$(TOOLS)/proto
36ROOTONBLD=		$(TOOLS_PROTO)/opt/onbld
37ROOTONBLDBIN=		$(ROOTONBLD)/bin
38ROOTONBLDBINMACH=	$(ROOTONBLD)/bin/$(MACH)
39ROOTONBLDLIB=		$(ROOTONBLD)/lib
40ROOTONBLDLIBMACH=	$(ROOTONBLD)/lib/$(MACH)
41ROOTONBLDENV=		$(ROOTONBLD)/env
42ROOTONBLDGK=		$(ROOTONBLD)/gk
43ROOTONBLDMAN=		$(ROOTONBLD)/man
44ROOTONBLDMAN1=		$(ROOTONBLD)/man/man1
45ROOTONBLDETCABI=	$(ROOTONBLD)/etc/abi
46
47NX_MAP_i386=		$(SRC)/cmd/mapfile_noexdata
48NX_MAP_sparc=
49NX_MAP=			$(NX_MAP_$(MACH))
50NES_MAPFILE=		$(SRC)/cmd/mapfile_noexstk $(NX_MAP)
51
52CPPFLAGS=		-D_TS_ERRNO
53ELFSIGN_O=		$(TRUE)
54LDLIBS=
55LDFLAGS=		$(NES_MAPFILE:%=-M%)
56
57ROOTONBLDPROG=		$(PROG:%=$(ROOTONBLDBIN)/%)
58ROOTONBLDMACHPROG=	$(PROG:%=$(ROOTONBLDBINMACH)/%)
59ROOTONBLDSHFILES=	$(SHFILES:%=$(ROOTONBLDBIN)/%)
60ROOTONBLDMAKEFILES=	$(MAKEFILES:%=$(ROOTONBLDBIN)/%)
61ROOTONBLDMACHSHFILES=	$(SHFILES:%=$(ROOTONBLDBINMACH)/%)
62ROOTONBLDMACHBINARIES=	$(BINARIES:%=$(ROOTONBLDBINMACH)/%)
63ROOTONBLDENVFILES=	$(ENVFILES:%=$(ROOTONBLDENV)/%)
64ROOTONBLDGKFILES=	$(GKFILES:%=$(ROOTONBLDGK)/.%)
65ROOTONBLDPERLFILES=	$(PERLFILES:%=$(ROOTONBLDBIN)/%)
66ROOTONBLDMAN1FILES=	$(MAN1FILES:%=$(ROOTONBLDMAN1)/%)
67ROOTONBLDABIAUDITFILES=	$(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%)
68
69$(ROOTONBLDETCABI)/%: %
70	$(INS.file)
71
72$(ROOTONBLDBIN)/%: %
73	$(INS.file)
74
75$(ROOTONBLDBINMACH)/%: %
76	$(INS.file)
77
78$(ROOTONBLDMAN1)/%: %
79	$(INS.file)
80
81$(ROOTONBLDENV)/%: %
82	$(INS.file)
83
84$(ROOTONBLDGK)/.%: %
85	$(INS.rename)
86