Formerly make.texinfo.~117~
[make.git] / dep.h
blobf579b33adb45381a172294d65267319803804c59
1 /* Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
2 This file is part of GNU Make.
4 GNU Make is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
9 GNU Make is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with GNU Make; see the file COPYING. If not, write to
16 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
18 /* Structure representing one dependency of a file.
19 Each struct file's `deps' points to a chain of these,
20 chained through the `next'.
22 Note that the first two words of this match a struct nameseq. */
24 struct dep
26 struct dep *next;
27 char *name;
28 struct file *file;
29 int changed;
33 /* Structure used in chains of names, for parsing and globbing. */
35 struct nameseq
37 struct nameseq *next;
38 char *name;
42 extern struct nameseq *multi_glob (), *parse_file_seq ();
43 extern char *tilde_expand ();
45 #ifndef NO_ARCHIVES
46 extern struct nameseq *ar_glob ();
47 #endif
49 #ifndef iAPX286
50 #define dep_name(d) ((d)->name == 0 ? (d)->file->name : (d)->name)
51 #else
52 /* Buggy compiler can't hack this. */
53 extern char *dep_name ();
54 #endif
56 extern struct dep *read_all_makefiles ();
58 /* Flag bits for the second argument to `read_makefile'.
59 These flags are saved in the `changed' field of each
60 `struct dep' in the chain returned by `read_all_makefiles'. */
61 #define RM_NO_DEFAULT_GOAL (1 << 0) /* Do not set default goal. */
62 #define RM_INCLUDED (1 << 1) /* Search makefile search path. */
63 #define RM_DONTCARE (1 << 2) /* No error if it doesn't exist. */
64 #define RM_NO_TILDE (1 << 3) /* Don't expand ~ in file name. */
65 #define RM_NOFLAG 0