No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gmake / rule.h
blob30cc54492498df18632f912dcedca170889d4526
1 /* Definitions for using pattern rules in GNU Make.
2 Copyright (C) 1988, 1989, 1991, 1992, 1993 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 /* Structure used for pattern rules. */
22 struct rule
24 struct rule *next;
25 char **targets; /* Targets of the rule. */
26 unsigned int *lens; /* Lengths of each target. */
27 char **suffixes; /* Suffixes (after `%') of each target. */
28 struct dep *deps; /* Dependencies of the rule. */
29 struct commands *cmds; /* Commands to execute. */
30 char terminal; /* If terminal (double-colon). */
31 char in_use; /* If in use by a parent pattern_search. */
34 struct pattern_var
36 struct pattern_var *next;
37 char *target;
38 unsigned int len;
39 char *suffix;
40 struct variable_set_list *vars;
43 /* For calling install_pattern_rule. */
44 struct pspec
46 char *target, *dep, *commands;
50 extern struct rule *pattern_rules;
51 extern struct rule *last_pattern_rule;
52 extern unsigned int num_pattern_rules;
54 extern unsigned int max_pattern_deps;
55 extern unsigned int max_pattern_targets;
56 extern unsigned int max_pattern_dep_length;
58 extern struct file *suffix_file;
59 extern unsigned int maxsuffix;
62 extern void install_pattern_rule PARAMS ((struct pspec *p, int terminal));
63 extern int new_pattern_rule PARAMS ((struct rule *rule, int override));
64 extern struct pattern_var *create_pattern_var PARAMS ((char *target, char *suffix));
65 extern struct pattern_var *lookup_pattern_var PARAMS ((char *target));
66 extern void count_implicit_rule_limits PARAMS ((void));
67 extern void convert_to_pattern PARAMS ((void));
68 extern void create_pattern_rule PARAMS ((char **targets,
69 char **target_percents, int terminal,
70 struct dep *deps,
71 struct commands *commands,
72 int override));