xref: /titanic_51/usr/src/Makefile.noget (revision 3420b242dcd546952ee939a5a378bba3d3080165)
132f1e47bSsommerfe#
232f1e47bSsommerfe# CDDL HEADER START
332f1e47bSsommerfe#
432f1e47bSsommerfe# The contents of this file are subject to the terms of the
532f1e47bSsommerfe# Common Development and Distribution License (the "License").
632f1e47bSsommerfe# You may not use this file except in compliance with the License.
732f1e47bSsommerfe#
832f1e47bSsommerfe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
932f1e47bSsommerfe# or http://www.opensolaris.org/os/licensing.
1032f1e47bSsommerfe# See the License for the specific language governing permissions
1132f1e47bSsommerfe# and limitations under the License.
1232f1e47bSsommerfe#
1332f1e47bSsommerfe# When distributing Covered Code, include this CDDL HEADER in each
1432f1e47bSsommerfe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1532f1e47bSsommerfe# If applicable, add the following below this CDDL HEADER, with the
1632f1e47bSsommerfe# fields enclosed by brackets "[]" replaced with your own identifying
1732f1e47bSsommerfe# information: Portions Copyright [yyyy] [name of copyright owner]
1832f1e47bSsommerfe#
1932f1e47bSsommerfe# CDDL HEADER END
2032f1e47bSsommerfe#
2132f1e47bSsommerfe
2232f1e47bSsommerfe#
2332f1e47bSsommerfe# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2432f1e47bSsommerfe# Use is subject to license terms.
2532f1e47bSsommerfe#
2632f1e47bSsommerfe# ident	"%Z%%M%	%I%	%E% SMI"
2732f1e47bSsommerfe#
2832f1e47bSsommerfe
2932f1e47bSsommerfe#
3032f1e47bSsommerfe# Makefile.noget: disable automated "sccs get" which causes us no end
3132f1e47bSsommerfe# of trouble in as many different ways as possible.
3232f1e47bSsommerfe#
33*3420b242Ssommerfe# Ordinarily, we'd say "$(ONBLD_TOOLS)/bin/sccscheck" here, but make
34*3420b242Ssommerfe# has special knowledge of SCCS and will refuse to run an SCCS rule if
35*3420b242Ssommerfe# the target is a writeable file, for fear that it will be destroying
36*3420b242Ssommerfe# your edits in progress.  But with .KEEP_STATE enabled, any change to
37*3420b242Ssommerfe# the command which would have been used to "build" the source file
38*3420b242Ssommerfe# forces the command to be re-run.  So if your effective ONBLD_TOOLS
39*3420b242Ssommerfe# changes (for instance, if you do a nightly -t to populate a
40*3420b242Ssommerfe# workspace, and then "ws" into it to check out a file and then do
41*3420b242Ssommerfe# some selective builds, make will notice the change in the full path
42*3420b242Ssommerfe# of the "sccscheck" command, will seek to re-run it, and abort the
43*3420b242Ssommerfe# build because the checked-out file is writeable.  So instead, by
44*3420b242Ssommerfe# default, we just use whichever sccscheck happens to be first in
45*3420b242Ssommerfe# $PATH and hope for the best.  Those who don't entirely trust this
46*3420b242Ssommerfe# are of course welcome to consistently set SCCSCHECK in their
47*3420b242Ssommerfe# environment to override this.
48*3420b242Ssommerfe#
49*3420b242SsommerfeSCCSCHECK=sccscheck
50*3420b242SsommerfeGET=sccscheck
5132f1e47bSsommerfe
5232f1e47bSsommerfe# Deliberately sabotage other attempts to use "sccs get" from makefiles,
5332f1e47bSsommerfe# with flags known not to be accepted by "sccs get" or "get",
5432f1e47bSsommerfe# in the event that one of these rules is overridden elsewhere in the tree.
5532f1e47bSsommerfeSCCSFLAGS=--dont-get-it-now
5632f1e47bSsommerfeSCCSGETFLAGS=--dont-get-it-now
5732f1e47bSsommerfeGFLAGS=--dont-get-it-now
5832f1e47bSsommerfe
5932f1e47bSsommerfe# Disable these targets as well
6032f1e47bSsommerfe.SCCS_GET:
6132f1e47bSsommerfe	$(SCCSCHECK) $@
6232f1e47bSsommerfe
6332f1e47bSsommerfe.SCCS_GET_POSIX:
6432f1e47bSsommerfe	$(SCCSCHECK) $@
6532f1e47bSsommerfe
6632f1e47bSsommerfe.GET_POSIX:
6732f1e47bSsommerfe	$(SCCSCHECK) $@
6832f1e47bSsommerfe
6932f1e47bSsommerfe# The list of ~-suffix rules here was extracted from a copy of
7032f1e47bSsommerfe# 	/usr/share/lib/make/make.rules
7132f1e47bSsommerfe# which was tagged:
7232f1e47bSsommerfe# 	"make.rules.file   1.21    03/11/14 SMI"
7332f1e47bSsommerfe#
7432f1e47bSsommerfe# These could be consolidated into a smaller number of targets but
7532f1e47bSsommerfe# are intentionally left as-is to facilitate cross-checking against
7632f1e47bSsommerfe# newer versions of make.rules
7732f1e47bSsommerfe#
7832f1e47bSsommerfe
7932f1e47bSsommerfe.c~:
8032f1e47bSsommerfe	$(SCCSCHECK) $<
8132f1e47bSsommerfe
8232f1e47bSsommerfe.c~.o:
8332f1e47bSsommerfe	$(SCCSCHECK) $<
8432f1e47bSsommerfe
8532f1e47bSsommerfe.c~.i:
8632f1e47bSsommerfe	$(SCCSCHECK) $<
8732f1e47bSsommerfe
8832f1e47bSsommerfe.c~.ln:
8932f1e47bSsommerfe	$(SCCSCHECK) $<
9032f1e47bSsommerfe
9132f1e47bSsommerfe.c~.a:
9232f1e47bSsommerfe	$(SCCSCHECK) $<
9332f1e47bSsommerfe
9432f1e47bSsommerfe.y~:
9532f1e47bSsommerfe	$(SCCSCHECK) $<
9632f1e47bSsommerfe
9732f1e47bSsommerfe.y~.c:
9832f1e47bSsommerfe	$(SCCSCHECK) $<
9932f1e47bSsommerfe
10032f1e47bSsommerfe.y~.ln:
10132f1e47bSsommerfe	$(SCCSCHECK) $<
10232f1e47bSsommerfe
10332f1e47bSsommerfe.y~.o:
10432f1e47bSsommerfe	$(SCCSCHECK) $<
10532f1e47bSsommerfe
10632f1e47bSsommerfe.l~:
10732f1e47bSsommerfe	$(SCCSCHECK) $<
10832f1e47bSsommerfe
10932f1e47bSsommerfe.l~.c:
11032f1e47bSsommerfe	$(SCCSCHECK) $<
11132f1e47bSsommerfe
11232f1e47bSsommerfe.l~.ln:
11332f1e47bSsommerfe	$(SCCSCHECK) $<
11432f1e47bSsommerfe
11532f1e47bSsommerfe.l~.o:
11632f1e47bSsommerfe	$(SCCSCHECK) $<
11732f1e47bSsommerfe
11832f1e47bSsommerfe.cc~:
11932f1e47bSsommerfe	$(SCCSCHECK) $<
12032f1e47bSsommerfe
12132f1e47bSsommerfe.cc~.o:
12232f1e47bSsommerfe	$(SCCSCHECK) $<
12332f1e47bSsommerfe
12432f1e47bSsommerfe.cc~.i:
12532f1e47bSsommerfe	$(SCCSCHECK) $<
12632f1e47bSsommerfe
12732f1e47bSsommerfe.cc~.a:
12832f1e47bSsommerfe	$(SCCSCHECK) $<
12932f1e47bSsommerfe
13032f1e47bSsommerfe.C~:
13132f1e47bSsommerfe	$(SCCSCHECK) $<
13232f1e47bSsommerfe
13332f1e47bSsommerfe.C~.o:
13432f1e47bSsommerfe	$(SCCSCHECK) $<
13532f1e47bSsommerfe
13632f1e47bSsommerfe.C~.i:
13732f1e47bSsommerfe	$(SCCSCHECK) $<
13832f1e47bSsommerfe
13932f1e47bSsommerfe.C~.a:
14032f1e47bSsommerfe	$(SCCSCHECK) $<
14132f1e47bSsommerfe
14232f1e47bSsommerfe.f~:
14332f1e47bSsommerfe	$(SCCSCHECK) $<
14432f1e47bSsommerfe
14532f1e47bSsommerfe.f~.o:
14632f1e47bSsommerfe	$(SCCSCHECK) $<
14732f1e47bSsommerfe
14832f1e47bSsommerfe.f~.a:
14932f1e47bSsommerfe	$(SCCSCHECK) $<
15032f1e47bSsommerfe
15132f1e47bSsommerfe.for~:
15232f1e47bSsommerfe	$(SCCSCHECK) $<
15332f1e47bSsommerfe
15432f1e47bSsommerfe.for~.o:
15532f1e47bSsommerfe	$(SCCSCHECK) $<
15632f1e47bSsommerfe
15732f1e47bSsommerfe.for~.a:
15832f1e47bSsommerfe	$(SCCSCHECK) $<
15932f1e47bSsommerfe
16032f1e47bSsommerfe.F~:
16132f1e47bSsommerfe	$(SCCSCHECK) $<
16232f1e47bSsommerfe
16332f1e47bSsommerfe.F~.o:
16432f1e47bSsommerfe	$(SCCSCHECK) $<
16532f1e47bSsommerfe
16632f1e47bSsommerfe.F~.a:
16732f1e47bSsommerfe	$(SCCSCHECK) $<
16832f1e47bSsommerfe
16932f1e47bSsommerfe.r~:
17032f1e47bSsommerfe	$(SCCSCHECK) $<
17132f1e47bSsommerfe
17232f1e47bSsommerfe.r~.o:
17332f1e47bSsommerfe	$(SCCSCHECK) $<
17432f1e47bSsommerfe
17532f1e47bSsommerfe.r~.a:
17632f1e47bSsommerfe	$(SCCSCHECK) $<
17732f1e47bSsommerfe
17832f1e47bSsommerfe.f90~:
17932f1e47bSsommerfe	$(SCCSCHECK) $<
18032f1e47bSsommerfe
18132f1e47bSsommerfe.f90~.o:
18232f1e47bSsommerfe	$(SCCSCHECK) $<
18332f1e47bSsommerfe
18432f1e47bSsommerfe.f90~.a:
18532f1e47bSsommerfe	$(SCCSCHECK) $<
18632f1e47bSsommerfe
18732f1e47bSsommerfe.ftn~:
18832f1e47bSsommerfe	$(SCCSCHECK) $<
18932f1e47bSsommerfe
19032f1e47bSsommerfe.ftn~.o:
19132f1e47bSsommerfe	$(SCCSCHECK) $<
19232f1e47bSsommerfe
19332f1e47bSsommerfe.ftn~.a:
19432f1e47bSsommerfe	$(SCCSCHECK) $<
19532f1e47bSsommerfe
19632f1e47bSsommerfe.def~.sym:
19732f1e47bSsommerfe	$(SCCSCHECK) $<
19832f1e47bSsommerfe
19932f1e47bSsommerfe.mod~:
20032f1e47bSsommerfe	$(SCCSCHECK) $<
20132f1e47bSsommerfe
20232f1e47bSsommerfe.mod~.o:
20332f1e47bSsommerfe	$(SCCSCHECK) $<
20432f1e47bSsommerfe
20532f1e47bSsommerfe.mod~.a:
20632f1e47bSsommerfe	$(SCCSCHECK) $<
20732f1e47bSsommerfe
20832f1e47bSsommerfe.p~:
20932f1e47bSsommerfe	$(SCCSCHECK) $<
21032f1e47bSsommerfe
21132f1e47bSsommerfe.p~.o:
21232f1e47bSsommerfe	$(SCCSCHECK) $<
21332f1e47bSsommerfe
21432f1e47bSsommerfe.p~.a:
21532f1e47bSsommerfe	$(SCCSCHECK) $<
21632f1e47bSsommerfe
21732f1e47bSsommerfe.s~.o:
21832f1e47bSsommerfe	$(SCCSCHECK) $<
21932f1e47bSsommerfe
22032f1e47bSsommerfe.s~.a:
22132f1e47bSsommerfe	$(SCCSCHECK) $<
22232f1e47bSsommerfe
22332f1e47bSsommerfe.S~.o:
22432f1e47bSsommerfe	$(SCCSCHECK) $<
22532f1e47bSsommerfe
22632f1e47bSsommerfe.S~.a:
22732f1e47bSsommerfe	$(SCCSCHECK) $<
22832f1e47bSsommerfe
22932f1e47bSsommerfe.sh~:
23032f1e47bSsommerfe	$(SCCSCHECK) $<
23132f1e47bSsommerfe
23232f1e47bSsommerfe.cps~.h:
23332f1e47bSsommerfe	$(SCCSCHECK) $<
23432f1e47bSsommerfe
23532f1e47bSsommerfe.java~.class:
23632f1e47bSsommerfe	$(SCCSCHECK) $<
237