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 51129Sdduvall# Common Development and Distribution License (the "License"). 61129Sdduvall# 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# 2212210SJames.McPherson@Sun.COM# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 230Sstevel@tonic-gate# 240Sstevel@tonic-gate 256594SpetedeSHELL=/usr/bin/ksh93 266594Spetede 270Sstevel@tonic-gateSHFILES= \ 280Sstevel@tonic-gate Install \ 294162Skupfer bindrop \ 300Sstevel@tonic-gate bldenv \ 310Sstevel@tonic-gate build_cscope \ 321802Ssommerfe bringovercheck \ 330Sstevel@tonic-gate checkpaths \ 340Sstevel@tonic-gate checkproto \ 3511562SMike.Kupfer@Sun.COM cryptodrop \ 360Sstevel@tonic-gate cstyle \ 370Sstevel@tonic-gate elfcmp \ 380Sstevel@tonic-gate flg.flp \ 390Sstevel@tonic-gate genoffsets \ 407078Smjnelson hgsetup \ 410Sstevel@tonic-gate keywords \ 422947Skupfer mkclosed \ 430Sstevel@tonic-gate nightly \ 4411838SLiane.Praza@Sun.COM onu \ 450Sstevel@tonic-gate protocmp.terse \ 461802Ssommerfe sccscheck \ 470Sstevel@tonic-gate sccscp \ 480Sstevel@tonic-gate sccshist \ 490Sstevel@tonic-gate sccsmv \ 500Sstevel@tonic-gate sccsrm \ 510Sstevel@tonic-gate webrev \ 527078Smjnelson which_scm \ 530Sstevel@tonic-gate ws \ 540Sstevel@tonic-gate wx \ 557078Smjnelson wx2hg \ 560Sstevel@tonic-gate xref 570Sstevel@tonic-gate 580Sstevel@tonic-gatePERLFILES= \ 590Sstevel@tonic-gate check_rtime \ 6010355SAli.Bahrami@Sun.COM find_elf \ 6110355SAli.Bahrami@Sun.COM interface_check \ 6210355SAli.Bahrami@Sun.COM interface_cmp \ 631129Sdduvall jstyle \ 644162Skupfer mkreadme_osol \ 654162Skupfer mktpl \ 660Sstevel@tonic-gate validate_flg \ 670Sstevel@tonic-gate validate_paths \ 680Sstevel@tonic-gate wdiff 690Sstevel@tonic-gate 7010355SAli.Bahrami@Sun.COMPERLMODULES= \ 71*12478SAli.Bahrami@Oracle.COM onbld_elfmod.pm \ 72*12478SAli.Bahrami@Oracle.COM onbld_elfmod_vertype.pm 7310355SAli.Bahrami@Sun.COM 7410355SAli.Bahrami@Sun.COM 752538SesaxePYFILES= \ 76*12478SAli.Bahrami@Oracle.COM cddlchk \ 77*12478SAli.Bahrami@Oracle.COM copyrightchk \ 78*12478SAli.Bahrami@Oracle.COM hdrchk \ 79*12478SAli.Bahrami@Oracle.COM hg-active \ 80*12478SAli.Bahrami@Oracle.COM mapfilechk \ 81*12478SAli.Bahrami@Oracle.COM rtichk \ 8211838SLiane.Praza@Sun.COM validate_pkg \ 83*12478SAli.Bahrami@Oracle.COM wsdiff 842538Sesaxe 850Sstevel@tonic-gateMAN1FILES= \ 860Sstevel@tonic-gate Install.1 \ 870Sstevel@tonic-gate bldenv.1 \ 881802Ssommerfe bringovercheck.1 \ 891431Salanbur cddlchk.1 \ 900Sstevel@tonic-gate checkpaths.1 \ 910Sstevel@tonic-gate check_rtime.1 \ 920Sstevel@tonic-gate cstyle.1 \ 9310355SAli.Bahrami@Sun.COM find_elf.1 \ 940Sstevel@tonic-gate flg.flp.1 \ 957078Smjnelson hdrchk.1 \ 9610355SAli.Bahrami@Sun.COM interface_check.1 \ 9710355SAli.Bahrami@Sun.COM interface_cmp.1 \ 987078Smjnelson hgsetup.1 \ 991129Sdduvall jstyle.1 \ 1008744SAli.Bahrami@Sun.COM mapfilechk.1 \ 1010Sstevel@tonic-gate nightly.1 \ 10211838SLiane.Praza@Sun.COM onu.1 \ 1031802Ssommerfe sccscheck.1 \ 1040Sstevel@tonic-gate sccscp.1 \ 1050Sstevel@tonic-gate sccsmv.1 \ 1060Sstevel@tonic-gate sccsrm.1 \ 1070Sstevel@tonic-gate webrev.1 \ 1087078Smjnelson which_scm.1 \ 1090Sstevel@tonic-gate ws.1 \ 1102538Sesaxe wsdiff.1 \ 1110Sstevel@tonic-gate wx.1 \ 1127078Smjnelson wx2hg.1 \ 1130Sstevel@tonic-gate xref.1 1140Sstevel@tonic-gate 1150Sstevel@tonic-gateMAKEFILES= \ 1160Sstevel@tonic-gate xref.mk 1170Sstevel@tonic-gate 1187769SMark.J.Nelson@Sun.COMETCFILES= \ 1199193SMark.J.Nelson@Sun.COM hgstyle \ 1209193SMark.J.Nelson@Sun.COM its.conf \ 1219193SMark.J.Nelson@Sun.COM its.reg 1227769SMark.J.Nelson@Sun.COM 12310355SAli.Bahrami@Sun.COMEXCEPTFILES= \ 12410355SAli.Bahrami@Sun.COM check_rtime \ 12510355SAli.Bahrami@Sun.COM interface_check \ 12610355SAli.Bahrami@Sun.COM interface_cmp 12710355SAli.Bahrami@Sun.COM 1287078SmjnelsonCLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1 1290Sstevel@tonic-gate 1300Sstevel@tonic-gateinclude ../Makefile.tools 1310Sstevel@tonic-gate 1327769SMark.J.Nelson@Sun.COM 1337769SMark.J.Nelson@Sun.COM$(ROOTONBLDETCFILES) := FILEMODE= 644 13410355SAli.Bahrami@Sun.COM$(ROOTONBLDEXCEPTFILES) := FILEMODE= 644 13510355SAli.Bahrami@Sun.COM$(ROOTONBLDPERLMODULES) := FILEMODE= 644 1367769SMark.J.Nelson@Sun.COM$(ROOTONBLDMAKEFILES) := FILEMODE= 644 1377769SMark.J.Nelson@Sun.COM$(ROOTONBLDMAN1FILES) := FILEMODE= 644 1380Sstevel@tonic-gate 1390Sstevel@tonic-gate.KEEP_STATE: 1400Sstevel@tonic-gate 14110355SAli.Bahrami@Sun.COMall: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \ 14210355SAli.Bahrami@Sun.COM $(MAN1FILES) $(MAKEFILES) 1430Sstevel@tonic-gate 1447769SMark.J.Nelson@Sun.COMinstall: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \ 14510355SAli.Bahrami@Sun.COM $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \ 14610355SAli.Bahrami@Sun.COM $(ROOTONBLDMAN1FILES) $(ROOTONBLDMAKEFILES) \ 14710355SAli.Bahrami@Sun.COM $(ROOTONBLDETCFILES) $(ROOTONBLDEXCEPTFILES) 1480Sstevel@tonic-gate 1490Sstevel@tonic-gateclean: 1500Sstevel@tonic-gate $(RM) $(CLEANFILES) 1510Sstevel@tonic-gate 1522947Skupferbldenv: bldenv.sh stdenv.sh 1536594Spetede $(RM) "$@" 1546594Spetede sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@" 1556594Spetede # Check for shell lint and fail if we hit warings 1566594Spetede shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \ 1576594Spetede [[ "$${shlintout}" != "" ]] && \ 1586594Spetede { print -r -- "$${shlintout}" ; false ; } || true 1596594Spetede $(CHMOD) +x "$@" 1606594Spetede 1616594Spetedebldenv.1: bldenv 1626594Spetede $(RM) "$@" 1636594Spetede (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \ 1646594Spetede sed 's/\.DS/.nf/g;s/\.DE/.fi/' > "$@" 1652947Skupfer 1662947Skupfernightly: nightly.sh stdenv.sh 1676594Spetede $(RM) "$@" 1682947Skupfer sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly 1696594Spetede $(CHMOD) +x "$@" 1702947Skupfer 1710Sstevel@tonic-gateinclude ../Makefile.targ 1720Sstevel@tonic-gate 173