6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * CDDL HEADER START
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * The contents of this file are subject to the terms of the
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * Common Development and Distribution License (the "License").
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * You may not use this file except in compliance with the License.
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * or http://www.opensolaris.org/os/licensing.
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * See the License for the specific language governing permissions
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * and limitations under the License.
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * When distributing Covered Code, include this CDDL HEADER in each
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * If applicable, add the following below this CDDL HEADER, with the
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * fields enclosed by brackets "[]" replaced with your own identifying
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * information: Portions Copyright [yyyy] [name of copyright owner]
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * CDDL HEADER END
f1e9465bc27e0b59eff81249c9c2e3fd268727a6Sowmini Varadhan * Copyright 1995 Sun Microsystems, Inc. All rights reserved.
f1e9465bc27e0b59eff81249c9c2e3fd268727a6Sowmini Varadhan * Use is subject to license terms.
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * Included files
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * This file deals with "Dependency Variables".
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * The "-V var" command line option is used to indicate
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * that var is a dependency variable. Used in conjunction with
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * the -P option the user is asking if the named variables affect
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * the dependencies of the given target.
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail Boolean cmdline; /* Macro defined on the cmdline? */
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * Add a name to the list.
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbaildepvar_add_to_list(Name name, Boolean cmdline)
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * The macro `name' has been used in either the left-hand or
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * right-hand side of a dependency. See if it is in the
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * list. Two things are looked for. Names given as args
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * to the -V list are checked so as to set the same/differ
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * output for the -P option. Names given as macro=value
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * command-line args are checked and, if found, an NSE
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * warning is produced.
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail for (dv = depvar_list; dv != NULL; dv = dv->next) {
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * Print the results. If any of the Dependency Variables
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * affected the dependencies then the dependencies potentially
6e91bba0d6c6bdabbba62cefae583715a4a58e2aGirish Moodalbail * differ because of these variables.