1/* 2 * Copyright (c) 1988, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1989 by Berkeley Softworks 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Adam de Boor. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)make.h 8.3 (Berkeley) 6/13/95 |
39 * $FreeBSD: head/usr.bin/make/make.h 138916 2004-12-16 16:14:16Z harti $ |
40 */ 41 42/*- 43 * make.h -- 44 * The global definitions for pmake 45 */ 46 47#ifndef _MAKE_H_ --- 72 unchanged lines hidden (view full) --- 120 Boolean childMade; /* TRUE if one of this target's children was 121 * made */ 122 int unmade; /* The number of unmade children */ 123 124 int mtime; /* Its modification time */ 125 int cmtime; /* The modification time of its youngest 126 * child */ 127 |
128 Lst iParents; /* Links to parents for which this is an |
129 * implied source, if any */ |
130 Lst cohorts; /* Other nodes for the :: operator */ 131 Lst parents; /* Nodes that depend on this one */ 132 Lst children; /* Nodes on which this one depends */ 133 Lst successors; /* Nodes that must be made after this one */ 134 Lst preds; /* Nodes that must be made before this one */ |
135 |
136 Lst context; /* The local variables */ 137 Lst commands; /* Creation commands */ |
138 139 /* current command executing in compat mode */ 140 LstNode *compat_command; 141 142 struct _Suff *suffix; /* Suffix for the node (determined by 143 * Suff_FindDeps and opaque to everyone 144 * but the Suff module) */ 145} GNode; --- 132 unchanged lines hidden (view full) --- 278#define FIMPSRC "<F" /* file part of IMPSRC */ 279#define DIMPSRC "<D" /* directory part of IMPSRC */ 280#define FPREFIX "*F" /* file part of PREFIX */ 281#define DPREFIX "*D" /* directory part of PREFIX */ 282 283/* 284 * Global Variables 285 */ |
286/* The list of target names specified on the command line. 287 * Used to resolve #if make(...) statements */ 288extern Lst create; 289 290/* The list of directories to search when looking for targets */ 291extern Lst dirSearchPath; 292 |
293extern IFile curFile; /* current makefile */ |
294 |
295/* The list of directories to search when looking for includes */ 296extern Lst parseIncPath; 297 |
298extern Boolean jobsRunning; /* True if jobs are running */ 299extern Boolean compatMake; /* True if we are make compatible */ 300extern Boolean ignoreErrors; /* True if should ignore all errors */ 301extern Boolean beSilent; /* True if should print no commands */ 302extern Boolean beVerbose; /* True if should print extra cruft */ 303extern Boolean noExecute; /* True if should execute nothing */ 304extern Boolean allPrecious; /* True if every target is precious */ 305extern Boolean keepgoing; /* True if should continue on unaffected --- 6 unchanged lines hidden (view full) --- 312 * is routed to temporary files from which it 313 * is retrieved when the shell exits */ 314extern Boolean queryFlag; /* TRUE if we aren't supposed to really make 315 * anything, just see if the targets are out- 316 * of-date */ 317 318extern Boolean checkEnvFirst; /* TRUE if environment should be searched for 319 * all variables before the global context */ |
320 |
321/* List of specific variables for which the environment should be 322 * searched before the global context */ 323extern Lst envFirstVars; 324 |
325extern GNode *DEFAULT; /* .DEFAULT rule */ 326 327extern GNode *VAR_GLOBAL; /* Variables defined in a global context, e.g 328 * in the Makefile itself */ 329extern GNode *VAR_CMD; /* Variables defined on the command line */ 330extern char var_Error[]; /* Value returned by Var_Parse when an error 331 * is encountered. It actually points to 332 * an empty string, so naive callers needn't 333 * worry about it. */ 334 335extern time_t now; /* The time at the start of this whole 336 * process */ 337 338extern Boolean oldVars; /* Do old-style variable substitution */ 339 |
340/* The system include path. */ 341extern Lst sysIncPath; |
342 343/* 344 * debug control: 345 * There is one bit per module. It is up to the module what debug 346 * information to print. 347 */ 348extern int debug; 349#define DEBUG_ARCH 0x0001 --- 38 unchanged lines hidden --- |