Complete support for OBJDIR with libtool

This commit is contained in:
Pierre Pronchery 2019-02-28 13:39:21 +01:00
parent 67317afeb8
commit b981d7a832

View File

@ -1814,7 +1814,8 @@ static int _target_source(Makefile * makefile, String const * target,
_makefile_print(makefile, "%s%s%s", _makefile_print(makefile, "%s%s%s",
"\n$(OBJDIR)", source, ".o"); "\n$(OBJDIR)", source, ".o");
if(tt == TT_LIBTOOL) if(tt == TT_LIBTOOL)
_makefile_print(makefile, " %s.lo", source); _makefile_print(makefile, " $(OBJDIR)%s.lo",
source);
_makefile_print(makefile, "%s%s%s%s", ": ", source, ".", _makefile_print(makefile, "%s%s%s%s", ": ", source, ".",
extension); extension);
source[len] = '.'; /* FIXME ugly */ source[len] = '.'; /* FIXME ugly */
@ -1878,7 +1879,7 @@ static int _target_source(Makefile * makefile, String const * target,
} }
if(tt == TT_LIBTOOL) if(tt == TT_LIBTOOL)
{ {
_makefile_print(makefile, " "); _makefile_print(makefile, " $(OBJDIR)");
_makefile_print_escape(makefile, source); _makefile_print_escape(makefile, source);
_makefile_print(makefile, "%s", ".lo"); _makefile_print(makefile, "%s", ".lo");
} }