change flag -xs to -i, -xm to -m

This commit is contained in:
ceriel 1990-06-06 16:01:03 +00:00
parent 280d7a79be
commit 27c1b37c21
3 changed files with 8 additions and 4 deletions

View file

@ -49,10 +49,10 @@ If \fIfile\fP is given, generate preprocessor output on standard output,
and generate the list of makefile dependencies on file \fIfile\fP. and generate the list of makefile dependencies on file \fIfile\fP.
.IP -\fBA\fR[\fIfile\fR] .IP -\fBA\fR[\fIfile\fR]
identical to the -d option. identical to the -d option.
.IP -\fBxs\fR .IP -\fBi\fR
when generating makefile dependencies, do not include files from when generating makefile dependencies, do not include files from
/usr/include. /usr/include.
.IP -\fBxm\fR .IP -\fBm\fR
when generating makefile dependencies, generate them in the following format: when generating makefile dependencies, generate them in the following format:
.RS .RS
.IP "file.o: file1.h" .IP "file.o: file1.h"

View file

@ -140,7 +140,7 @@ add_dependency(s)
dependency(s, source) dependency(s, source)
char *s, *source; char *s, *source;
{ {
if (options['s'] && !strncmp(s, "/usr/include/", 13)) { if (options['i'] && !strncmp(s, "/usr/include/", 13)) {
return; return;
} }
if (options['m'] && source) { if (options['m'] && source) {

View file

@ -28,7 +28,6 @@ do_option(text)
{ {
switch(*text++) { switch(*text++) {
case '-': case '-':
case 'x':
options[*text] = 1; options[*text] = 1;
break; break;
case 'u': case 'u':
@ -54,6 +53,11 @@ do_option(text)
do_preprocess = 0; do_preprocess = 0;
} }
break; break;
case 'm':
case 'i':
options[*(text-1)] = 1;
break;
case 'D' : /* -Dname : predefine name */ case 'D' : /* -Dname : predefine name */
{ {
register char *cp = text, *name, *mactext; register char *cp = text, *name, *mactext;