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# 212e02daeeSRainer Orth 227c478bd9Sstevel@tonic-gate# 232e02daeeSRainer Orth# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 262e02daeeSRainer Orth 272e02daeeSRainer Orth# 287c478bd9Sstevel@tonic-gate# Definitions common to tool source. 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.master 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateFILEMODE= 0555 337c478bd9Sstevel@tonic-gate 34b4218d7fSMark J. NelsonCLOBBERFILES += $(PYOBJS) 35b4218d7fSMark J. Nelson 367c478bd9Sstevel@tonic-gateTOOLS= $(SRC)/tools 377c478bd9Sstevel@tonic-gateTOOLS_PROTO= $(TOOLS)/proto 382e02daeeSRainer OrthROOTOPT= $(TOOLS_PROTO)/opt 392e02daeeSRainer OrthROOTONBLD= $(ROOTOPT)/onbld 407c478bd9Sstevel@tonic-gateROOTONBLDBIN= $(ROOTONBLD)/bin 417c478bd9Sstevel@tonic-gateROOTONBLDBINMACH= $(ROOTONBLD)/bin/$(MACH) 4293af10a4SMark J. NelsonROOTONBLDETC= $(ROOTONBLD)/etc 437c478bd9Sstevel@tonic-gateROOTONBLDLIB= $(ROOTONBLD)/lib 447c478bd9Sstevel@tonic-gateROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH) 4575ce41a5SAli BahramiROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl 46cdf0c1d5SmjnelsonROOTONBLDLIBPY= $(ROOTONBLD)/lib/python 477c478bd9Sstevel@tonic-gateROOTONBLDENV= $(ROOTONBLD)/env 487c478bd9Sstevel@tonic-gateROOTONBLDGK= $(ROOTONBLD)/gk 497c478bd9Sstevel@tonic-gateROOTONBLDMAN= $(ROOTONBLD)/man 507c478bd9Sstevel@tonic-gateROOTONBLDMAN1= $(ROOTONBLD)/man/man1 517c478bd9Sstevel@tonic-gateROOTONBLDETCABI= $(ROOTONBLD)/etc/abi 5275ce41a5SAli BahramiROOTONBLDETCEXCEPT= $(ROOTONBLD)/etc/exception_lists 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gateCPPFLAGS= -D_TS_ERRNO 557c478bd9Sstevel@tonic-gateELFSIGN_O= $(TRUE) 567c478bd9Sstevel@tonic-gateLDLIBS= 5724da5b34SrieLDFLAGS= $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \ 5824da5b34Srie $(MAPFILE.PGA:%=-M%) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%) 617c478bd9Sstevel@tonic-gateROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%) 627c478bd9Sstevel@tonic-gateROOTONBLDSHFILES= $(SHFILES:%=$(ROOTONBLDBIN)/%) 637c478bd9Sstevel@tonic-gateROOTONBLDMAKEFILES= $(MAKEFILES:%=$(ROOTONBLDBIN)/%) 647c478bd9Sstevel@tonic-gateROOTONBLDMACHSHFILES= $(SHFILES:%=$(ROOTONBLDBINMACH)/%) 657c478bd9Sstevel@tonic-gateROOTONBLDMACHBINARIES= $(BINARIES:%=$(ROOTONBLDBINMACH)/%) 6693af10a4SMark J. NelsonROOTONBLDETCFILES= $(ETCFILES:%=$(ROOTONBLDETC)/%) 677c478bd9Sstevel@tonic-gateROOTONBLDENVFILES= $(ENVFILES:%=$(ROOTONBLDENV)/%) 687c478bd9Sstevel@tonic-gateROOTONBLDGKFILES= $(GKFILES:%=$(ROOTONBLDGK)/.%) 69*48bc00d6SjmcpROOTONBLDGKSHFILES= $(SHFILES:%=$(ROOTONBLDGK)/%) 707c478bd9Sstevel@tonic-gateROOTONBLDPERLFILES= $(PERLFILES:%=$(ROOTONBLDBIN)/%) 7175ce41a5SAli BahramiROOTONBLDPERLMODULES= $(PERLMODULES:%=$(ROOTONBLDLIBPERL)/%) 7296ccc8cbSesaxeROOTONBLDPYFILES= $(PYFILES:%=$(ROOTONBLDBIN)/%) 737c478bd9Sstevel@tonic-gateROOTONBLDMAN1FILES= $(MAN1FILES:%=$(ROOTONBLDMAN1)/%) 747c478bd9Sstevel@tonic-gateROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%) 7575ce41a5SAli BahramiROOTONBLDEXCEPTFILES= $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%) 767c478bd9Sstevel@tonic-gate 773420b242Ssommerfe# Break a chicken-and-egg dependency cycle for the tools build 783420b242SsommerfeSCCSCHECK=@echo would sccscheck 793420b242Ssommerfe 807c478bd9Sstevel@tonic-gate$(ROOTONBLDETCABI)/%: % 817c478bd9Sstevel@tonic-gate $(INS.file) 827c478bd9Sstevel@tonic-gate 8375ce41a5SAli Bahrami$(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/% 8475ce41a5SAli Bahrami $(INS.file) 8575ce41a5SAli Bahrami 867c478bd9Sstevel@tonic-gate$(ROOTONBLDBIN)/%: % 877c478bd9Sstevel@tonic-gate $(INS.file) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gate$(ROOTONBLDBINMACH)/%: % 907c478bd9Sstevel@tonic-gate $(INS.file) 917c478bd9Sstevel@tonic-gate 9293af10a4SMark J. Nelson$(ROOTONBLDETC)/%: % 9393af10a4SMark J. Nelson $(INS.file) 9493af10a4SMark J. Nelson 9575ce41a5SAli Bahrami$(ROOTONBLDLIBPERL)/%: % 9675ce41a5SAli Bahrami $(INS.file) 9775ce41a5SAli Bahrami 987c478bd9Sstevel@tonic-gate$(ROOTONBLDMAN1)/%: % 997c478bd9Sstevel@tonic-gate $(INS.file) 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gate$(ROOTONBLDENV)/%: % 1027c478bd9Sstevel@tonic-gate $(INS.file) 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gate$(ROOTONBLDGK)/.%: % 1057c478bd9Sstevel@tonic-gate $(INS.rename) 106*48bc00d6Sjmcp 107*48bc00d6Sjmcp$(ROOTONBLDGK)/%: % 108*48bc00d6Sjmcp $(INS.file) 109