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# 2287ab3622SRichard Lowe# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 23*9e4fd900SJohn Levon# Copyright 2020 Joyent, Inc. 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 32ead1f93eSLiane PrazaTOOLS_PROTO= $(TOOLS)/proto/root_$(MACH)-nd 332e02daeeSRainer OrthROOTOPT= $(TOOLS_PROTO)/opt 342e02daeeSRainer OrthROOTONBLD= $(ROOTOPT)/onbld 357c478bd9Sstevel@tonic-gateROOTONBLDBIN= $(ROOTONBLD)/bin 367c478bd9Sstevel@tonic-gateROOTONBLDBINMACH= $(ROOTONBLD)/bin/$(MACH) 3793af10a4SMark J. NelsonROOTONBLDETC= $(ROOTONBLD)/etc 387c478bd9Sstevel@tonic-gateROOTONBLDLIB= $(ROOTONBLD)/lib 397c478bd9Sstevel@tonic-gateROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH) 4010d63b7dSRichard LoweROOTONBLDLIBMACH64= $(ROOTONBLD)/lib/$(MACH)/64 4175ce41a5SAli BahramiROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl 42cdf0c1d5SmjnelsonROOTONBLDLIBPY= $(ROOTONBLD)/lib/python 437c478bd9Sstevel@tonic-gateROOTONBLDENV= $(ROOTONBLD)/env 447c478bd9Sstevel@tonic-gateROOTONBLDGK= $(ROOTONBLD)/gk 457c478bd9Sstevel@tonic-gateROOTONBLDMAN= $(ROOTONBLD)/man 466cad8c54SRyan ZezeskiROOTONBLDMAN1ONBLD= $(ROOTONBLD)/man/man1onbld 477c478bd9Sstevel@tonic-gateROOTONBLDETCABI= $(ROOTONBLD)/etc/abi 4875ce41a5SAli BahramiROOTONBLDETCEXCEPT= $(ROOTONBLD)/etc/exception_lists 4910d63b7dSRichard LoweROOTONBLDSHARE= $(ROOTONBLD)/share 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateCPPFLAGS= -D_TS_ERRNO 527c478bd9Sstevel@tonic-gateELFSIGN_O= $(TRUE) 537c478bd9Sstevel@tonic-gateLDLIBS= 5424da5b34SrieLDFLAGS= $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \ 5524da5b34Srie $(MAPFILE.PGA:%=-M%) 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gateROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%) 58*9e4fd900SJohn LevonROOTONBLDSCRIPTS= $(SCRIPTS:%=$(ROOTONBLDBIN)/%) 597c478bd9Sstevel@tonic-gateROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%) 607c478bd9Sstevel@tonic-gateROOTONBLDSHFILES= $(SHFILES:%=$(ROOTONBLDBIN)/%) 617c478bd9Sstevel@tonic-gateROOTONBLDMAKEFILES= $(MAKEFILES:%=$(ROOTONBLDBIN)/%) 627c478bd9Sstevel@tonic-gateROOTONBLDMACHSHFILES= $(SHFILES:%=$(ROOTONBLDBINMACH)/%) 637c478bd9Sstevel@tonic-gateROOTONBLDMACHBINARIES= $(BINARIES:%=$(ROOTONBLDBINMACH)/%) 6493af10a4SMark J. NelsonROOTONBLDETCFILES= $(ETCFILES:%=$(ROOTONBLDETC)/%) 657c478bd9Sstevel@tonic-gateROOTONBLDENVFILES= $(ENVFILES:%=$(ROOTONBLDENV)/%) 667c478bd9Sstevel@tonic-gateROOTONBLDGKFILES= $(GKFILES:%=$(ROOTONBLDGK)/.%) 6748bc00d6SjmcpROOTONBLDGKSHFILES= $(SHFILES:%=$(ROOTONBLDGK)/%) 687c478bd9Sstevel@tonic-gateROOTONBLDPERLFILES= $(PERLFILES:%=$(ROOTONBLDBIN)/%) 6975ce41a5SAli BahramiROOTONBLDPERLMODULES= $(PERLMODULES:%=$(ROOTONBLDLIBPERL)/%) 7096ccc8cbSesaxeROOTONBLDPYFILES= $(PYFILES:%=$(ROOTONBLDBIN)/%) 716cad8c54SRyan ZezeskiROOTONBLDMAN1ONBLDFILES=$(MAN1ONBLDFILES:%=$(ROOTONBLDMAN1ONBLD)/%) 727c478bd9Sstevel@tonic-gateROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%) 7375ce41a5SAli BahramiROOTONBLDEXCEPTFILES= $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%) 747c478bd9Sstevel@tonic-gate 753420b242Ssommerfe# Break a chicken-and-egg dependency cycle for the tools build 763420b242SsommerfeSCCSCHECK=@echo would sccscheck 773420b242Ssommerfe 787c478bd9Sstevel@tonic-gate$(ROOTONBLDETCABI)/%: % 797c478bd9Sstevel@tonic-gate $(INS.file) 807c478bd9Sstevel@tonic-gate 8175ce41a5SAli Bahrami$(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/% 8275ce41a5SAli Bahrami $(INS.file) 8375ce41a5SAli Bahrami 847c478bd9Sstevel@tonic-gate$(ROOTONBLDBIN)/%: % 857c478bd9Sstevel@tonic-gate $(INS.file) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate$(ROOTONBLDBINMACH)/%: % 887c478bd9Sstevel@tonic-gate $(INS.file) 897c478bd9Sstevel@tonic-gate 9093af10a4SMark J. Nelson$(ROOTONBLDETC)/%: % 9193af10a4SMark J. Nelson $(INS.file) 9293af10a4SMark J. Nelson 9375ce41a5SAli Bahrami$(ROOTONBLDLIBPERL)/%: % 9475ce41a5SAli Bahrami $(INS.file) 9575ce41a5SAli Bahrami 966cad8c54SRyan Zezeski$(ROOTONBLDMAN1ONBLD)/%: % 977c478bd9Sstevel@tonic-gate $(INS.file) 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gate$(ROOTONBLDENV)/%: % 1007c478bd9Sstevel@tonic-gate $(INS.file) 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gate$(ROOTONBLDGK)/.%: % 1037c478bd9Sstevel@tonic-gate $(INS.rename) 10448bc00d6Sjmcp 10548bc00d6Sjmcp$(ROOTONBLDGK)/%: % 10648bc00d6Sjmcp $(INS.file) 107