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 # 26 include $(SRC)/Makefile.master 27 28 FILEMODE= 0555 29 30 TOOLS= $(SRC)/tools 31 TOOLS_PROTO= $(TOOLS)/proto/root_$(MACH)-nd 32 ROOTOPT= $(TOOLS_PROTO)/opt 33 ROOTONBLD= $(ROOTOPT)/onbld 34 ROOTONBLDBIN= $(ROOTONBLD)/bin 35 ROOTONBLDBINMACH= $(ROOTONBLD)/bin/$(MACH) 36 ROOTONBLDETC= $(ROOTONBLD)/etc 37 ROOTONBLDLIB= $(ROOTONBLD)/lib 38 ROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH) 39 ROOTONBLDLIBMACH64= $(ROOTONBLD)/lib/$(MACH)/64 40 ROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl 41 ROOTONBLDLIBPY= $(ROOTONBLD)/lib/python 42 ROOTONBLDENV= $(ROOTONBLD)/env 43 ROOTONBLDMAN= $(ROOTONBLD)/man 44 ROOTONBLDMAN1ONBLD= $(ROOTONBLD)/man/man1onbld 45 ROOTONBLDETCABI= $(ROOTONBLD)/etc/abi 46 ROOTONBLDETCEXCEPT= $(ROOTONBLD)/etc/exception_lists 47 ROOTONBLDSHARE= $(ROOTONBLD)/share 48 49 CC = $(NATIVECC) 50 CCC = $(NATIVECCC) 51 CFLAGS = $(NATIVE_CFLAGS) 52 CPPFLAGS= -D_TS_ERRNO 53 ELFSIGN_O= $(TRUE) 54 LDLIBS= 55 LDFLAGS= $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \ 56 $(MAPFILE.PGA:%=-M%) \ 57 -B direct 58 NATIVE_LIBS= libc.so 59 60 ROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%) 61 ROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%) 62 ROOTONBLDSHFILES= $(SHFILES:%=$(ROOTONBLDBIN)/%) 63 ROOTONBLDMAKEFILES= $(MAKEFILES:%=$(ROOTONBLDBIN)/%) 64 ROOTONBLDMACHSHFILES= $(SHFILES:%=$(ROOTONBLDBINMACH)/%) 65 ROOTONBLDMACHBINARIES= $(BINARIES:%=$(ROOTONBLDBINMACH)/%) 66 ROOTONBLDETCFILES= $(ETCFILES:%=$(ROOTONBLDETC)/%) 67 ROOTONBLDENVFILES= $(ENVFILES:%=$(ROOTONBLDENV)/%) 68 ROOTONBLDPERLFILES= $(PERLFILES:%=$(ROOTONBLDBIN)/%) 69 ROOTONBLDPERLMODULES= $(PERLMODULES:%=$(ROOTONBLDLIBPERL)/%) 70 ROOTONBLDPYFILES= $(PYFILES:%=$(ROOTONBLDBIN)/%) 71 ROOTONBLDMAN1ONBLDFILES=$(MAN1ONBLDFILES:%=$(ROOTONBLDMAN1ONBLD)/%) 72 ROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%) 73 ROOTONBLDEXCEPTFILES= $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%) 74 75 # Break a chicken-and-egg dependency cycle for the tools build 76 SCCSCHECK=@echo would sccscheck 77 78 $(ROOTONBLDETCABI)/%: % 79 $(INS.file) 80 81 $(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/% 82 $(INS.file) 83 84 $(ROOTONBLDBIN)/%: % 85 $(INS.file) 86 87 $(ROOTONBLDBINMACH)/%: % 88 $(INS.file) 89 90 $(ROOTONBLDETC)/%: % 91 $(INS.file) 92 93 $(ROOTONBLDLIBPERL)/%: % 94 $(INS.file) 95 96 $(ROOTONBLDMAN1ONBLD)/%: % 97 $(INS.file) 98 99 $(ROOTONBLDENV)/%: % 100 $(INS.file)