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 (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26 27# 28# Definitions common to tool source. 29# 30include $(SRC)/Makefile.master 31 32FILEMODE= 0555 33 34CLOBBERFILES += $(PYOBJS) 35 36TOOLS= $(SRC)/tools 37TOOLS_PROTO= $(TOOLS)/proto 38ROOTOPT= $(TOOLS_PROTO)/opt 39ROOTONBLD= $(ROOTOPT)/onbld 40ROOTONBLDBIN= $(ROOTONBLD)/bin 41ROOTONBLDBINMACH= $(ROOTONBLD)/bin/$(MACH) 42ROOTONBLDETC= $(ROOTONBLD)/etc 43ROOTONBLDLIB= $(ROOTONBLD)/lib 44ROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH) 45ROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl 46ROOTONBLDLIBPY= $(ROOTONBLD)/lib/python 47ROOTONBLDENV= $(ROOTONBLD)/env 48ROOTONBLDGK= $(ROOTONBLD)/gk 49ROOTONBLDMAN= $(ROOTONBLD)/man 50ROOTONBLDMAN1= $(ROOTONBLD)/man/man1 51ROOTONBLDETCABI= $(ROOTONBLD)/etc/abi 52ROOTONBLDETCEXCEPT= $(ROOTONBLD)/etc/exception_lists 53 54CPPFLAGS= -D_TS_ERRNO 55ELFSIGN_O= $(TRUE) 56LDLIBS= 57LDFLAGS= $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \ 58 $(MAPFILE.PGA:%=-M%) 59 60ROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%) 61ROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%) 62ROOTONBLDSHFILES= $(SHFILES:%=$(ROOTONBLDBIN)/%) 63ROOTONBLDMAKEFILES= $(MAKEFILES:%=$(ROOTONBLDBIN)/%) 64ROOTONBLDMACHSHFILES= $(SHFILES:%=$(ROOTONBLDBINMACH)/%) 65ROOTONBLDMACHBINARIES= $(BINARIES:%=$(ROOTONBLDBINMACH)/%) 66ROOTONBLDETCFILES= $(ETCFILES:%=$(ROOTONBLDETC)/%) 67ROOTONBLDENVFILES= $(ENVFILES:%=$(ROOTONBLDENV)/%) 68ROOTONBLDGKFILES= $(GKFILES:%=$(ROOTONBLDGK)/.%) 69ROOTONBLDPERLFILES= $(PERLFILES:%=$(ROOTONBLDBIN)/%) 70ROOTONBLDPERLMODULES= $(PERLMODULES:%=$(ROOTONBLDLIBPERL)/%) 71ROOTONBLDPYFILES= $(PYFILES:%=$(ROOTONBLDBIN)/%) 72ROOTONBLDMAN1FILES= $(MAN1FILES:%=$(ROOTONBLDMAN1)/%) 73ROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%) 74ROOTONBLDEXCEPTFILES= $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%) 75 76# Break a chicken-and-egg dependency cycle for the tools build 77SCCSCHECK=@echo would sccscheck 78 79$(ROOTONBLDETCABI)/%: % 80 $(INS.file) 81 82$(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/% 83 $(INS.file) 84 85$(ROOTONBLDBIN)/%: % 86 $(INS.file) 87 88$(ROOTONBLDBINMACH)/%: % 89 $(INS.file) 90 91$(ROOTONBLDETC)/%: % 92 $(INS.file) 93 94$(ROOTONBLDLIBPERL)/%: % 95 $(INS.file) 96 97$(ROOTONBLDMAN1)/%: % 98 $(INS.file) 99 100$(ROOTONBLDENV)/%: % 101 $(INS.file) 102 103$(ROOTONBLDGK)/.%: % 104 $(INS.rename) 105