]> git.tdb.fi Git - builder.git/blobdiff - source/executable.h
Split Binary filename generation to Executable and SharedLibrary
[builder.git] / source / executable.h
index 3e34851e4abef92fa2ceb8a04068e4741a03b870..6bba919eb3f35b800c2c6539276069af451d57c7 100644 (file)
@@ -1,21 +1,16 @@
 #ifndef EXECUTABLE_H_
 #define EXECUTABLE_H_
 
-#include "target.h"
+#include "binary.h"
 
-class Component;
-class ObjectFile;
-
-class Executable: public Target
+class Executable: public Binary
 {
 public:
        Executable(Builder &, const Component &, const std::list<ObjectFile *> &);
-       const char *get_type() const { return "Executable"; }
-       void find_depends() { }
-private:
-       const Component &comp;
 
-       static std::string generate_target_name(const Component &);
+       virtual const char *get_type() const { return "Executable"; }
+private:
+       static std::string generate_filename(const Component &);
 };
 
 #endif