VirtualBox

source: kBuild/trunk/src/kmk/rule.h@ 3387

Last change on this file since 3387 was 3140, checked in by bird, 6 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

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

© 2023 Oracle
ContactPrivacy policyTerms of Use