4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
29 * This declares all global variables
48 * Global variables used by make only
50 FILE *dependency_report_file
;
53 * Global variables used by make
55 Boolean allrules_read
=false;
58 Boolean sdot_target
; /* used to identify s.m(/M)akefile */
62 Boolean build_failed_seen
;
63 Name built_last_make_run
;
67 Boolean command_changed
;
68 Boolean commands_done
;
69 Chain conditional_targets
;
71 Boolean continue_after_error
; /* `-k' */
72 Property current_line
;
73 Name current_make_version
;
76 Cmd_line default_rule
;
77 Name default_rule_name
;
78 Name default_target_to_build
;
82 DMake_mode dmake_mode_type
;
83 Name dmake_output_mode
;
84 DMake_output_mode output_mode
= txt1_mode
;
90 Name dot_keep_state_file
;
92 Boolean fatal_in_progress
;
95 Boolean filter_stderr
; /* `-X' */
99 Boolean ignore_errors
; /* `-i' */
100 Boolean ignore_errors_all
; /* `-i' */
105 timestruc_t make_state_before
;
106 Dependency makefiles_used
;
108 // Boolean make_state_locked; // Moved to lib/mksh
110 char mbs_buffer2
[(MAXPATHLEN
* MB_LEN_MAX
)];
113 Boolean depinfo_already_read
= false;
114 Boolean no_action_was_taken
= true; /* true if we've not **
115 ** run any command */
117 Boolean no_parallel
= false;
118 Name no_parallel_name
;
120 Boolean only_parallel
;
124 int parallel_process_cnt
;
125 Percent percent_list
;
126 Dyntarget dyntarget_list
;
128 Name pmake_machinesfile
;
130 Name primary_makefile
;
131 Boolean quest
; /* `-q' */
132 short read_trace_level
;
133 Boolean reading_dependencies
= false;
136 short report_dependencies_level
= 0; /* -P */
138 Boolean rewrite_statefile
;
139 Running running_list
;
142 Name sccs_get_posix_name
;
143 Cmd_line sccs_get_rule
;
144 Cmd_line sccs_get_org_rule
;
145 Cmd_line sccs_get_posix_rule
;
149 Cmd_line get_posix_rule
;
150 Boolean all_precious
;
151 Boolean silent_all
; /* `-s' */
152 Boolean report_cwd
; /* `-w' */
153 Boolean silent
; /* `-s' */
155 char *stderr_file
= NULL
;
156 char *stdout_file
= NULL
;
157 Boolean stdout_stderr_same
;
160 Name sunpro_dependencies
;
161 Boolean target_variants
;
162 const char *tmpdir
= "/tmp";
163 const char *temp_file_directory
= ".";
165 short temp_file_number
;
167 wchar_t *top_level_target
;
168 Boolean touch
; /* `-t' */
169 Boolean trace_reader
; /* `-D' */
170 Boolean build_unconditional
; /* `-u' */
171 pathpt vroot_path
= VROOT_DEFAULT
;
173 wchar_t wcs_buffer2
[MAXPATHLEN
];
179 * File table of contents