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# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 23# 24# Definitions common to tool source. 25# 26include $(SRC)/Makefile.master 27 28FILEMODE= 0555 29 30TOOLS= $(SRC)/tools 31TOOLS_PROTO= $(TOOLS)/proto/root_$(MACH)-nd 32ROOTOPT= $(TOOLS_PROTO)/opt 33ROOTONBLD= $(ROOTOPT)/onbld 34ROOTONBLDBIN= $(ROOTONBLD)/bin 35ROOTONBLDBINMACH= $(ROOTONBLD)/bin/$(MACH) 36ROOTONBLDETC= $(ROOTONBLD)/etc 37ROOTONBLDLIB= $(ROOTONBLD)/lib 38ROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH) 39ROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl 40ROOTONBLDLIBPY= $(ROOTONBLD)/lib/python 41ROOTONBLDLIBPY_26= $(ROOTONBLD)/lib/python2.6 42ROOTONBLDENV= $(ROOTONBLD)/env 43ROOTONBLDGK= $(ROOTONBLD)/gk 44ROOTONBLDMAN= $(ROOTONBLD)/man 45ROOTONBLDMAN1= $(ROOTONBLD)/man/man1 46ROOTONBLDETCABI= $(ROOTONBLD)/etc/abi 47ROOTONBLDETCEXCEPT= $(ROOTONBLD)/etc/exception_lists 48 49CPPFLAGS= -D_TS_ERRNO 50ELFSIGN_O= $(TRUE) 51LDLIBS= 52LDFLAGS= $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \ 53 $(MAPFILE.PGA:%=-M%) 54 55ROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%) 56ROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%) 57ROOTONBLDSHFILES= $(SHFILES:%=$(ROOTONBLDBIN)/%) 58ROOTONBLDMAKEFILES= $(MAKEFILES:%=$(ROOTONBLDBIN)/%) 59ROOTONBLDMACHSHFILES= $(SHFILES:%=$(ROOTONBLDBINMACH)/%) 60ROOTONBLDMACHBINARIES= $(BINARIES:%=$(ROOTONBLDBINMACH)/%) 61ROOTONBLDETCFILES= $(ETCFILES:%=$(ROOTONBLDETC)/%) 62ROOTONBLDENVFILES= $(ENVFILES:%=$(ROOTONBLDENV)/%) 63ROOTONBLDGKFILES= $(GKFILES:%=$(ROOTONBLDGK)/.%) 64ROOTONBLDGKSHFILES= $(SHFILES:%=$(ROOTONBLDGK)/%) 65ROOTONBLDPERLFILES= $(PERLFILES:%=$(ROOTONBLDBIN)/%) 66ROOTONBLDPERLMODULES= $(PERLMODULES:%=$(ROOTONBLDLIBPERL)/%) 67ROOTONBLDPYFILES= $(PYFILES:%=$(ROOTONBLDBIN)/%) 68ROOTONBLDMAN1FILES= $(MAN1FILES:%=$(ROOTONBLDMAN1)/%) 69ROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%) 70ROOTONBLDEXCEPTFILES= $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%) 71 72# Break a chicken-and-egg dependency cycle for the tools build 73SCCSCHECK=@echo would sccscheck 74 75$(ROOTONBLDETCABI)/%: % 76 $(INS.file) 77 78$(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/% 79 $(INS.file) 80 81$(ROOTONBLDBIN)/%: % 82 $(INS.file) 83 84$(ROOTONBLDBINMACH)/%: % 85 $(INS.file) 86 87$(ROOTONBLDETC)/%: % 88 $(INS.file) 89 90$(ROOTONBLDLIBPERL)/%: % 91 $(INS.file) 92 93$(ROOTONBLDMAN1)/%: % 94 $(INS.file) 95 96$(ROOTONBLDENV)/%: % 97 $(INS.file) 98 99$(ROOTONBLDGK)/.%: % 100 $(INS.rename) 101 102$(ROOTONBLDGK)/%: % 103 $(INS.file) 104