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*b83ec4edSjmcp# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate 2563df1173SpetedeSHELL=/usr/bin/ksh93 2663df1173Spetede 277c478bd9Sstevel@tonic-gateSHFILES= \ 287c478bd9Sstevel@tonic-gate Install \ 297c478bd9Sstevel@tonic-gate bfu \ 304e5b757fSkupfer bindrop \ 317c478bd9Sstevel@tonic-gate bldenv \ 327c478bd9Sstevel@tonic-gate build_cscope \ 33733ed737Ssommerfe bringovercheck \ 347c478bd9Sstevel@tonic-gate checkpaths \ 357c478bd9Sstevel@tonic-gate checkproto \ 36597bd30bSMike Kupfer cryptodrop \ 377c478bd9Sstevel@tonic-gate cstyle \ 387c478bd9Sstevel@tonic-gate elfcmp \ 397c478bd9Sstevel@tonic-gate flg.flp \ 407c478bd9Sstevel@tonic-gate genoffsets \ 41cdf0c1d5Smjnelson hgsetup \ 427c478bd9Sstevel@tonic-gate keywords \ 437c478bd9Sstevel@tonic-gate makebfu \ 447c478bd9Sstevel@tonic-gate mkbfu \ 451fe69678Skupfer mkclosed \ 467c478bd9Sstevel@tonic-gate nightly \ 47ead1f93eSLiane Praza onu \ 487c478bd9Sstevel@tonic-gate protocmp.terse \ 49733ed737Ssommerfe sccscheck \ 507c478bd9Sstevel@tonic-gate sccscp \ 517c478bd9Sstevel@tonic-gate sccshist \ 527c478bd9Sstevel@tonic-gate sccsmv \ 537c478bd9Sstevel@tonic-gate sccsrm \ 547c478bd9Sstevel@tonic-gate webrev \ 55cdf0c1d5Smjnelson which_scm \ 567c478bd9Sstevel@tonic-gate ws \ 577c478bd9Sstevel@tonic-gate wx \ 58cdf0c1d5Smjnelson wx2hg \ 597c478bd9Sstevel@tonic-gate xref 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gatePERLFILES= \ 627c478bd9Sstevel@tonic-gate check_rtime \ 6375ce41a5SAli Bahrami find_elf \ 6475ce41a5SAli Bahrami interface_check \ 6575ce41a5SAli Bahrami interface_cmp \ 6678fe7221Sdduvall jstyle \ 674e5b757fSkupfer mkreadme_osol \ 684e5b757fSkupfer mktpl \ 697c478bd9Sstevel@tonic-gate validate_flg \ 707c478bd9Sstevel@tonic-gate validate_paths \ 717c478bd9Sstevel@tonic-gate wdiff 727c478bd9Sstevel@tonic-gate 7375ce41a5SAli BahramiPERLMODULES= \ 7475ce41a5SAli Bahrami onbld_elfmod.pm 7575ce41a5SAli Bahrami 7675ce41a5SAli Bahrami 7796ccc8cbSesaxePYFILES= \ 78cdf0c1d5Smjnelson cddlchk \ 79cdf0c1d5Smjnelson copyrightchk \ 80cdf0c1d5Smjnelson hdrchk \ 81cdf0c1d5Smjnelson hg-active \ 82bfed486aSAli Bahrami mapfilechk \ 83cdf0c1d5Smjnelson rtichk \ 84ead1f93eSLiane Praza validate_pkg \ 8596ccc8cbSesaxe wsdiff 8696ccc8cbSesaxe 877c478bd9Sstevel@tonic-gateMAN1FILES= \ 887c478bd9Sstevel@tonic-gate Install.1 \ 897c478bd9Sstevel@tonic-gate bldenv.1 \ 90733ed737Ssommerfe bringovercheck.1 \ 911f1defa1Salanbur cddlchk.1 \ 927c478bd9Sstevel@tonic-gate checkpaths.1 \ 937c478bd9Sstevel@tonic-gate check_rtime.1 \ 947c478bd9Sstevel@tonic-gate cstyle.1 \ 9575ce41a5SAli Bahrami find_elf.1 \ 967c478bd9Sstevel@tonic-gate flg.flp.1 \ 97cdf0c1d5Smjnelson hdrchk.1 \ 9875ce41a5SAli Bahrami interface_check.1 \ 9975ce41a5SAli Bahrami interface_cmp.1 \ 100cdf0c1d5Smjnelson hgsetup.1 \ 10178fe7221Sdduvall jstyle.1 \ 102bfed486aSAli Bahrami mapfilechk.1 \ 1037c478bd9Sstevel@tonic-gate nightly.1 \ 104ead1f93eSLiane Praza onu.1 \ 105733ed737Ssommerfe sccscheck.1 \ 1067c478bd9Sstevel@tonic-gate sccscp.1 \ 1077c478bd9Sstevel@tonic-gate sccsmv.1 \ 1087c478bd9Sstevel@tonic-gate sccsrm.1 \ 1097c478bd9Sstevel@tonic-gate webrev.1 \ 110cdf0c1d5Smjnelson which_scm.1 \ 1117c478bd9Sstevel@tonic-gate ws.1 \ 11296ccc8cbSesaxe wsdiff.1 \ 1137c478bd9Sstevel@tonic-gate wx.1 \ 114cdf0c1d5Smjnelson wx2hg.1 \ 1157c478bd9Sstevel@tonic-gate xref.1 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gateMAKEFILES= \ 1187c478bd9Sstevel@tonic-gate xref.mk 1197c478bd9Sstevel@tonic-gate 12093af10a4SMark J. NelsonETCFILES= \ 1210fd2682eSMark J. Nelson hgstyle \ 1220fd2682eSMark J. Nelson its.conf \ 1230fd2682eSMark J. Nelson its.reg 12493af10a4SMark J. Nelson 12575ce41a5SAli BahramiEXCEPTFILES= \ 12675ce41a5SAli Bahrami check_rtime \ 12775ce41a5SAli Bahrami interface_check \ 12875ce41a5SAli Bahrami interface_cmp 12975ce41a5SAli Bahrami 130cdf0c1d5SmjnelsonCLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1 1317c478bd9Sstevel@tonic-gate 1327c478bd9Sstevel@tonic-gateinclude ../Makefile.tools 1337c478bd9Sstevel@tonic-gate 13493af10a4SMark J. Nelson 13593af10a4SMark J. Nelson$(ROOTONBLDETCFILES) := FILEMODE= 644 13675ce41a5SAli Bahrami$(ROOTONBLDEXCEPTFILES) := FILEMODE= 644 13775ce41a5SAli Bahrami$(ROOTONBLDPERLMODULES) := FILEMODE= 644 1387c478bd9Sstevel@tonic-gate$(ROOTONBLDMAKEFILES) := FILEMODE= 644 13993af10a4SMark J. Nelson$(ROOTONBLDMAN1FILES) := FILEMODE= 644 1407c478bd9Sstevel@tonic-gate 1417c478bd9Sstevel@tonic-gate.KEEP_STATE: 1427c478bd9Sstevel@tonic-gate 14375ce41a5SAli Bahramiall: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \ 14475ce41a5SAli Bahrami $(MAN1FILES) $(MAKEFILES) 1457c478bd9Sstevel@tonic-gate 1467c478bd9Sstevel@tonic-gateinstall: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \ 14775ce41a5SAli Bahrami $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \ 14875ce41a5SAli Bahrami $(ROOTONBLDMAN1FILES) $(ROOTONBLDMAKEFILES) \ 14975ce41a5SAli Bahrami $(ROOTONBLDETCFILES) $(ROOTONBLDEXCEPTFILES) 1507c478bd9Sstevel@tonic-gate 1517c478bd9Sstevel@tonic-gateclean: 1527c478bd9Sstevel@tonic-gate $(RM) $(CLEANFILES) 1537c478bd9Sstevel@tonic-gate 1541fe69678Skupferbldenv: bldenv.sh stdenv.sh 15563df1173Spetede $(RM) "$@" 15663df1173Spetede sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@" 15763df1173Spetede # Check for shell lint and fail if we hit warings 15863df1173Spetede shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \ 15963df1173Spetede [[ "$${shlintout}" != "" ]] && \ 16063df1173Spetede { print -r -- "$${shlintout}" ; false ; } || true 16163df1173Spetede $(CHMOD) +x "$@" 16263df1173Spetede 16363df1173Spetedebldenv.1: bldenv 16463df1173Spetede $(RM) "$@" 16563df1173Spetede (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \ 16663df1173Spetede sed 's/\.DS/.nf/g;s/\.DE/.fi/' > "$@" 1671fe69678Skupfer 1681fe69678Skupfernightly: nightly.sh stdenv.sh 16963df1173Spetede $(RM) "$@" 1701fe69678Skupfer sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly 17163df1173Spetede $(CHMOD) +x "$@" 1721fe69678Skupfer 1737c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 1747c478bd9Sstevel@tonic-gate 175