xref: /titanic_53/usr/src/tools/Makefile.tools (revision 93af10a45ed32fdf5e0c69baf45e7a7fcebb2cb6)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
53420b242Ssommerfe# Common Development and Distribution License (the "License").
63420b242Ssommerfe# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22cdf0c1d5Smjnelson# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# Definitions common to tool source.
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.master
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateFILEMODE=	0555
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateTOOLS=			$(SRC)/tools
327c478bd9Sstevel@tonic-gateTOOLS_PROTO=		$(TOOLS)/proto
337c478bd9Sstevel@tonic-gateROOTONBLD=		$(TOOLS_PROTO)/opt/onbld
347c478bd9Sstevel@tonic-gateROOTONBLDBIN=		$(ROOTONBLD)/bin
357c478bd9Sstevel@tonic-gateROOTONBLDBINMACH=	$(ROOTONBLD)/bin/$(MACH)
36*93af10a4SMark J. NelsonROOTONBLDETC=		$(ROOTONBLD)/etc
377c478bd9Sstevel@tonic-gateROOTONBLDLIB=		$(ROOTONBLD)/lib
387c478bd9Sstevel@tonic-gateROOTONBLDLIBMACH=	$(ROOTONBLD)/lib/$(MACH)
39cdf0c1d5SmjnelsonROOTONBLDLIBPY=		$(ROOTONBLD)/lib/python
407c478bd9Sstevel@tonic-gateROOTONBLDENV=		$(ROOTONBLD)/env
417c478bd9Sstevel@tonic-gateROOTONBLDGK=		$(ROOTONBLD)/gk
427c478bd9Sstevel@tonic-gateROOTONBLDMAN=		$(ROOTONBLD)/man
437c478bd9Sstevel@tonic-gateROOTONBLDMAN1=		$(ROOTONBLD)/man/man1
447c478bd9Sstevel@tonic-gateROOTONBLDETCABI=	$(ROOTONBLD)/etc/abi
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gateCPPFLAGS=		-D_TS_ERRNO
477c478bd9Sstevel@tonic-gateELFSIGN_O=		$(TRUE)
487c478bd9Sstevel@tonic-gateLDLIBS=
4924da5b34SrieLDFLAGS=		$(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \
5024da5b34Srie			    $(MAPFILE.PGA:%=-M%)
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gateROOTONBLDPROG=		$(PROG:%=$(ROOTONBLDBIN)/%)
537c478bd9Sstevel@tonic-gateROOTONBLDMACHPROG=	$(PROG:%=$(ROOTONBLDBINMACH)/%)
547c478bd9Sstevel@tonic-gateROOTONBLDSHFILES=	$(SHFILES:%=$(ROOTONBLDBIN)/%)
557c478bd9Sstevel@tonic-gateROOTONBLDMAKEFILES=	$(MAKEFILES:%=$(ROOTONBLDBIN)/%)
567c478bd9Sstevel@tonic-gateROOTONBLDMACHSHFILES=	$(SHFILES:%=$(ROOTONBLDBINMACH)/%)
577c478bd9Sstevel@tonic-gateROOTONBLDMACHBINARIES=	$(BINARIES:%=$(ROOTONBLDBINMACH)/%)
58*93af10a4SMark J. NelsonROOTONBLDETCFILES=	$(ETCFILES:%=$(ROOTONBLDETC)/%)
597c478bd9Sstevel@tonic-gateROOTONBLDENVFILES=	$(ENVFILES:%=$(ROOTONBLDENV)/%)
607c478bd9Sstevel@tonic-gateROOTONBLDGKFILES=	$(GKFILES:%=$(ROOTONBLDGK)/.%)
617c478bd9Sstevel@tonic-gateROOTONBLDPERLFILES=	$(PERLFILES:%=$(ROOTONBLDBIN)/%)
6296ccc8cbSesaxeROOTONBLDPYFILES=	$(PYFILES:%=$(ROOTONBLDBIN)/%)
637c478bd9Sstevel@tonic-gateROOTONBLDMAN1FILES=	$(MAN1FILES:%=$(ROOTONBLDMAN1)/%)
647c478bd9Sstevel@tonic-gateROOTONBLDABIAUDITFILES=	$(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%)
657c478bd9Sstevel@tonic-gate
663420b242Ssommerfe# Break a chicken-and-egg dependency cycle for the tools build
673420b242SsommerfeSCCSCHECK=@echo would sccscheck
683420b242Ssommerfe
697c478bd9Sstevel@tonic-gate$(ROOTONBLDETCABI)/%: %
707c478bd9Sstevel@tonic-gate	$(INS.file)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gate$(ROOTONBLDBIN)/%: %
737c478bd9Sstevel@tonic-gate	$(INS.file)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate$(ROOTONBLDBINMACH)/%: %
767c478bd9Sstevel@tonic-gate	$(INS.file)
777c478bd9Sstevel@tonic-gate
78*93af10a4SMark J. Nelson$(ROOTONBLDETC)/%: %
79*93af10a4SMark J. Nelson	$(INS.file)
80*93af10a4SMark J. Nelson
817c478bd9Sstevel@tonic-gate$(ROOTONBLDMAN1)/%: %
827c478bd9Sstevel@tonic-gate	$(INS.file)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gate$(ROOTONBLDENV)/%: %
857c478bd9Sstevel@tonic-gate	$(INS.file)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate$(ROOTONBLDGK)/.%: %
887c478bd9Sstevel@tonic-gate	$(INS.rename)
89