#include "glob/glob.h"
#endif
+#ifndef _AMIGA
#ifndef VMS
#include <pwd.h>
#else
struct passwd *getpwnam PARAMS ((char *name));
#endif
+#endif
/* A `struct linebuffer' is a structure which holds a line of text.
`readline' reads a line from a stream into a linebuffer
struct dep *deps, unsigned int commands_started, char *commands,
unsigned int commands_idx, int two_colon, char *filename,
unsigned int lineno, int set_default));
-static char *find_semicolon PARAMS ((char *s));
\f
/* Read in all the makefiles and return the chain of their names. */
if (num_makefiles == 0)
{
static char *default_makefiles[] =
-#if VMS
+#ifdef VMS
/* all lower case since readdir() (the vms version) 'lowercasifies' */
{ "makefile.vms", "gnumakefile", "makefile", 0 };
#else
+#ifdef _AMIGA
+ { "GNUmakefile", "Makefile", "SMakefile", 0 };
+#else /* !Amiga && !VMS */
{ "GNUmakefile", "makefile", "Makefile", 0 };
-#endif
+#endif /* AMIGA */
+#endif /* VMS */
register char **p = default_makefiles;
while (*p != 0 && !file_exists_p (*p))
++p;
#ifdef lint /* Suppress `used before set' messages. */
two_colon = 0;
+ pattern_percent = 0;
#endif
if (debug_flag)
if (p && *p == ',')
*p =' ';
#endif
-
#ifdef __MSDOS__
/* For MS-DOS, skip a "C:\...". */
if (stopchar == ':' && p != 0 && p[1] == '\\' && isalpha (p[-1]))
#ifdef VMS
continue;
#else
+#ifdef _AMIGA
+ name = savestring ("", 0);
+#else
name = savestring ("./", 2);
#endif
+#endif
else
#ifdef VMS
/* VMS filenames can have a ':' in them but they have to be '\'ed but we need
home_dir = p->pw_dir;
}
}
-#endif
+#endif /* !AMIGA */
if (home_dir != 0)
{
char *new = concat (home_dir, "", name + 1);
else if (userend != 0)
*userend = '/';
}
+#endif /* !AMIGA */
#endif /* !VMS */
return 0;
}
}
else
memname = 0;
-#endif
+#endif /* !NO_ARCHIVES */
switch (glob (old->name, GLOB_NOCHECK|GLOB_ALTDIRFUNC, NULL, &gl))
{
free (memname);
}
else
-#endif
+#endif /* !NO_ARCHIVES */
{
struct nameseq *elt = (struct nameseq *) xmalloc (size);
elt->name = savestring (gl.gl_pathv[i],
break;
}
}
-#endif
return new;
}