remove DEBUG_PARSE, never used
[unix-history] / usr / src / usr.bin / make / make.h
index 26689dd..a1aaa4b 100644 (file)
@@ -1,40 +1,41 @@
-/*-
- * make.h --
- *     The global definitions for pmake
- *
- * Copyright (c) 1988, 1989 by the Regents of the University of California
+/*
+ * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
  * Copyright (c) 1988, 1989 by Adam de Boor
  * Copyright (c) 1989 by Berkeley Softworks
  * Copyright (c) 1988, 1989 by Adam de Boor
  * Copyright (c) 1989 by Berkeley Softworks
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Adam de Boor.
  *
  *
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any non-commercial purpose
- * and without fee is hereby granted, provided that the above copyright
- * notice appears in all copies.  The University of California,
- * Berkeley Softworks and Adam de Boor make no representations about
- * the suitability of this software for any purpose.  It is provided
- * "as is" without express or implied warranty.
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  *
- *     "$Id: make.h,v 1.42 89/11/14 13:44:42 adam Exp $ SPRITE (Berkeley)"
+ *     @(#)make.h      5.10 (Berkeley) %G%
+ */
+
+/*-
+ * make.h --
+ *     The global definitions for pmake
  */
 
 #ifndef _MAKE_H_
 #define _MAKE_H_
 
  */
 
 #ifndef _MAKE_H_
 #define _MAKE_H_
 
-#include    <sys/types.h>
-#include    "sprite.h"
-#include    <ctype.h>
-#include    "lst.h"
-#include    "config.h"
-
-#ifdef NO_VFORK
-#define vfork fork
-#else
-
-#ifdef sparc
-#include    <vfork.h>
-#endif
-
-#endif /* NO_VFORK */
+#include <sys/types.h>
+#include <strings.h>
+#include <ctype.h>
+#include "sprite.h"
+#include "lst.h"
+#include "config.h"
 
 /*-
  * The structure for an individual graph node. Each node has several
 
 /*-
  * The structure for an individual graph node. Each node has several
@@ -138,7 +139,7 @@ typedef struct GNode {
                                     * per line (::) */
 #define OP_OPMASK      (OP_DEPENDS|OP_FORCE|OP_DOUBLEDEP)
 
                                     * per line (::) */
 #define OP_OPMASK      (OP_DEPENDS|OP_FORCE|OP_DOUBLEDEP)
 
-#define OP_DONTCARE    0x00000008  /* Don't care if the target doesn't
+#define OP_OPTIONAL    0x00000008  /* Don't care if the target doesn't
                                     * exist and can't be created */
 #define OP_USE         0x00000010  /* Use associated commands for parents */
 #define OP_EXEC                0x00000020  /* Target is never out of date, but always
                                     * exist and can't be created */
 #define OP_USE         0x00000010  /* Use associated commands for parents */
 #define OP_EXEC                0x00000020  /* Target is never out of date, but always
