VirtualBox

source: kBuild/vendor/gnumake/3.82/dep.h

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

Importing make-3.82.tar.bz2 (md5sum 1a11100f3c63fcf5753818e59d63088f) with --auto-props but no keywords.

  • Property svn:eol-style set to native
File size: 3.1 KB
Line 
1/* Definitions of dependency data structures for 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/* Flag bits for the second argument to `read_makefile'.
20 These flags are saved in the `changed' field of each
21 `struct dep' in the chain returned by `read_all_makefiles'. */
22
23#define RM_NO_DEFAULT_GOAL (1 << 0) /* Do not set default goal. */
24#define RM_INCLUDED (1 << 1) /* Search makefile search path. */
25#define RM_DONTCARE (1 << 2) /* No error if it doesn't exist. */
26#define RM_NO_TILDE (1 << 3) /* Don't expand ~ in file name. */
27#define RM_NOFLAG 0
28
29/* Structure representing one dependency of a file.
30 Each struct file's `deps' points to a chain of these,
31 chained through the `next'. `stem' is the stem for this
32 dep line of static pattern rule or NULL.
33
34 Note that the first two words of this match a struct nameseq. */
35
36struct dep
37 {
38 struct dep *next;
39 const char *name;
40 const char *stem;
41 struct file *file;
42 unsigned int changed : 8;
43 unsigned int ignore_mtime : 1;
44 unsigned int staticpattern : 1;
45 unsigned int need_2nd_expansion : 1;
46 unsigned int dontcare : 1;
47 };
48
49
50/* Structure used in chains of names, for parsing and globbing. */
51
52struct nameseq
53 {
54 struct nameseq *next;
55 const char *name;
56 };
57
58
59#define PARSEFS_NONE (0x0000)
60#define PARSEFS_NOSTRIP (0x0001)
61#define PARSEFS_NOAR (0x0002)
62#define PARSEFS_NOGLOB (0x0004)
63#define PARSEFS_EXISTS (0x0008)
64#define PARSEFS_NOCACHE (0x0010)
65
66#define PARSE_FILE_SEQ(_s,_t,_c,_p,_f) \
67 (_t *)parse_file_seq ((_s),sizeof (_t),(_c),(_p),(_f))
68
69#ifdef VMS
70void *parse_file_seq ();
71#else
72void *parse_file_seq (char **stringp, unsigned int size,
73 int stopchar, const char *prefix, int flags);
74#endif
75
76char *tilde_expand (const char *name);
77
78#ifndef NO_ARCHIVES
79struct nameseq *ar_glob (const char *arname, const char *member_pattern, unsigned int size);
80#endif
81
82#define dep_name(d) ((d)->name == 0 ? (d)->file->name : (d)->name)
83
84#define alloc_dep() (xcalloc (sizeof (struct dep)))
85#define free_ns(_n) free (_n)
86#define free_dep(_d) free_ns (_d)
87
88struct dep *copy_dep_chain (const struct dep *d);
89void free_dep_chain (struct dep *d);
90void free_ns_chain (struct nameseq *n);
91struct dep *read_all_makefiles (const char **makefiles);
92void eval_buffer (char *buffer);
93int update_goal_chain (struct dep *goals);
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