version 1.85, 2007/09/23 09:44:39 |
version 1.86, 2007/10/24 13:19:24 |
|
|
static LIST varstoprint; /* list of variables to print */ |
static LIST varstoprint; /* list of variables to print */ |
int maxJobs; /* -j argument */ |
int maxJobs; /* -j argument */ |
bool compatMake; /* -B argument */ |
bool compatMake; /* -B argument */ |
|
static bool forceJobs = false; |
int debug; /* -d flag */ |
int debug; /* -d flag */ |
bool noExecute; /* -n flag */ |
bool noExecute; /* -n flag */ |
bool keepgoing; /* -k flag */ |
bool keepgoing; /* -k flag */ |
|
|
MainParseArgs(int argc, char **argv) |
MainParseArgs(int argc, char **argv) |
{ |
{ |
int c, optend; |
int c, optend; |
int forceJobs = 0; |
|
|
|
#define OPTFLAGS "BD:I:PSV:d:ef:ij:km:nqrst" |
#define OPTFLAGS "BD:I:PSV:d:ef:ij:km:nqrst" |
#define OPTLETTERS "BPSiknqrst" |
#define OPTLETTERS "BPSiknqrst" |
|
|
} |
} |
} |
} |
|
|
/* |
|
* Be compatible if user did not specify -j and did not explicitly |
|
* turn compatibility on |
|
*/ |
|
if (!compatMake && !forceJobs) |
|
compatMake = true; |
|
} |
} |
|
|
/*- |
/*- |
|
|
Main_ParseArgLine(getenv("MAKEFLAGS")); |
Main_ParseArgLine(getenv("MAKEFLAGS")); |
|
|
MainParseArgs(argc, argv); |
MainParseArgs(argc, argv); |
|
|
|
/* |
|
* Be compatible if user did not specify -j and did not explicitly |
|
* turn compatibility on |
|
*/ |
|
if (!compatMake && !forceJobs) |
|
compatMake = true; |
|
|
/* And set up everything for sub-makes */ |
/* And set up everything for sub-makes */ |
Var_AddCmdline(MAKEFLAGS); |
Var_AddCmdline(MAKEFLAGS); |