home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / GNU / MAK358AS.ZIP / RULE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-22  |  2.3 KB  |  72 lines

  1. /* Copyright (C) 1988, 1989 Free Software Foundation, Inc.
  2. This file is part of GNU Make.
  3.  
  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 1, or (at your option)
  7. any later version.
  8.  
  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.
  13.  
  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.  */
  17.  
  18. /*
  19.  * MS-DOS port (c) 1990 by Thorsten Ohl <ohl@gnu.ai.mit.edu>
  20.  *
  21.  * To this port, the same copying conditions apply as to the
  22.  * original release.
  23.  *
  24.  * IMPORTANT:
  25.  * This file is not identical to the original GNU release!
  26.  * You should have received this code as patch to the official
  27.  * GNU release.
  28.  *
  29.  * MORE IMPORTANT:
  30.  * This port comes with ABSOLUTELY NO WARRANTY.
  31.  *
  32.  * $Header: e:/gnu/make/RCS/rule.h'v 3.58.0.1 90/07/17 01:00:07 tho Exp $
  33.  */
  34.  
  35. /* Structure used for pattern rules.  */
  36.  
  37. struct rule
  38.   {
  39.     struct rule *next;
  40.     char **targets;        /* Targets of the rule.  */
  41.     unsigned int *lens;        /* Lengths of each target.  */
  42.     char **suffixes;        /* Suffixes (after `%') of each target.  */
  43.     struct dep *deps;        /* Dependencies of the rule.  */
  44.     struct commands *cmds;    /* Commands to execute.  */
  45.     char terminal;        /* If terminal (double-colon).  */
  46.     char subdir;        /* If references nonexistent subdirectory.  */
  47.     char in_use;        /* If in use by a parent pattern_search.  */
  48.   };
  49.  
  50. /* For calling install_pattern_rule.  */
  51. struct pspec
  52.   {
  53.     char *target, *dep, *commands;
  54.   };
  55.  
  56.  
  57. extern struct rule *pattern_rules;
  58. extern struct rule *last_pattern_rule;
  59. extern unsigned int num_pattern_rules;
  60.  
  61. extern unsigned int max_pattern_deps;
  62. extern unsigned int max_pattern_dep_length;
  63.  
  64. extern struct file *suffix_file;
  65. extern unsigned int maxsuffix;
  66.  
  67. #ifdef  MSDOS
  68. extern  void install_pattern_rule (struct pspec *p, int terminal);
  69. #else /* not MSDOS */
  70. extern void install_pattern_rule ();
  71. #endif /* not MSDOS */
  72.