Added dependency generator
This commit is contained in:
@@ -27,6 +27,9 @@ extern char **inctable;
|
||||
extern int inc_pos;
|
||||
extern int inc_max;
|
||||
extern int inc_total;
|
||||
int do_dependencies = 0;
|
||||
char *dep_file = 0;
|
||||
|
||||
#endif NOPP
|
||||
|
||||
char options[128]; /* one for every char */
|
||||
@@ -85,6 +88,21 @@ next_option: /* to allow combined one-char options */
|
||||
goto next_option;
|
||||
#endif LINT
|
||||
|
||||
#ifndef LINT
|
||||
#ifndef NOPP
|
||||
case 'A' : /* Amake dependency generation */
|
||||
do_dependencies = 1;
|
||||
if (*text) {
|
||||
dep_file = text;
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
case 'm':
|
||||
options[opt] = 1;
|
||||
break;
|
||||
#endif NOPP
|
||||
#endif LINT
|
||||
|
||||
case 'R': /* strict version */
|
||||
#ifndef NOROPTION
|
||||
options[opt] = 1;
|
||||
|
||||
Reference in New Issue
Block a user