Lines Matching defs:srcdir
69 char *srcdir;
432 p2->srcdir = NULL;
531 } else if (!strcmp(argv[2], "srcdir")) {
534 if ((p->srcdir = strdup(argv[3])) == NULL)
647 if (!p->srcdir) {
648 p->srcdir = dir_search(p->name);
651 /* Determine the actual srcdir (maybe symlinked). */
652 if (p->srcdir) {
653 p->realsrcdir = realpath(p->srcdir, NULL);
655 errx(1, "Can't resolve path: %s\n", p->srcdir);
662 if (!makeobj && !p->objdir && p->srcdir) {
685 if (p->srcdir)
686 snprintf(path, sizeof(path), "%s/Makefile", p->srcdir);
687 if (!p->objs && p->srcdir && is_nonempty_file(path))
690 if (!p->srcdir && !p->objdir && verbose)
698 if ((!p->srcdir || !p->objdir) && !p->objs)
712 /* discover the objs from the srcdir Makefile */
756 p->srcdir, path_make, tempfname, p->ident);
764 p->srcdir, path_make, tempfname);
846 if (p->srcdir)
847 fprintf(cachef, "special %s srcdir %s\n",
848 p->name, p->srcdir);
976 char *srcdir;
983 if ((srcdir = strdup(path)) == NULL)
986 return srcdir;
1077 if (p->srcdir && p->objs) {
1078 fprintf(outmk, "%s_SRCDIR=%s\n", p->ident, p->srcdir);