Print this page
make: unifdef for MAKETOOL and DISTRIBUTED (undefined)
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/make/bin/globals.cc
+++ new/usr/src/cmd/make/bin/globals.cc
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 25
26 26 /*
27 27 * globals.cc
28 28 *
29 29 * This declares all global variables
30 30 */
31 31
32 32 /*
33 33 * Included files
34 34 */
35 35 #include <nl_types.h>
36 36 #include <mk/defs.h>
37 37 #include <sys/stat.h>
38 38
39 39 /*
40 40 * Defined macros
41 41 */
42 42
43 43 /*
44 44 * typedefs & structs
45 45 */
46 46
47 47 /*
48 48 * Global variables used by make only
49 49 */
50 50 FILE *dependency_report_file;
51 51
52 52 /*
↓ open down ↓ |
52 lines elided |
↑ open up ↑ |
53 53 * Global variables used by make
54 54 */
55 55 Boolean allrules_read=false;
56 56 Name posix_name;
57 57 Name svr4_name;
58 58 Boolean sdot_target; /* used to identify s.m(/M)akefile */
59 59 Boolean all_parallel; /* TEAMWARE_MAKE_CMN */
60 60 Boolean assign_done;
61 61 int foo;
62 62 Boolean build_failed_seen;
63 -#ifdef DISTRIBUTED
64 - Boolean building_serial;
65 -#endif
66 63 Name built_last_make_run;
67 64 Name c_at;
68 -#ifdef DISTRIBUTED
69 - Boolean called_make = false;
70 -#endif
71 65 Boolean cleanup;
72 66 Boolean close_report;
73 67 Boolean command_changed;
74 68 Boolean commands_done;
75 69 Chain conditional_targets;
76 70 Name conditionals;
77 71 Boolean continue_after_error; /* `-k' */
78 72 Property current_line;
79 73 Name current_make_version;
80 74 Name current_target;
81 75 short debug_level;
82 76 Cmd_line default_rule;
83 77 Name default_rule_name;
84 78 Name default_target_to_build;
85 79 Name dmake_group;
86 80 Name dmake_max_jobs;
87 81 Name dmake_mode;
88 82 DMake_mode dmake_mode_type;
89 83 Name dmake_output_mode;
90 84 DMake_output_mode output_mode = txt1_mode;
91 85 Name dmake_odir;
92 86 Name dmake_rcfile;
93 87 Name done;
94 88 Name dot;
95 89 Name dot_keep_state;
96 90 Name dot_keep_state_file;
97 91 Name empty_name;
98 92 Boolean fatal_in_progress;
99 93 int file_number;
100 94 #if 0
101 95 Boolean filter_stderr; /* `-X' */
102 96 #endif
103 97 Name force;
104 98 Name ignore_name;
105 99 Boolean ignore_errors; /* `-i' */
106 100 Boolean ignore_errors_all; /* `-i' */
107 101 Name init;
108 102 int job_msg_id;
109 103 Boolean keep_state;
110 104 Name make_state;
111 105 #ifdef TEAMWARE_MAKE_CMN
112 106 timestruc_t make_state_before;
113 107 #endif
114 108 Dependency makefiles_used;
115 109 Name makeflags;
116 110 // Boolean make_state_locked; // Moved to lib/mksh
117 111 Name make_version;
118 112 char mbs_buffer2[(MAXPATHLEN * MB_LEN_MAX)];
119 113 char *mbs_ptr;
120 114 char *mbs_ptr2;
121 115 int mtool_msgs_fd;
122 116 Boolean depinfo_already_read = false;
123 117 Boolean no_action_was_taken = true; /* true if we've not **
124 118 ** run any command */
125 119
126 120 Boolean no_parallel = false; /* TEAMWARE_MAKE_CMN */
127 121 Name no_parallel_name;
128 122 Name not_auto;
129 123 Boolean only_parallel; /* TEAMWARE_MAKE_CMN */
130 124 Boolean parallel; /* TEAMWARE_MAKE_CMN */
131 125 Name parallel_name;
132 126 Name localhost_name;
133 127 int parallel_process_cnt;
134 128 Percent percent_list;
135 129 Dyntarget dyntarget_list;
136 130 Name plus;
137 131 Name pmake_machinesfile;
138 132 Name precious;
139 133 Name primary_makefile;
140 134 Boolean quest; /* `-q' */
141 135 short read_trace_level;
142 136 Boolean reading_dependencies = false;
143 137 Name recursive_name;
144 138 int recursion_level;
145 139 short report_dependencies_level = 0; /* -P */
146 140 Boolean report_pwd;
147 141 Boolean rewrite_statefile;
148 142 Running running_list;
149 143 char *sccs_dir_path;
150 144 Name sccs_get_name;
151 145 Name sccs_get_posix_name;
152 146 Cmd_line sccs_get_rule;
153 147 Cmd_line sccs_get_org_rule;
154 148 Cmd_line sccs_get_posix_rule;
155 149 Name get_name;
156 150 Cmd_line get_rule;
157 151 Name get_posix_name;
158 152 Cmd_line get_posix_rule;
159 153 Boolean send_mtool_msgs; /* `-K' */
160 154 Boolean all_precious;
161 155 Boolean silent_all; /* `-s' */
162 156 Boolean report_cwd; /* `-w' */
163 157 Boolean silent; /* `-s' */
164 158 Name silent_name;
165 159 char *stderr_file = NULL;
166 160 char *stdout_file = NULL;
167 161 Boolean stdout_stderr_same;
168 162 Dependency suffixes;
169 163 Name suffixes_name;
170 164 Name sunpro_dependencies;
171 165 Boolean target_variants;
172 166 const char *tmpdir = NOCATGETS("/tmp");
173 167 const char *temp_file_directory = NOCATGETS(".");
174 168 Name temp_file_name;
175 169 short temp_file_number;
176 170 time_t timing_start;
177 171 wchar_t *top_level_target;
178 172 Boolean touch; /* `-t' */
179 173 Boolean trace_reader; /* `-D' */
180 174 Boolean build_unconditional; /* `-u' */
181 175 pathpt vroot_path = VROOT_DEFAULT;
182 176 Name wait_name;
183 177 wchar_t wcs_buffer2[MAXPATHLEN];
184 178 wchar_t *wcs_ptr;
185 179 wchar_t *wcs_ptr2;
186 180 nl_catd catd;
187 181 long int hostid;
188 182
189 183 /*
190 184 * File table of contents
191 185 */
192 186
↓ open down ↓ |
112 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX