Add support for external objects (needed by PLUMED)

svn-origin-rev: 14269
This commit is contained in:
Ole Schütt 2014-09-16 08:53:50 +00:00
parent f1330c49a7
commit b68b3efdfb

View file

@ -107,6 +107,7 @@ def main():
deps = collect_pkg_deps(packages, p)
makefile += " ".join(["$(LIBDIR)/"+a+archive_ext for a in deps]) + "\n"
makefile += "\t" + "$(LD) $(LDFLAGS) -L$(LIBDIR) -o $@ %s.o "%bfn
makefile += "$(EXTERNAL_OBJECTS) "
assert(all([a.startswith("lib") for a in deps]))
makefile += " ".join(["-l"+a[3:]+archive_postfix for a in deps])
makefile += " $(LIBS)\n\n"