Lines Matching defs:srcdir
69 char *srcdir;
429 p2->srcdir = NULL;
528 } else if (!strcmp(argv[2], "srcdir")) {
531 if ((p->srcdir = strdup(argv[3])) == NULL)
645 if (!p->srcdir) {
646 p->srcdir = dir_search(p->name);
649 /* Determine the actual srcdir (maybe symlinked). */
650 if (p->srcdir) {
652 p->srcdir);
663 errx(1, "Can't perform pwd on: %s\n", p->srcdir);
672 if (!makeobj && !p->objdir && p->srcdir) {
690 if (p->srcdir)
691 snprintf(path, sizeof(path), "%s/Makefile", p->srcdir);
692 if (!p->objs && p->srcdir && is_nonempty_file(path))
695 if (!p->srcdir && !p->objdir && verbose)
703 if ((!p->srcdir || !p->objdir) && !p->objs)
717 /* discover the objs from the srcdir Makefile */
749 p->srcdir, path_make, tempfname, p->ident);
757 p->srcdir, path_make, tempfname);
839 if (p->srcdir)
840 fprintf(cachef, "special %s srcdir %s\n",
841 p->name, p->srcdir);
961 char *srcdir;
968 if ((srcdir = strdup(path)) == NULL)
971 return srcdir;
1062 if (p->srcdir && p->objs) {
1063 fprintf(outmk, "%s_SRCDIR=%s\n", p->ident, p->srcdir);