VirtualBox

source: kBuild/vendor/gnumake/3.82-cvs/rule.h@ 2580

Last change on this file since 2580 was 2580, checked in by bird, 12 years ago

Importing the make-3-82 CVS tag with --auto-props but no keywords.

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1/* Definitions for using pattern rules in GNU Make.
2Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
31998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
42010 Free Software Foundation, Inc.
5This file is part of GNU Make.
6
7GNU Make is free software; you can redistribute it and/or modify it under the
8terms of the GNU General Public License as published by the Free Software
9Foundation; either version 3 of the License, or (at your option) any later
10version.
11
12GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License along with
17this program. If not, see <http://www.gnu.org/licenses/>. */
18
19
20/* Structure used for pattern (implicit) rules. */
21
22struct rule
23 {
24 struct rule *next;
25 const char **targets; /* Targets of the rule. */
26 unsigned int *lens; /* Lengths of each target. */
27 const char **suffixes; /* Suffixes (after `%') of each target. */
28 struct dep *deps; /* Dependencies of the rule. */
29 struct commands *cmds; /* Commands to execute. */
30 unsigned short num; /* Number of targets. */
31 char terminal; /* If terminal (double-colon). */
32 char in_use; /* If in use by a parent pattern_search. */
33 };
34
35/* For calling install_pattern_rule. */
36struct pspec
37 {
38 char *target, *dep, *commands;
39 };
40
41
42extern struct rule *pattern_rules;
43extern struct rule *last_pattern_rule;
44extern unsigned int num_pattern_rules;
45
46extern unsigned int max_pattern_deps;
47extern unsigned int max_pattern_targets;
48extern unsigned int max_pattern_dep_length;
49
50extern struct file *suffix_file;
51extern unsigned int maxsuffix;
52
53
54void count_implicit_rule_limits (void);
55void convert_to_pattern (void);
56void install_pattern_rule (struct pspec *p, int terminal);
57void create_pattern_rule (const char **targets, const char **target_percents,
58 unsigned int num, int terminal, struct dep *deps,
59 struct commands *commands, int override);
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette