version 1.84, 2007/09/18 07:45:25 |
version 1.85, 2007/09/23 09:44:39 |
|
|
# endif |
# endif |
#endif |
#endif |
|
|
#ifndef DEFMAXLOCAL |
|
#define DEFMAXLOCAL DEFMAXJOBS |
|
#endif /* DEFMAXLOCAL */ |
|
|
|
#define MAKEFLAGS ".MAKEFLAGS" |
#define MAKEFLAGS ".MAKEFLAGS" |
|
|
|
|
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; |
maxJobs = maxLocal; |
|
compatMake = false; /* No compat mode */ |
compatMake = false; /* No compat mode */ |
|
|
|
|
|
|
* read. This is done only if the -q flag wasn't given |
* read. This is done only if the -q flag wasn't given |
* (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. */ |
outOfDate = Make_Run(&targs); |
outOfDate = Make_Run(&targs); |