Some updates for automake 1.7 and prep for releasing 3.80.
[make.git] / default.c
blob5d981b987d2c499fe9c5e64930b19db54fb0918c
1 /* Data base of default implicit rules for GNU Make.
2 Copyright (C) 1988,89,90,91,92,93,94,95,96 Free Software Foundation, Inc.
3 This file is part of GNU Make.
5 GNU Make is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 GNU Make is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNU Make; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 #include "make.h"
21 #include "rule.h"
22 #include "dep.h"
23 #include "filedef.h"
24 #include "job.h"
25 #include "commands.h"
26 #include "variable.h"
28 /* Define GCC_IS_NATIVE if gcc is the native development environment on
29 your system (gcc/bison/flex vs cc/yacc/lex). */
30 #ifdef __MSDOS__
31 #define GCC_IS_NATIVE
32 #endif
35 /* This is the default list of suffixes for suffix rules.
36 `.s' must come last, so that a `.o' file will be made from
37 a `.c' or `.p' or ... file rather than from a .s file. */
39 static char default_suffixes[]
40 #ifdef VMS
41 = ".exe .olb .ln .obj .c .cxx .cc .pas .p .for .f .r .y .l .mar \
42 .s .ss .i .ii .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo \
43 .w .ch .cweb .web .com .sh .elc .el";
44 #else
45 = ".out .a .ln .o .c .cc .C .cpp .p .f .F .r .y .l .s .S \
46 .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo \
47 .w .ch .web .sh .elc .el";
48 #endif
50 static struct pspec default_pattern_rules[] =
52 { "(%)", "%",
53 "$(AR) $(ARFLAGS) $@ $<" },
55 /* The X.out rules are only in BSD's default set because
56 BSD Make has no null-suffix rules, so `foo.out' and
57 `foo' are the same thing. */
58 #ifdef VMS
59 { "%.exe", "%",
60 "copy $< $@" },
61 #else
62 { "%.out", "%",
63 "@rm -f $@ \n cp $< $@" },
64 #endif
65 /* Syntax is "ctangle foo.w foo.ch foo.c". */
66 { "%.c", "%.w %.ch",
67 "$(CTANGLE) $^ $@" },
68 { "%.tex", "%.w %.ch",
69 "$(CWEAVE) $^ $@" },
71 { 0, 0, 0 }
74 static struct pspec default_terminal_rules[] =
76 #ifdef VMS
77 /* RCS. */
78 { "%", "%$$5lv", /* Multinet style */
79 "if f$$search($@) .nes. \"\" then +$(CHECKOUT,v)" },
80 { "%", "[.$$rcs]%$$5lv", /* Multinet style */
81 "if f$$search($@) .nes. \"\" then +$(CHECKOUT,v)" },
82 { "%", "%_v", /* Normal style */
83 "if f$$search($@) .nes. \"\" then +$(CHECKOUT,v)" },
84 { "%", "[.rcs]%_v", /* Normal style */
85 "if f$$search($@) .nes. \"\" then +$(CHECKOUT,v)" },
87 /* SCCS. */
88 /* ain't no SCCS on vms */
89 #else
90 /* RCS. */
91 { "%", "%,v",
92 "$(CHECKOUT,v)" },
93 { "%", "RCS/%,v",
94 "$(CHECKOUT,v)" },
95 { "%", "RCS/%",
96 "$(CHECKOUT,v)" },
98 /* SCCS. */
99 { "%", "s.%",
100 "$(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $<" },
101 { "%", "SCCS/s.%",
102 "$(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $<" },
103 #endif /* !VMS */
104 { 0, 0, 0 }
107 static char *default_suffix_rules[] =
109 #ifdef VMS
110 ".obj.exe",
111 "$(LINK.obj) $^ $(LOADLIBES) $(LDLIBS) $(CRT0) /exe=$@",
112 ".mar.exe",
113 "$(COMPILE.mar) $^ \n $(LINK.obj) $(subst .mar,.obj,$^) $(LOADLIBES) $(LDLIBS) $(CRT0) /exe=$@",
114 ".s.exe",
115 "$(COMPILE.s) $^ \n $(LINK.obj) $(subst .s,.obj,$^) $(LOADLIBES) $(LDLIBS) $(CRT0) /exe=$@",
116 ".c.exe",
117 "$(COMPILE.c) $^ \n $(LINK.obj) $(subst .c,.obj,$^) $(LOADLIBES) $(LDLIBS) $(CRT0) /exe=$@",
118 ".cc.exe",
119 #ifdef GCC_IS_NATIVE
120 "$(COMPILE.cc) $^ \n $(LINK.obj) $(CXXSTARTUP),sys$$disk:[]$(subst .cc,.obj,$^) $(LOADLIBES) $(LXLIBS) $(LDLIBS) $(CXXRT0) /exe=$@",
121 #else
122 "$(COMPILE.cc) $^ \n $(CXXLINK.obj) $(subst .cc,.obj,$^) $(LOADLIBES) $(LXLIBS) $(LDLIBS) $(CXXRT0) /exe=$@",
123 ".cxx.exe",
124 "$(COMPILE.cxx) $^ \n $(CXXLINK.obj) $(subst .cxx,.obj,$^) $(LOADLIBES) $(LXLIBS) $(LDLIBS) $(CXXRT0) /exe=$@",
125 #endif
126 ".for.exe",
127 "$(COMPILE.for) $^ \n $(LINK.obj) $(subst .for,.obj,$^) $(LOADLIBES) $(LDLIBS) /exe=$@",
128 ".pas.exe",
129 "$(COMPILE.pas) $^ \n $(LINK.obj) $(subst .pas,.obj,$^) $(LOADLIBES) $(LDLIBS) /exe=$@",
131 ".com",
132 "copy $< >$@",
134 ".mar.obj",
135 "$(COMPILE.mar) /obj=$@ $<",
136 ".s.obj",
137 "$(COMPILE.s) /obj=$@ $<",
138 ".ss.obj",
139 "$(COMPILE.s) /obj=$@ $<",
140 ".c.i",
141 "$(COMPILE.c)/prep /list=$@ $<",
142 ".c.s",
143 "$(COMPILE.c)/noobj/machine /list=$@ $<",
144 ".i.s",
145 "$(COMPILE.c)/noprep/noobj/machine /list=$@ $<",
146 ".c.obj",
147 "$(COMPILE.c) /obj=$@ $<",
148 ".cc.ii",
149 "$(COMPILE.cc)/prep /list=$@ $<",
150 ".cc.ss",
151 "$(COMPILE.cc)/noobj/machine /list=$@ $<",
152 ".ii.ss",
153 "$(COMPILE.cc)/noprep/noobj/machine /list=$@ $<",
154 ".cc.obj",
155 "$(COMPILE.cc) /obj=$@ $<",
156 ".for.obj",
157 "$(COMPILE.for) /obj=$@ $<",
158 ".pas.obj",
159 "$(COMPILE.pas) /obj=$@ $<",
161 ".y.c",
162 "$(YACC.y) $< \n rename y_tab.c $@",
163 ".l.c",
164 "$(LEX.l) $< \n rename lexyy.c $@",
166 ".texinfo.info",
167 "$(MAKEINFO) $<",
169 ".tex.dvi",
170 "$(TEX) $<",
172 #else /* ! VMS */
174 ".o",
175 "$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@",
176 ".s",
177 "$(LINK.s) $^ $(LOADLIBES) $(LDLIBS) -o $@",
178 ".S",
179 "$(LINK.S) $^ $(LOADLIBES) $(LDLIBS) -o $@",
180 ".c",
181 "$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@",
182 ".cc",
183 "$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@",
184 ".C",
185 "$(LINK.C) $^ $(LOADLIBES) $(LDLIBS) -o $@",
186 ".cpp",
187 "$(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@",
188 ".f",
189 "$(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@",
190 ".p",
191 "$(LINK.p) $^ $(LOADLIBES) $(LDLIBS) -o $@",
192 ".F",
193 "$(LINK.F) $^ $(LOADLIBES) $(LDLIBS) -o $@",
194 ".r",
195 "$(LINK.r) $^ $(LOADLIBES) $(LDLIBS) -o $@",
196 ".mod",
197 "$(COMPILE.mod) -o $@ -e $@ $^",
199 ".def.sym",
200 "$(COMPILE.def) -o $@ $<",
202 ".sh",
203 "cat $< >$@ \n chmod a+x $@",
205 ".s.o",
206 "$(COMPILE.s) -o $@ $<",
207 ".S.o",
208 "$(COMPILE.S) -o $@ $<",
209 ".c.o",
210 "$(COMPILE.c) $(OUTPUT_OPTION) $<",
211 ".cc.o",
212 "$(COMPILE.cc) $(OUTPUT_OPTION) $<",
213 ".C.o",
214 "$(COMPILE.C) $(OUTPUT_OPTION) $<",
215 ".cpp.o",
216 "$(COMPILE.cpp) $(OUTPUT_OPTION) $<",
217 ".f.o",
218 "$(COMPILE.f) $(OUTPUT_OPTION) $<",
219 ".p.o",
220 "$(COMPILE.p) $(OUTPUT_OPTION) $<",
221 ".F.o",
222 "$(COMPILE.F) $(OUTPUT_OPTION) $<",
223 ".r.o",
224 "$(COMPILE.r) $(OUTPUT_OPTION) $<",
225 ".mod.o",
226 "$(COMPILE.mod) -o $@ $<",
228 ".c.ln",
229 "$(LINT.c) -C$* $<",
230 ".y.ln",
231 #ifndef __MSDOS__
232 "$(YACC.y) $< \n $(LINT.c) -C$* y.tab.c \n $(RM) y.tab.c",
233 #else
234 "$(YACC.y) $< \n $(LINT.c) -C$* y_tab.c \n $(RM) y_tab.c",
235 #endif
236 ".l.ln",
237 "@$(RM) $*.c\n $(LEX.l) $< > $*.c\n$(LINT.c) -i $*.c -o $@\n $(RM) $*.c",
239 ".y.c",
240 #ifndef __MSDOS__
241 "$(YACC.y) $< \n mv -f y.tab.c $@",
242 #else
243 "$(YACC.y) $< \n mv -f y_tab.c $@",
244 #endif
245 ".l.c",
246 "@$(RM) $@ \n $(LEX.l) $< > $@",
248 ".F.f",
249 "$(PREPROCESS.F) $(OUTPUT_OPTION) $<",
250 ".r.f",
251 "$(PREPROCESS.r) $(OUTPUT_OPTION) $<",
253 /* This might actually make lex.yy.c if there's no %R%
254 directive in $*.l, but in that case why were you
255 trying to make $*.r anyway? */
256 ".l.r",
257 "$(LEX.l) $< > $@ \n mv -f lex.yy.r $@",
259 ".S.s",
260 "$(PREPROCESS.S) $< > $@",
262 ".texinfo.info",
263 "$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@",
265 ".texi.info",
266 "$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@",
268 ".txinfo.info",
269 "$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@",
271 ".tex.dvi",
272 "$(TEX) $<",
274 ".texinfo.dvi",
275 "$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<",
277 ".texi.dvi",
278 "$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<",
280 ".txinfo.dvi",
281 "$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<",
283 ".w.c",
284 "$(CTANGLE) $< - $@", /* The `-' says there is no `.ch' file. */
286 ".web.p",
287 "$(TANGLE) $<",
289 ".w.tex",
290 "$(CWEAVE) $< - $@", /* The `-' says there is no `.ch' file. */
292 ".web.tex",
293 "$(WEAVE) $<",
295 #endif /* !VMS */
297 0, 0,
300 static char *default_variables[] =
302 #ifdef VMS
303 #ifdef __ALPHA
304 "ARCH", "ALPHA",
305 #else
306 "ARCH", "VAX",
307 #endif
308 "AR", "library/obj",
309 "ARFLAGS", "/replace",
310 "AS", "macro",
311 "MACRO", "macro",
312 #ifdef GCC_IS_NATIVE
313 "CC", "gcc",
314 #else
315 "CC", "cc",
316 #endif
317 "CD", "builtin_cd",
318 "MAKE", "make",
319 "ECHO", "write sys$$output \"",
320 #ifdef GCC_IS_NATIVE
321 "C++", "gcc/plus",
322 "CXX", "gcc/plus",
323 #else
324 "C++", "cxx",
325 "CXX", "cxx",
326 "CXXLD", "cxxlink",
327 #endif
328 "CO", "co",
329 "CPP", "$(CC) /preprocess_only",
330 "FC", "fortran",
331 /* System V uses these, so explicit rules using them should work.
332 However, there is no way to make implicit rules use them and FC. */
333 "F77", "$(FC)",
334 "F77FLAGS", "$(FFLAGS)",
335 "LD", "link",
336 "LEX", "lex",
337 "PC", "pascal",
338 "YACC", "bison/yacc",
339 "YFLAGS", "/Define/Verbose",
340 "BISON", "bison",
341 "MAKEINFO", "makeinfo",
342 "TEX", "tex",
343 "TEXINDEX", "texindex",
345 "RM", "delete/nolog",
347 "CSTARTUP", "",
348 #ifdef GCC_IS_NATIVE
349 "CRT0", ",sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj",
350 "CXXSTARTUP", "gnu_cc_library:crtbegin.obj",
351 "CXXRT0", ",sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crtend.obj,gnu_cc_library:gxx_main.obj",
352 "LXLIBS", ",gnu_cc_library:libstdcxx.olb/lib,gnu_cc_library:libgccplus.olb/lib",
353 "LDLIBS", ",gnu_cc_library:libgcc.olb/lib",
354 #else
355 "CRT0", "",
356 "CXXSTARTUP", "",
357 "CXXRT0", "",
358 "LXLIBS", "",
359 "LDLIBS", "",
360 #endif
362 "LINK.obj", "$(LD) $(LDFLAGS)",
363 #ifndef GCC_IS_NATIVE
364 "CXXLINK.obj", "$(CXXLD) $(LDFLAGS)",
365 "COMPILE.cxx", "$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH)",
366 #endif
367 "COMPILE.c", "$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH)",
368 "COMPILE.cc", "$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH)",
369 "YACC.y", "$(YACC) $(YFLAGS)",
370 "LEX.l", "$(LEX) $(LFLAGS)",
371 "COMPILE.for", "$(FC) $(FFLAGS) $(TARGET_ARCH)",
372 "COMPILE.pas", "$(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH)",
373 "COMPILE.mar", "$(MACRO) $(MACROFLAGS)",
374 "COMPILE.s", "$(AS) $(ASFLAGS) $(TARGET_MACH)",
375 "LINT.c", "$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH)",
377 "MV", "rename/new_version",
378 "CP", "copy",
380 #else /* !VMS */
382 "AR", "ar",
383 "ARFLAGS", "rv",
384 "AS", "as",
385 #ifdef GCC_IS_NATIVE
386 "CC", "gcc",
387 # ifdef __MSDOS__
388 "CXX", "gpp", /* g++ is an invalid name on MSDOS */
389 # else
390 "CXX", "gcc",
391 # endif /* __MSDOS__ */
392 #else
393 "CC", "cc",
394 "CXX", "g++",
395 #endif
397 /* This expands to $(CO) $(COFLAGS) $< $@ if $@ does not exist,
398 and to the empty string if $@ does exist. */
399 "CHECKOUT,v", "+$(if $(wildcard $@),,$(CO) $(COFLAGS) $< $@)",
400 "CO", "co",
401 "COFLAGS", "",
403 "CPP", "$(CC) -E",
404 #ifdef CRAY
405 "CF77PPFLAGS", "-P",
406 "CF77PP", "/lib/cpp",
407 "CFT", "cft77",
408 "CF", "cf77",
409 "FC", "$(CF)",
410 #else /* Not CRAY. */
411 #ifdef _IBMR2
412 "FC", "xlf",
413 #else
414 #ifdef __convex__
415 "FC", "fc",
416 #else
417 "FC", "f77",
418 #endif /* __convex__ */
419 #endif /* _IBMR2 */
420 /* System V uses these, so explicit rules using them should work.
421 However, there is no way to make implicit rules use them and FC. */
422 "F77", "$(FC)",
423 "F77FLAGS", "$(FFLAGS)",
424 #endif /* Cray. */
425 "GET", SCCS_GET,
426 "LD", "ld",
427 #ifdef GCC_IS_NATIVE
428 "LEX", "flex",
429 #else
430 "LEX", "lex",
431 #endif
432 "LINT", "lint",
433 "M2C", "m2c",
434 #ifdef pyr
435 "PC", "pascal",
436 #else
437 #ifdef CRAY
438 "PC", "PASCAL",
439 "SEGLDR", "segldr",
440 #else
441 "PC", "pc",
442 #endif /* CRAY. */
443 #endif /* pyr. */
444 #ifdef GCC_IS_NATIVE
445 "YACC", "bison -y",
446 #else
447 "YACC", "yacc", /* Or "bison -y" */
448 #endif
449 "MAKEINFO", "makeinfo",
450 "TEX", "tex",
451 "TEXI2DVI", "texi2dvi",
452 "WEAVE", "weave",
453 "CWEAVE", "cweave",
454 "TANGLE", "tangle",
455 "CTANGLE", "ctangle",
457 "RM", "rm -f",
459 "LINK.o", "$(CC) $(LDFLAGS) $(TARGET_ARCH)",
460 "COMPILE.c", "$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",
461 "LINK.c", "$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
462 "COMPILE.cc", "$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",
463 "COMPILE.C", "$(COMPILE.cc)",
464 "COMPILE.cpp", "$(COMPILE.cc)",
465 "LINK.cc", "$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
466 "LINK.C", "$(LINK.cc)",
467 "LINK.cpp", "$(LINK.cc)",
468 "YACC.y", "$(YACC) $(YFLAGS)",
469 "LEX.l", "$(LEX) $(LFLAGS) -t",
470 "COMPILE.f", "$(FC) $(FFLAGS) $(TARGET_ARCH) -c",
471 "LINK.f", "$(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
472 "COMPILE.F", "$(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",
473 "LINK.F", "$(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
474 "COMPILE.r", "$(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c",
475 "LINK.r", "$(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
476 "COMPILE.def", "$(M2C) $(M2FLAGS) $(DEFFLAGS) $(TARGET_ARCH)",
477 "COMPILE.mod", "$(M2C) $(M2FLAGS) $(MODFLAGS) $(TARGET_ARCH)",
478 "COMPILE.p", "$(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",
479 "LINK.p", "$(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
480 "LINK.s", "$(CC) $(ASFLAGS) $(LDFLAGS) $(TARGET_MACH)",
481 "COMPILE.s", "$(AS) $(ASFLAGS) $(TARGET_MACH)",
482 "LINK.S", "$(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH)",
483 "COMPILE.S", "$(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c",
484 "PREPROCESS.S", "$(CC) -E $(CPPFLAGS)",
485 "PREPROCESS.F", "$(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -F",
486 "PREPROCESS.r", "$(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -F",
487 "LINT.c", "$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH)",
489 #ifndef NO_MINUS_C_MINUS_O
490 "OUTPUT_OPTION", "-o $@",
491 #endif
493 #ifdef SCCS_GET_MINUS_G
494 "SCCS_OUTPUT_OPTION", "-G$@",
495 #endif
497 #ifdef _AMIGA
498 ".LIBPATTERNS", "%.lib",
499 #else
500 #ifdef __MSDOS__
501 ".LIBPATTERNS", "lib%.a $(DJDIR)/lib/lib%.a",
502 #else
503 ".LIBPATTERNS", "lib%.so lib%.a",
504 #endif
505 #endif
507 #endif /* !VMS */
508 0, 0
511 /* Set up the default .SUFFIXES list. */
513 void
514 set_default_suffixes ()
516 suffix_file = enter_file (".SUFFIXES");
518 if (no_builtin_rules_flag)
519 (void) define_variable ("SUFFIXES", 8, "", o_default, 0);
520 else
522 char *p = default_suffixes;
523 suffix_file->deps = (struct dep *)
524 multi_glob (parse_file_seq (&p, '\0', sizeof (struct dep), 1),
525 sizeof (struct dep));
526 (void) define_variable ("SUFFIXES", 8, default_suffixes, o_default, 0);
530 /* Enter the default suffix rules as file rules. This used to be done in
531 install_default_implicit_rules, but that loses because we want the
532 suffix rules installed before reading makefiles, and thee pattern rules
533 installed after. */
535 void
536 install_default_suffix_rules ()
538 register char **s;
540 if (no_builtin_rules_flag)
541 return;
543 for (s = default_suffix_rules; *s != 0; s += 2)
545 register struct file *f = enter_file (s[0]);
546 /* Don't clobber cmds given in a makefile if there were any. */
547 if (f->cmds == 0)
549 f->cmds = (struct commands *) xmalloc (sizeof (struct commands));
550 f->cmds->fileinfo.filenm = 0;
551 f->cmds->commands = s[1];
552 f->cmds->command_lines = 0;
558 /* Install the default pattern rules. */
560 void
561 install_default_implicit_rules ()
563 register struct pspec *p;
565 if (no_builtin_rules_flag)
566 return;
568 for (p = default_pattern_rules; p->target != 0; ++p)
569 install_pattern_rule (p, 0);
571 for (p = default_terminal_rules; p->target != 0; ++p)
572 install_pattern_rule (p, 1);
575 void
576 define_default_variables ()
578 register char **s;
580 if (no_builtin_variables_flag)
581 return;
583 for (s = default_variables; *s != 0; s += 2)
584 (void) define_variable (s[0], strlen (s[0]), s[1], o_default, 1);