-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include "builder.h"
#include "component.h"
#include "executable.h"
#include "sourcepackage.h"
-Executable::Executable(Builder &b, const Component &c, const std::list<ObjectFile *> &objs):
- FileTarget(b, &c.get_package(), generate_target_path(c)),
- Binary(b, c, objs)
-{ }
+using namespace std;
+using namespace Msp;
+
+Executable::Executable(Builder &b, const Component &c, const vector<ObjectFile *> &objs):
+ Binary(b, c, b.get_current_arch().create_filename<Executable>(c.get_name()), objs)
+{
+ install_location = "bin";
+}