Ignore:
Timestamp:
May 23, 2007, 5:13:11 AM (18 years ago)
Author:
bird
Message:

Load /home/bird/src/Gnu/make/2007-05-23 into vendor/gnumake/current.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/default.c

    r501 r900  
    4242.w .ch .cweb .web .com .sh .elc .el";
    4343#elif defined(__EMX__)
    44   = ".out .a .ln .o .c .cc .C .cpp .p .f .F .r .y .l .s .S \
     44  = ".out .a .ln .o .c .cc .C .cpp .p .f .F .m .r .y .l .ym .yl .s .S \
    4545.mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo \
    4646.w .ch .web .sh .elc .el .obj .exe .dll .lib";
    4747#else
    48   = ".out .a .ln .o .c .cc .C .cpp .p .f .F .r .y .l .s .S \
     48  = ".out .a .ln .o .c .cc .C .cpp .p .f .F .m .r .y .l .ym .yl .s .S \
    4949.mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo \
    5050.w .ch .web .sh .elc .el";
     
    193193    ".f",
    194194    "$(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@",
     195    ".m",
     196    "$(LINK.m) $^ $(LOADLIBES) $(LDLIBS) -o $@",
    195197    ".p",
    196198    "$(LINK.p) $^ $(LOADLIBES) $(LDLIBS) -o $@",
     
    222224    ".f.o",
    223225    "$(COMPILE.f) $(OUTPUT_OPTION) $<",
     226    ".m.o",
     227    "$(COMPILE.m) $(OUTPUT_OPTION) $<",
    224228    ".p.o",
    225229    "$(COMPILE.p) $(OUTPUT_OPTION) $<",
     
    250254    ".l.c",
    251255    "@$(RM) $@ \n $(LEX.l) $< > $@",
     256    ".ym.m",
     257    "$(YACC.m) $< \n mv -f y.tab.c $@",
     258    ".lm.m",
     259    "@$(RM) $@ \n $(LEX.m) $< > $@",
    252260
    253261    ".F.f",
     
    256264    "$(PREPROCESS.r) $(OUTPUT_OPTION) $<",
    257265
    258     /* This might actually make lex.yy.c if there's no %R%
    259        directive in $*.l, but in that case why were you
    260        trying to make $*.r anyway?  */
     266    /* This might actually make lex.yy.c if there's no %R% directive in $*.l,
     267       but in that case why were you trying to make $*.r anyway?  */
    261268    ".l.r",
    262269    "$(LEX.l) $< > $@ \n mv -f lex.yy.r $@",
     
    303310  };
    304311
    305 static char *default_variables[] =
     312static const char *default_variables[] =
    306313  {
    307314#ifdef VMS
     
    399406    "CXX", "gcc",
    400407# endif /* __MSDOS__ */
     408    "OBJC", "gcc",
    401409#else
    402410    "CC", "cc",
    403411    "CXX", "g++",
     412    "OBJC", "cc",
    404413#endif
    405414
     
    469478    "COMPILE.c", "$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",
    470479    "LINK.c", "$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
     480    "COMPILE.m", "$(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",
     481    "LINK.m", "$(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
    471482    "COMPILE.cc", "$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",
    472483    "COMPILE.C", "$(COMPILE.cc)",
     
    477488    "YACC.y", "$(YACC) $(YFLAGS)",
    478489    "LEX.l", "$(LEX) $(LFLAGS) -t",
     490    "YACC.m", "$(YACC) $(YFLAGS)",
     491    "LEX.m", "$(LEX) $(LFLAGS) -t",
    479492    "COMPILE.f", "$(FC) $(FFLAGS) $(TARGET_ARCH) -c",
    480493    "LINK.f", "$(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
     
    524537set_default_suffixes (void)
    525538{
    526   suffix_file = enter_file (".SUFFIXES");
     539  suffix_file = enter_file (strcache_add (".SUFFIXES"));
    527540
    528541  if (no_builtin_rules_flag)
    529     (void) define_variable ("SUFFIXES", 8, "", o_default, 0);
     542    define_variable ("SUFFIXES", 8, "", o_default, 0);
    530543  else
    531544    {
     
    534547        multi_glob (parse_file_seq (&p, '\0', sizeof (struct dep), 1),
    535548                    sizeof (struct dep));
    536       (void) define_variable ("SUFFIXES", 8, default_suffixes, o_default, 0);
     549      define_variable ("SUFFIXES", 8, default_suffixes, o_default, 0);
    537550    }
    538551}
     
    540553/* Enter the default suffix rules as file rules.  This used to be done in
    541554   install_default_implicit_rules, but that loses because we want the
    542    suffix rules installed before reading makefiles, and thee pattern rules
     555   suffix rules installed before reading makefiles, and the pattern rules
    543556   installed after.  */
    544557
     
    546559install_default_suffix_rules (void)
    547560{
    548   register char **s;
     561  char **s;
    549562
    550563  if (no_builtin_rules_flag)
    551564    return;
    552565
    553  for (s = default_suffix_rules; *s != 0; s += 2)
     566  for (s = default_suffix_rules; *s != 0; s += 2)
    554567    {
    555       register struct file *f = enter_file (s[0]);
     568      struct file *f = enter_file (strcache_add (s[0]));
    556569      /* Don't clobber cmds given in a makefile if there were any.  */
    557570      if (f->cmds == 0)
    558571        {
    559           f->cmds = (struct commands *) xmalloc (sizeof (struct commands));
     572          f->cmds = xmalloc (sizeof (struct commands));
    560573          f->cmds->fileinfo.filenm = 0;
    561574          f->cmds->commands = s[1];
     
    571584install_default_implicit_rules (void)
    572585{
    573   register struct pspec *p;
     586  struct pspec *p;
    574587
    575588  if (no_builtin_rules_flag)
     
    586599define_default_variables (void)
    587600{
    588   register char **s;
     601  const char **s;
    589602
    590603  if (no_builtin_variables_flag)
     
    592605
    593606  for (s = default_variables; *s != 0; s += 2)
    594     (void) define_variable (s[0], strlen (s[0]), s[1], o_default, 1);
     607    define_variable (s[0], strlen (s[0]), s[1], o_default, 1);
    595608}
Note: See TracChangeset for help on using the changeset viewer.