VirtualBox

source: kBuild/trunk/src/gmakenew/rule.h@ 925

Last change on this file since 925 was 903, checked in by bird, 18 years ago

Merged with the 2007-05-23 CVS. Added rsort and fixed a couple of windows build issues.

  • Property svn:eol-style set to native
File size: 2.2 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 Free Software
4Foundation, 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 2, or (at your option) any later version.
10
11GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License along with
16GNU Make; see the file COPYING. If not, write to the Free Software
17Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */
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