]> git.tdb.fi Git - builder.git/blob - source/objectfile.h
Add comments
[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 /**
10 Object files are compiled from source files.
11 */
12 class ObjectFile: public Target
13 {
14 public:
15         ObjectFile(Builder &, const Component &, SourceFile &);
16         const char      *get_type() const      { return "ObjectFile"; }
17         const Component &get_component() const { return comp; }
18         void            find_depends();
19         Action          *build();
20 private:
21         const Component ∁
22         TargetList      new_deps;
23         
24         void find_depends(Target *);
25         void add_depend(Target *);
26
27         static std::string generate_target_name(const Component &, const std::string &);
28 };
29
30 #endif