Added dependency generator

This commit is contained in:
ceriel
1990-06-06 14:42:53 +00:00
parent 8d1bb88fc9
commit bf66a6ade1
6 changed files with 120 additions and 2 deletions

View File

@@ -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;