@@ -155,20 +156,11 @@ typedef struct GNode {
                                     * state of the -n or -t flags */
 #define OP_JOIN        0x00000400  /* Target is out-of-date only if any of its
                                     * children was out-of-date */
                                     * state of the -n or -t flags */
 #define OP_JOIN        0x00000400  /* Target is out-of-date only if any of its
                                     * children was out-of-date */
-#define OP_EXPORT      0x00000800  /* UNUSED: The creation of the target
-                                    * should be sent somewhere else, if
-                                    * possible. */
-#define OP_NOEXPORT    0x00001000  /* The creation should not be sent
-                                    * elsewhere */
-#define OP_EXPORTSAME  0x00002000  /* Export only to machine with same
-                                    * architecture */
 #define OP_INVISIBLE   0x00004000  /* The node is invisible to its parents.
                                     * I.e. it doesn't show up in the parents's
                                     * local variables. */
 #define OP_NOTMAIN     0x00008000  /* The node is exempt from normal 'main
                                     * target' processing in parse.c */
 #define OP_INVISIBLE   0x00004000  /* The node is invisible to its parents.
                                     * I.e. it doesn't show up in the parents's
                                     * local variables. */
 #define OP_NOTMAIN     0x00008000  /* The node is exempt from normal 'main
                                     * target' processing in parse.c */
-/*XXX*/
-#define OP_M68020      0x00010000  /* Command must be run on a 68020 */
 /* Attributes applied by PMake */
 #define OP_TRANSFORM   0x80000000  /* The node is a transformation rule */
 #define OP_MEMBER      0x40000000  /* Target is a member of an archive */
 /* Attributes applied by PMake */
 #define OP_TRANSFORM   0x80000000  /* The node is a transformation rule */
 #define OP_MEMBER      0x40000000  /* Target is a member of an archive */
@@ -280,8 +272,6 @@ extern Boolean      queryFlag;      /* TRUE if we aren't supposed to really make
                                 * anything, just see if the targets are out-
                                 * of-date */
 
                                 * anything, just see if the targets are out-
                                 * of-date */
 
-extern Boolean noWarnings;     /* TRUE if should not print warning messages */
-extern Boolean  noExport;      /* TRUE if should not export any jobs */
 extern Boolean checkEnvFirst;  /* TRUE if environment should be searched for
                                 * variables before the global context */
 
 extern Boolean checkEnvFirst;  /* TRUE if environment should be searched for
                                 * variables before the global context */
 
@@ -298,57 +288,38 @@ extern char       var_Error[];    /* Value returned by Var_Parse when an error
 extern time_t  now;            /* The time at the start of this whole
                                 * process */
 
 extern time_t  now;            /* The time at the start of this whole
                                 * process */
 
-/*
- * Three levels of compatibility. amMake incorporates backwards and oldVars,
- * backwards incorporates oldVars.
- */
-extern Boolean amMake;         /* Go all the way to backwards compatibility:
-                                *      - Depth-first traversal of the graph
-                                *      - No paralellism */
-extern Boolean  backwards;     /* Go halfway to backwards compatibility:
-                                *      - One shell per command */
 extern Boolean oldVars;        /* Do old-style variable substitution */
 extern Boolean oldVars;        /* Do old-style variable substitution */
-extern Boolean  sysVmake;      /* Imitate System V make in anything weird */
 
 /*
 
 /*
- * Debug control:
- *     There is one bit per module. It is up to the module what debug
+ * debug control:
+ *     There is one bit per module.  It is up to the module what debug
  *     information to print.
  *     information to print.
- *     DEBUG(module) returns TRUE if debugging is on for that module.
  */
  */
-extern int     debug;
-#define DEBUG_SUFF     0x00000001
-#define DEBUG_MAKE     0x00000002
-#define DEBUG_JOB      0x00000004
-#define DEBUG_TARG     0x00000008
-#define DEBUG_DIR      0x00000010
-#define DEBUG_VAR      0x00000020
-#define DEBUG_COND     0x00000040
-#define DEBUG_PARSE    0x00000080
-#define DEBUG_RMT      0x00000100
-#define DEBUG_ARCH     0x00000200
-
-#ifndef __STDC__
+extern int debug;
+#define        DEBUG_ARCH      0x0001
+#define        DEBUG_COND      0x0002
+#define        DEBUG_DIR       0x0004
+#define        DEBUG_GRAPH1    0x0008
+#define        DEBUG_GRAPH2    0x0010
+#define        DEBUG_JOB       0x0020
+#define        DEBUG_MAKE      0x0040
+#define        DEBUG_SUFF      0x0080
+#define        DEBUG_TARG      0x0100
+#define        DEBUG_VAR       0x0200
+
+#ifdef __STDC__
+#define CONCAT(a,b)    a##b
+#else
 #define I(a)           a
 #define CONCAT(a,b)    I(a)b
 #define I(a)           a
 #define CONCAT(a,b)    I(a)b
-#else
-#define CONCAT(a,b)    a##b
 #endif /* __STDC__ */
 
 #endif /* __STDC__ */
 
-#define DEBUG(module)  (debug & CONCAT(DEBUG_,module))
+#define        DEBUG(module)   (debug & CONCAT(DEBUG_,module))
 
 /*
  * Since there are so many, all functions that return non-integer values are
  * extracted by means of a sed script or two and stuck in the file "nonints.h"
  */
 
 /*
  * Since there are so many, all functions that return non-integer values are
  * extracted by means of a sed script or two and stuck in the file "nonints.h"
  */
-#include       "nonints.h"
-
-#ifdef Sprite
-#define Str_FindSubstring(s1, s2) strstr(s1, s2)
-#endif /* Sprite */
-
-extern char *index();
-extern char *rindex();
-extern char *malloc();
+#include "nonints.h"
 
 #endif _MAKE_H_
 
 #endif _MAKE_H_