version 1.52, 2000/06/23 16:41:53 |
version 1.53, 2000/09/14 13:32:07 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
#ifndef lint |
|
#if 0 |
|
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; |
|
#else |
|
static char rcsid[] = "$OpenBSD$"; |
|
#endif |
|
#endif /* not lint */ |
|
|
|
/*- |
/*- |
* parse.c -- |
* parse.c -- |
* Functions to parse a makefile. |
* Functions to parse a makefile. |
|
|
#include "pathnames.h" |
#include "pathnames.h" |
#include "lowparse.h" |
#include "lowparse.h" |
|
|
|
#ifndef lint |
|
#if 0 |
|
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; |
|
#else |
|
UNUSED |
|
static char rcsid[] = "$OpenBSD$"; |
|
#endif |
|
#endif /* not lint */ |
|
|
static LIST targets; /* targets we're working on */ |
static LIST targets; /* targets we're working on */ |
#ifdef CLEANUP |
#ifdef CLEANUP |
static LIST targCmds; /* command lines for targets */ |
static LIST targCmds; /* command lines for targets */ |
|
|
static void ParseClearPath __P((void *)); |
static void ParseClearPath __P((void *)); |
static void ParseDoDependency __P((char *)); |
static void ParseDoDependency __P((char *)); |
static void ParseAddCmd __P((void *, void *)); |
static void ParseAddCmd __P((void *, void *)); |
static int __inline ParseReadc __P((void)); |
|
static void ParseHasCommands __P((void *)); |
static void ParseHasCommands __P((void *)); |
static void ParseDoInclude __P((char *)); |
static void ParseDoInclude __P((char *)); |
#ifdef SYSVINCLUDE |
#ifdef SYSVINCLUDE |