diff options
author | John Birrell <jb@FreeBSD.org> | 2006-11-24 03:56:25 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 2006-11-24 03:56:25 +0000 |
commit | 80f498e55990b43bc954381d6262d610338d9d68 (patch) | |
tree | 1c5b12a60cd62653547ceb3527c2713a2a6a214f /usr.sbin | |
parent | 16c87dea9eb3f8bc516ab11d669aa4da1ff39792 (diff) | |
download | src-80f498e55990b43bc954381d6262d610338d9d68.tar.gz src-80f498e55990b43bc954381d6262d610338d9d68.zip |
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/crunch/crunchgen/crunchgen.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunchgen.c b/usr.sbin/crunch/crunchgen/crunchgen.c index ea20caabaa4d..fc75a6a12d82 100644 --- a/usr.sbin/crunch/crunchgen/crunchgen.c +++ b/usr.sbin/crunch/crunchgen/crunchgen.c @@ -1017,6 +1017,16 @@ void prog_makefile_rules(FILE *outmk, prog_t *p) p->ident); fprintf(outmk, "\n"); + fprintf(outmk, "%s_OBJPATHS=", p->ident); + if (p->objpaths) + output_strlst(outmk, p->objpaths); + else { + for (lst = p->objs; lst != NULL; lst = lst->next) { + fprintf(outmk, " $(%s_OBJDIR)/%s", p->ident, lst->str); + } + 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); @@ -1027,6 +1037,7 @@ void prog_makefile_rules(FILE *outmk, prog_t *p) fprintf(outmk, "%s_OPTS+=", p->ident); output_strlst(outmk, p->buildopts); } + fprintf(outmk, "$(%s_OBJPATHS): %s_make\n\n", p->ident, p->ident); fprintf(outmk, "%s_make:\n", p->ident); fprintf(outmk, "\t(cd $(%s_SRCDIR) && ", p->ident); if (makeobj) @@ -1048,15 +1059,6 @@ void prog_makefile_rules(FILE *outmk, prog_t *p) p->name); } - fprintf(outmk, "%s_OBJPATHS=", p->ident); - if (p->objpaths) - output_strlst(outmk, p->objpaths); - else { - for (lst = p->objs; lst != NULL; lst = lst->next) { - fprintf(outmk, " $(%s_OBJDIR)/%s", p->ident, lst->str); - } - fprintf(outmk, "\n"); - } if (p->libs) { fprintf(outmk, "%s_LIBS=", p->ident); output_strlst(outmk, p->libs); |