Formerly default.c.~15~

This commit is contained in:
Roland McGrath 1992-07-30 19:53:39 +00:00
parent 39e2dbb7b3
commit 5329b592b7

View file

@ -48,11 +48,11 @@ static struct pspec default_pattern_rules[] =
static struct pspec default_terminal_rules[] = static struct pspec default_terminal_rules[] =
{ {
/* RCS. These commands are not echoed because RCS makes enough noise. */ /* RCS. */
"%", "%,v", "%", "%,v",
"@test -f $@ || $(CO) $(COFLAGS) $< $@", "$(CHECKOUT,v)",
"%", "RCS/%,v", "%", "RCS/%,v",
"@test -f $@ || $(CO) $(COFLAGS) $< $@", "$(CHECKOUT,v)",
/* SCCS. */ /* SCCS. */
"%", "s.%", "%", "s.%",
@ -60,7 +60,7 @@ static struct pspec default_terminal_rules[] =
"%", "SCCS/s.%", "%", "SCCS/s.%",
"$(GET) $(GFLAGS) $<", "$(GET) $(GFLAGS) $<",
0, 0, 0 0, 0, 0,
}; };
static char *default_suffix_rules[] = static char *default_suffix_rules[] =
@ -128,8 +128,7 @@ static char *default_suffix_rules[] =
".y.ln", ".y.ln",
"$(YACC.y) $< \n $(LINT.c) -C$* y.tab.c \n $(RM) y.tab.c", "$(YACC.y) $< \n $(LINT.c) -C$* y.tab.c \n $(RM) y.tab.c",
".l.ln", ".l.ln",
"@$(RM) $*.c \n $(LEX.l) $< > $*.c \n\ "@$(RM) $*.c\n $(LEX.l) $< > $*.c\n$(LINT.c) -i $*.c -o $@\n $(RM) $*.c",
$(LINT.c) -i $*.c -o $@ \n $(RM) $*.c",
".y.c", ".y.c",
"$(YACC.y) $< \n mv -f y.tab.c $@", "$(YACC.y) $< \n mv -f y.tab.c $@",
@ -177,8 +176,8 @@ $(LINT.c) -i $*.c -o $@ \n $(RM) $*.c",
".web.tex", ".web.tex",
"$(WEAVE) $<", "$(WEAVE) $<",
0} 0, 0,
; };
static char *default_variables[] = static char *default_variables[] =
{ {
@ -187,6 +186,13 @@ static char *default_variables[] =
"AS", "as", "AS", "as",
"CC", "cc", "CC", "cc",
"C++", "g++", "C++", "g++",
/* This expands to $(CO) $(COFLAGS) $< $@ if $@ does not exist,
and to the empty string if $@ does exist. */
"CHECKOUT,v",
"$(patsubst $@-noexist,$(CO) $(COFLAGS) $< $@,\
$(filter-out $@,$(firstword $(wildcard $@) $@-noexist)))",
"CO", "co", "CO", "co",
"CPP", "$(CC) -E", "CPP", "$(CC) -E",
#ifdef CRAY #ifdef CRAY