]> git.tdb.fi Git - builder.git/blob - source/objectfile.h
8306aea46284ac63d668dc73ebc4dfd62274f0d3
[builder.git] / source / objectfile.h
1 #ifndef OBJECTFILE_H_
2 #define OBJECTFILE_H_
3
4 #include "target.h"
5
6 class Component;
7 class SourceFile;
8
9 class ObjectFile: public Target
10 {
11 public:
12         ObjectFile(Builder &, const Component &, SourceFile &);
13         const char      *get_type() const { return "ObjectFile"; }
14         const Component &get_component() const { return comp; }
15         void            find_depends();
16         Action          *build();
17 private:
18         const Component ∁
19         TargetList      new_deps;
20         
21         void find_depends(Target *);
22         void add_depend(Target *);
23
24         static std::string generate_target_name(const Component &, const std::string &);
25 };
26
27 #endif