10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 51905Ssommerfe# Common Development and Distribution License (the "License"). 61905Ssommerfe# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*12216Srichlowe@richlowe.net# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 230Sstevel@tonic-gate# 240Sstevel@tonic-gate# Definitions common to tool source. 250Sstevel@tonic-gate# 260Sstevel@tonic-gateinclude $(SRC)/Makefile.master 270Sstevel@tonic-gate 280Sstevel@tonic-gateFILEMODE= 0555 290Sstevel@tonic-gate 300Sstevel@tonic-gateTOOLS= $(SRC)/tools 3111838SLiane.Praza@Sun.COMTOOLS_PROTO= $(TOOLS)/proto/root_$(MACH)-nd 328785Sro@techfak.uni-bielefeld.deROOTOPT= $(TOOLS_PROTO)/opt 338785Sro@techfak.uni-bielefeld.deROOTONBLD= $(ROOTOPT)/onbld 340Sstevel@tonic-gateROOTONBLDBIN= $(ROOTONBLD)/bin 350Sstevel@tonic-gateROOTONBLDBINMACH= $(ROOTONBLD)/bin/$(MACH) 367769SMark.J.Nelson@Sun.COMROOTONBLDETC= $(ROOTONBLD)/etc 370Sstevel@tonic-gateROOTONBLDLIB= $(ROOTONBLD)/lib 380Sstevel@tonic-gateROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH) 3910355SAli.Bahrami@Sun.COMROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl 407078SmjnelsonROOTONBLDLIBPY= $(ROOTONBLD)/lib/python 41*12216Srichlowe@richlowe.netROOTONBLDLIBPY_24= $(ROOTONBLD)/lib/python2.4 42*12216Srichlowe@richlowe.netROOTONBLDLIBPY_26= $(ROOTONBLD)/lib/python2.6 430Sstevel@tonic-gateROOTONBLDENV= $(ROOTONBLD)/env 440Sstevel@tonic-gateROOTONBLDGK= $(ROOTONBLD)/gk 450Sstevel@tonic-gateROOTONBLDMAN= $(ROOTONBLD)/man 460Sstevel@tonic-gateROOTONBLDMAN1= $(ROOTONBLD)/man/man1 4711207SPeter.Dennis@Sun.COMROOTONBLDSMAN1= $(ROOTONBLD)/man/sman1 480Sstevel@tonic-gateROOTONBLDETCABI= $(ROOTONBLD)/etc/abi 4910355SAli.Bahrami@Sun.COMROOTONBLDETCEXCEPT= $(ROOTONBLD)/etc/exception_lists 500Sstevel@tonic-gate 510Sstevel@tonic-gateCPPFLAGS= -D_TS_ERRNO 520Sstevel@tonic-gateELFSIGN_O= $(TRUE) 530Sstevel@tonic-gateLDLIBS= 544271SrieLDFLAGS= $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \ 554271Srie $(MAPFILE.PGA:%=-M%) 560Sstevel@tonic-gate 570Sstevel@tonic-gateROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%) 580Sstevel@tonic-gateROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%) 590Sstevel@tonic-gateROOTONBLDSHFILES= $(SHFILES:%=$(ROOTONBLDBIN)/%) 600Sstevel@tonic-gateROOTONBLDMAKEFILES= $(MAKEFILES:%=$(ROOTONBLDBIN)/%) 610Sstevel@tonic-gateROOTONBLDMACHSHFILES= $(SHFILES:%=$(ROOTONBLDBINMACH)/%) 620Sstevel@tonic-gateROOTONBLDMACHBINARIES= $(BINARIES:%=$(ROOTONBLDBINMACH)/%) 637769SMark.J.Nelson@Sun.COMROOTONBLDETCFILES= $(ETCFILES:%=$(ROOTONBLDETC)/%) 640Sstevel@tonic-gateROOTONBLDENVFILES= $(ENVFILES:%=$(ROOTONBLDENV)/%) 650Sstevel@tonic-gateROOTONBLDGKFILES= $(GKFILES:%=$(ROOTONBLDGK)/.%) 6610738SJames.McPherson@Sun.COMROOTONBLDGKSHFILES= $(SHFILES:%=$(ROOTONBLDGK)/%) 670Sstevel@tonic-gateROOTONBLDPERLFILES= $(PERLFILES:%=$(ROOTONBLDBIN)/%) 6810355SAli.Bahrami@Sun.COMROOTONBLDPERLMODULES= $(PERLMODULES:%=$(ROOTONBLDLIBPERL)/%) 692538SesaxeROOTONBLDPYFILES= $(PYFILES:%=$(ROOTONBLDBIN)/%) 700Sstevel@tonic-gateROOTONBLDMAN1FILES= $(MAN1FILES:%=$(ROOTONBLDMAN1)/%) 7111207SPeter.Dennis@Sun.COMROOTONBLDSMAN1FILES= $(SMAN1FILES:%=$(ROOTONBLDSMAN1)/%) 720Sstevel@tonic-gateROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%) 7310355SAli.Bahrami@Sun.COMROOTONBLDEXCEPTFILES= $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%) 740Sstevel@tonic-gate 751905Ssommerfe# Break a chicken-and-egg dependency cycle for the tools build 761905SsommerfeSCCSCHECK=@echo would sccscheck 771905Ssommerfe 780Sstevel@tonic-gate$(ROOTONBLDETCABI)/%: % 790Sstevel@tonic-gate $(INS.file) 800Sstevel@tonic-gate 8110355SAli.Bahrami@Sun.COM$(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/% 8210355SAli.Bahrami@Sun.COM $(INS.file) 8310355SAli.Bahrami@Sun.COM 840Sstevel@tonic-gate$(ROOTONBLDBIN)/%: % 850Sstevel@tonic-gate $(INS.file) 860Sstevel@tonic-gate 870Sstevel@tonic-gate$(ROOTONBLDBINMACH)/%: % 880Sstevel@tonic-gate $(INS.file) 890Sstevel@tonic-gate 907769SMark.J.Nelson@Sun.COM$(ROOTONBLDETC)/%: % 917769SMark.J.Nelson@Sun.COM $(INS.file) 927769SMark.J.Nelson@Sun.COM 9310355SAli.Bahrami@Sun.COM$(ROOTONBLDLIBPERL)/%: % 9410355SAli.Bahrami@Sun.COM $(INS.file) 9510355SAli.Bahrami@Sun.COM 960Sstevel@tonic-gate$(ROOTONBLDMAN1)/%: % 970Sstevel@tonic-gate $(INS.file) 980Sstevel@tonic-gate 9911207SPeter.Dennis@Sun.COM$(ROOTONBLDSMAN1)/%: % 10011207SPeter.Dennis@Sun.COM $(INS.file) 10111207SPeter.Dennis@Sun.COM 1020Sstevel@tonic-gate$(ROOTONBLDENV)/%: % 1030Sstevel@tonic-gate $(INS.file) 1040Sstevel@tonic-gate 1050Sstevel@tonic-gate$(ROOTONBLDGK)/.%: % 1060Sstevel@tonic-gate $(INS.rename) 10710738SJames.McPherson@Sun.COM 10810738SJames.McPherson@Sun.COM$(ROOTONBLDGK)/%: % 10910738SJames.McPherson@Sun.COM $(INS.file) 110