17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 578fe7221Sdduvall# Common Development and Distribution License (the "License"). 678fe7221Sdduvall# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22*597bd30bSMike Kupfer# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 2663df1173SpetedeSHELL=/usr/bin/ksh93 2763df1173Spetede 287c478bd9Sstevel@tonic-gateSHFILES= \ 297c478bd9Sstevel@tonic-gate Install \ 307c478bd9Sstevel@tonic-gate acr \ 317c478bd9Sstevel@tonic-gate bfu \ 324e5b757fSkupfer bfudrop \ 334e5b757fSkupfer bindrop \ 347c478bd9Sstevel@tonic-gate bldenv \ 357c478bd9Sstevel@tonic-gate build_cscope \ 36733ed737Ssommerfe bringovercheck \ 377c478bd9Sstevel@tonic-gate checkpaths \ 387c478bd9Sstevel@tonic-gate checkproto \ 39*597bd30bSMike Kupfer cryptodrop \ 407c478bd9Sstevel@tonic-gate cstyle \ 417c478bd9Sstevel@tonic-gate elfcmp \ 427c478bd9Sstevel@tonic-gate flg.flp \ 437c478bd9Sstevel@tonic-gate genoffsets \ 44cdf0c1d5Smjnelson hgsetup \ 457c478bd9Sstevel@tonic-gate keywords \ 467c478bd9Sstevel@tonic-gate makebfu \ 477c478bd9Sstevel@tonic-gate mkacr \ 487c478bd9Sstevel@tonic-gate mkbfu \ 491fe69678Skupfer mkclosed \ 507c478bd9Sstevel@tonic-gate nightly \ 514e5b757fSkupfer onblddrop \ 527c478bd9Sstevel@tonic-gate protocmp.terse \ 53733ed737Ssommerfe sccscheck \ 547c478bd9Sstevel@tonic-gate sccscp \ 557c478bd9Sstevel@tonic-gate sccshist \ 567c478bd9Sstevel@tonic-gate sccsmv \ 577c478bd9Sstevel@tonic-gate sccsrm \ 584e5b757fSkupfer sdrop \ 597c478bd9Sstevel@tonic-gate webrev \ 60cdf0c1d5Smjnelson which_scm \ 617c478bd9Sstevel@tonic-gate ws \ 627c478bd9Sstevel@tonic-gate wx \ 63cdf0c1d5Smjnelson wx2hg \ 647c478bd9Sstevel@tonic-gate xref 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gatePERLFILES= \ 677c478bd9Sstevel@tonic-gate check_rtime \ 6875ce41a5SAli Bahrami find_elf \ 6975ce41a5SAli Bahrami interface_check \ 7075ce41a5SAli Bahrami interface_cmp \ 7178fe7221Sdduvall jstyle \ 724e5b757fSkupfer mkreadme_osol \ 734e5b757fSkupfer mktpl \ 747c478bd9Sstevel@tonic-gate validate_flg \ 757c478bd9Sstevel@tonic-gate validate_paths \ 767c478bd9Sstevel@tonic-gate wdiff 777c478bd9Sstevel@tonic-gate 7875ce41a5SAli BahramiPERLMODULES= \ 7975ce41a5SAli Bahrami onbld_elfmod.pm 8075ce41a5SAli Bahrami 8175ce41a5SAli Bahrami 8296ccc8cbSesaxePYFILES= \ 83cdf0c1d5Smjnelson cddlchk \ 84cdf0c1d5Smjnelson copyrightchk \ 85cdf0c1d5Smjnelson hdrchk \ 86cdf0c1d5Smjnelson hg-active \ 87bfed486aSAli Bahrami mapfilechk \ 88cdf0c1d5Smjnelson rtichk \ 8996ccc8cbSesaxe wsdiff 9096ccc8cbSesaxe 917c478bd9Sstevel@tonic-gateMAN1FILES= \ 927c478bd9Sstevel@tonic-gate Install.1 \ 937c478bd9Sstevel@tonic-gate acr.1 \ 947c478bd9Sstevel@tonic-gate bldenv.1 \ 95733ed737Ssommerfe bringovercheck.1 \ 961f1defa1Salanbur cddlchk.1 \ 977c478bd9Sstevel@tonic-gate checkpaths.1 \ 987c478bd9Sstevel@tonic-gate check_rtime.1 \ 997c478bd9Sstevel@tonic-gate cstyle.1 \ 10075ce41a5SAli Bahrami find_elf.1 \ 1017c478bd9Sstevel@tonic-gate flg.flp.1 \ 102cdf0c1d5Smjnelson hdrchk.1 \ 10375ce41a5SAli Bahrami interface_check.1 \ 10475ce41a5SAli Bahrami interface_cmp.1 \ 105cdf0c1d5Smjnelson hgsetup.1 \ 10678fe7221Sdduvall jstyle.1 \ 107bfed486aSAli Bahrami mapfilechk.1 \ 1087c478bd9Sstevel@tonic-gate mkacr.1 \ 1097c478bd9Sstevel@tonic-gate nightly.1 \ 110733ed737Ssommerfe sccscheck.1 \ 1117c478bd9Sstevel@tonic-gate sccscp.1 \ 1127c478bd9Sstevel@tonic-gate sccsmv.1 \ 1137c478bd9Sstevel@tonic-gate sccsrm.1 \ 1147c478bd9Sstevel@tonic-gate webrev.1 \ 115cdf0c1d5Smjnelson which_scm.1 \ 1167c478bd9Sstevel@tonic-gate ws.1 \ 11796ccc8cbSesaxe wsdiff.1 \ 1187c478bd9Sstevel@tonic-gate wx.1 \ 119cdf0c1d5Smjnelson wx2hg.1 \ 1207c478bd9Sstevel@tonic-gate xref.1 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gateMAKEFILES= \ 1237c478bd9Sstevel@tonic-gate xref.mk 1247c478bd9Sstevel@tonic-gate 12593af10a4SMark J. NelsonETCFILES= \ 1260fd2682eSMark J. Nelson hgstyle \ 1270fd2682eSMark J. Nelson its.conf \ 1280fd2682eSMark J. Nelson its.reg 12993af10a4SMark J. Nelson 13075ce41a5SAli BahramiEXCEPTFILES= \ 13175ce41a5SAli Bahrami check_rtime \ 13275ce41a5SAli Bahrami interface_check \ 13375ce41a5SAli Bahrami interface_cmp 13475ce41a5SAli Bahrami 135cdf0c1d5SmjnelsonCLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1 1367c478bd9Sstevel@tonic-gate 1377c478bd9Sstevel@tonic-gateinclude ../Makefile.tools 1387c478bd9Sstevel@tonic-gate 13993af10a4SMark J. Nelson 14093af10a4SMark J. Nelson$(ROOTONBLDETCFILES) := FILEMODE= 644 14175ce41a5SAli Bahrami$(ROOTONBLDEXCEPTFILES) := FILEMODE= 644 14275ce41a5SAli Bahrami$(ROOTONBLDPERLMODULES) := FILEMODE= 644 1437c478bd9Sstevel@tonic-gate$(ROOTONBLDMAKEFILES) := FILEMODE= 644 14493af10a4SMark J. Nelson$(ROOTONBLDMAN1FILES) := FILEMODE= 644 1457c478bd9Sstevel@tonic-gate 1467c478bd9Sstevel@tonic-gate.KEEP_STATE: 1477c478bd9Sstevel@tonic-gate 14875ce41a5SAli Bahramiall: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \ 14975ce41a5SAli Bahrami $(MAN1FILES) $(MAKEFILES) 1507c478bd9Sstevel@tonic-gate 1517c478bd9Sstevel@tonic-gateinstall: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \ 15275ce41a5SAli Bahrami $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \ 15375ce41a5SAli Bahrami $(ROOTONBLDMAN1FILES) $(ROOTONBLDMAKEFILES) \ 15475ce41a5SAli Bahrami $(ROOTONBLDETCFILES) $(ROOTONBLDEXCEPTFILES) 1557c478bd9Sstevel@tonic-gate 1567c478bd9Sstevel@tonic-gateclean: 1577c478bd9Sstevel@tonic-gate $(RM) $(CLEANFILES) 1587c478bd9Sstevel@tonic-gate 1591fe69678Skupferbldenv: bldenv.sh stdenv.sh 16063df1173Spetede $(RM) "$@" 16163df1173Spetede sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@" 16263df1173Spetede # Check for shell lint and fail if we hit warings 16363df1173Spetede shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \ 16463df1173Spetede [[ "$${shlintout}" != "" ]] && \ 16563df1173Spetede { print -r -- "$${shlintout}" ; false ; } || true 16663df1173Spetede $(CHMOD) +x "$@" 16763df1173Spetede 16863df1173Spetedebldenv.1: bldenv 16963df1173Spetede $(RM) "$@" 17063df1173Spetede (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \ 17163df1173Spetede sed 's/\.DS/.nf/g;s/\.DE/.fi/' > "$@" 1721fe69678Skupfer 1731fe69678Skupfernightly: nightly.sh stdenv.sh 17463df1173Spetede $(RM) "$@" 1751fe69678Skupfer sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly 17663df1173Spetede $(CHMOD) +x "$@" 1771fe69678Skupfer 1787c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 1797c478bd9Sstevel@tonic-gate 180