X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexecutable.cpp;h=156823340a533849346e9425a54d0d59eb35e0ca;hb=59ac0a44d6edf179c01604c6ced744873213f855;hp=2dfeee8affbbbce98ee5a812da75433ca60d32b2;hpb=4dc31cca056ea293d320928f61fef0558089d32d;p=builder.git diff --git a/source/executable.cpp b/source/executable.cpp index 2dfeee8..1568233 100644 --- a/source/executable.cpp +++ b/source/executable.cpp @@ -1,5 +1,6 @@ #include "component.h" #include "executable.h" +#include "link.h" #include "objectfile.h" #include "package.h" @@ -9,10 +10,16 @@ Executable::Executable(Builder &b, const Component &c, const list Target(b, &c.get_package(), generate_target_name(c)), comp(c) { + buildable=true; for(list::const_iterator i=objs.begin(); i!=objs.end(); ++i) add_depend(*i); } +Action *Executable::build() +{ + return Target::build(new Link(builder, *this, comp));; +} + string Executable::generate_target_name(const Component &comp) { string prefix;