[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/main.c between version 1.84 and 1.85

version 1.84, 2007/09/18 07:45:25 version 1.85, 2007/09/23 09:44:39
Line 75 
Line 75 
 # endif  # endif
 #endif  #endif
   
 #ifndef DEFMAXLOCAL  
 #define DEFMAXLOCAL DEFMAXJOBS  
 #endif  /* DEFMAXLOCAL */  
   
 #define MAKEFLAGS       ".MAKEFLAGS"  #define MAKEFLAGS       ".MAKEFLAGS"
   
Line 89 
Line 86 
 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 */
Line 300 
Line 296 
                                         optarg);                                          optarg);
                                 usage();                                  usage();
                         }                          }
                         maxLocal = maxJobs;  
                         record_option(c, optarg);                          record_option(c, optarg);
                         break;                          break;
                 }                  }
Line 676 
Line 671 
         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 */
   
   
Line 786 
Line 780 
                          * 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);

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85