VirtualBox

source: kBuild/vendor/gnumake/2005-05-16/rule.h

Last change on this file was 54, checked in by (none), 21 years ago

This commit was manufactured by cvs2svn to create branch 'GNU'.

  • 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, 1991, 1992, 1993 Free Software Foundation, Inc.
3This file is part of GNU Make.
4
5GNU Make is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 2, or (at your option)
8any later version.
9
10GNU Make is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with GNU Make; see the file COPYING. If not, write to
17the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18Boston, MA 02111-1307, USA. */
19
20/* Structure used for pattern rules. */
21
22struct rule
23 {
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. */
32 };
33
34/* For calling install_pattern_rule. */
35struct pspec
36 {
37 char *target, *dep, *commands;
38 };
39
40
41extern struct rule *pattern_rules;
42extern struct rule *last_pattern_rule;
43extern unsigned int num_pattern_rules;
44
45extern unsigned int max_pattern_deps;
46extern unsigned int max_pattern_targets;
47extern unsigned int max_pattern_dep_length;
48
49extern struct file *suffix_file;
50extern unsigned int maxsuffix;
51
52
53extern void install_pattern_rule PARAMS ((struct pspec *p, int terminal));
54extern int new_pattern_rule PARAMS ((struct rule *rule, int override));
55extern void count_implicit_rule_limits PARAMS ((void));
56extern void convert_to_pattern PARAMS ((void));
57extern void create_pattern_rule PARAMS ((char **targets,
58 char **target_percents, int terminal,
59 struct dep *deps,
60 struct commands *commands,
61 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