Make crunchgen crunch pre-built object files again, i.e.:
progs prog1 special prog1 objdir ../../prog1/obj special prog1 objs prog1.o This fixes a bug that I introduced around the time of 4.2-release. Reported by: Larry Baird <lab@gta.com>
This commit is contained in:
parent
89a0be2e4f
commit
11384533ea
@ -636,7 +636,7 @@ void fillin_program(prog_t *p)
|
|||||||
if (!p->objs && p->srcdir && is_nonempty_file(path))
|
if (!p->objs && p->srcdir && is_nonempty_file(path))
|
||||||
fillin_program_objs(p, path);
|
fillin_program_objs(p, path);
|
||||||
|
|
||||||
if (!p->srcdir && verbose)
|
if (!p->srcdir && !p->objdir && verbose)
|
||||||
warnx("%s: %s: %s",
|
warnx("%s: %s: %s",
|
||||||
"warning: could not find source directory",
|
"warning: could not find source directory",
|
||||||
infilename, p->name);
|
infilename, p->name);
|
||||||
@ -644,7 +644,7 @@ void fillin_program(prog_t *p)
|
|||||||
warnx("%s: %s: warning: could not find any .o files",
|
warnx("%s: %s: warning: could not find any .o files",
|
||||||
infilename, p->name);
|
infilename, p->name);
|
||||||
|
|
||||||
if (!p->srcdir || !p->objs)
|
if (!p->objdir || !p->objs)
|
||||||
p->goterror = 1;
|
p->goterror = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -962,10 +962,6 @@ void prog_makefile_rules(FILE *outmk, prog_t *p)
|
|||||||
|
|
||||||
fprintf(outmk, "\n# -------- %s\n\n", p->name);
|
fprintf(outmk, "\n# -------- %s\n\n", p->name);
|
||||||
|
|
||||||
if (p->srcdir && p->objs) {
|
|
||||||
fprintf(outmk, "%s_SRCDIR=%s\n", p->ident, p->srcdir);
|
|
||||||
fprintf(outmk, "%s_REALSRCDIR=%s\n", p->ident, p->realsrcdir);
|
|
||||||
|
|
||||||
fprintf(outmk, "%s_OBJDIR=", p->ident);
|
fprintf(outmk, "%s_OBJDIR=", p->ident);
|
||||||
if (p->objdir)
|
if (p->objdir)
|
||||||
fprintf(outmk, "%s", p->objdir);
|
fprintf(outmk, "%s", p->objdir);
|
||||||
@ -974,6 +970,10 @@ void prog_makefile_rules(FILE *outmk, prog_t *p)
|
|||||||
p->ident);
|
p->ident);
|
||||||
fprintf(outmk, "\n");
|
fprintf(outmk, "\n");
|
||||||
|
|
||||||
|
if (p->srcdir && p->objs) {
|
||||||
|
fprintf(outmk, "%s_SRCDIR=%s\n", p->ident, p->srcdir);
|
||||||
|
fprintf(outmk, "%s_REALSRCDIR=%s\n", p->ident, p->realsrcdir);
|
||||||
|
|
||||||
fprintf(outmk, "%s_OBJS=", p->ident);
|
fprintf(outmk, "%s_OBJS=", p->ident);
|
||||||
output_strlst(outmk, p->objs);
|
output_strlst(outmk, p->objs);
|
||||||
if (p->buildopts != NULL) {
|
if (p->buildopts != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user