- if(c.get_type()==Component::LIBRARY)
- install_location = "lib";
- else if(c.get_type()==Component::MODULE)
- install_location = "lib/"+package->get_name();
- else if(c.get_type()==Component::PROGRAM)
- install_location = "bin";
+Binary::Binary(Builder &b, const Component &c, const string &p, const list<ObjectFile *> &objs):
+ FileTarget(b, c.get_package(), c.get_package().get_output_directory()/p),
+ objects(objs)
+{
+ component = &c;
+ for(list<ObjectFile *>::const_iterator i=objects.begin(); i!=objects.end(); ++i)
+ add_dependency(**i);