version 1.82, 2007/09/17 12:01:17 |
version 1.83, 2007/09/17 12:42:09 |
|
|
# endif |
# endif |
#endif |
#endif |
|
|
#ifndef DEFMAXLOCAL |
|
#define DEFMAXLOCAL DEFMAXJOBS |
|
#endif /* DEFMAXLOCAL */ |
|
|
|
#define MAKEFLAGS ".MAKEFLAGS" |
#define MAKEFLAGS ".MAKEFLAGS" |
|
|
static LIST to_create; /* Targets to be made */ |
static LIST to_create; /* Targets to be made */ |
Lst create = &to_create; |
Lst create = &to_create; |
GNode *DEFAULT; /* .DEFAULT node */ |
|
bool allPrecious; /* .PRECIOUS given on line by itself */ |
bool allPrecious; /* .PRECIOUS given on line by itself */ |
|
|
static bool noBuiltins; /* -r flag */ |
static bool noBuiltins; /* -r flag */ |
static LIST makefiles; /* ordered list of makefiles to read */ |
static LIST makefiles; /* ordered list of makefiles to read */ |
static LIST varstoprint; /* list of variables to print */ |
static LIST varstoprint; /* list of variables to print */ |
int maxJobs; /* -j argument */ |
int maxJobs; /* -j argument */ |
static int maxLocal; /* -L argument */ |
|
bool compatMake; /* -B argument */ |
bool compatMake; /* -B argument */ |
int debug; /* -d flag */ |
int debug; /* -d flag */ |
bool noExecute; /* -n flag */ |
bool noExecute; /* -n flag */ |
|
|
optarg); |
optarg); |
usage(); |
usage(); |
} |
} |
maxLocal = maxJobs; |
|
record_option(c, optarg); |
record_option(c, optarg); |
break; |
break; |
} |
} |
|
|
touchFlag = false; /* Actually update targets */ |
touchFlag = false; /* Actually update targets */ |
debug = 0; /* No debug verbosity, please. */ |
debug = 0; /* No debug verbosity, please. */ |
|
|
maxLocal = DEFMAXLOCAL; /* Set default local max concurrency */ |
maxJobs = DEFMAXJOBS; /* Set default local max concurrency */ |
maxJobs = maxLocal; |
|
compatMake = false; /* No compat mode */ |
compatMake = false; /* No compat mode */ |
|
|
|
|
|
|
Var_AddCmdline(MAKEFLAGS); |
Var_AddCmdline(MAKEFLAGS); |
|
|
|
|
DEFAULT = NULL; |
|
|
|
/* |
/* |
* Set up the .TARGETS variable to contain the list of targets to be |
* Set up the .TARGETS variable to contain the list of targets to be |
* created. If none specified, make the variable empty -- the parser |
* created. If none specified, make the variable empty -- the parser |
|
|
|
|
setup_VPATH(); |
setup_VPATH(); |
|
|
/* Now that all search paths have been read for suffixes et al, it's |
process_suffixes_after_makefile_is_read(); |
* time to add the default search path to their lists... */ |
|
Suff_DoPaths(); |
|
|
|
/* Print the initial graph, if the user requested it. */ |
/* Print the initial graph, if the user requested it. */ |
if (DEBUG(GRAPH1)) |
if (DEBUG(GRAPH1)) |
|
|
* (to prevent the .BEGIN from being executed should |
* (to prevent the .BEGIN from being executed should |
* it exist). */ |
* it exist). */ |
if (!queryFlag) { |
if (!queryFlag) { |
if (maxLocal == -1) |
Job_Init(maxJobs); |
maxLocal = maxJobs; |
|
Job_Init(maxJobs, maxLocal); |
|
} |
} |
|
|
/* Traverse the graph, checking on all the targets. */ |
/* Traverse the graph, checking on all the targets. */ |