X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectfile.h;h=dbb49fe02c8355d3f43f9eaa24f3ce0016a25851;hb=f52ca29f2357618da9e87a08bfd61f8a0058a8e1;hp=9fa49794610bcd2ba53b2ffa5d87e2718becc2de;hpb=59ac0a44d6edf179c01604c6ced744873213f855;p=builder.git diff --git a/source/objectfile.h b/source/objectfile.h index 9fa4979..dbb49fe 100644 --- a/source/objectfile.h +++ b/source/objectfile.h @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef OBJECTFILE_H_ #define OBJECTFILE_H_ @@ -6,16 +13,24 @@ class Component; class SourceFile; +/** +Object files are compiled from source files. +*/ class ObjectFile: public Target { public: ObjectFile(Builder &, const Component &, SourceFile &); - const char *get_type() const { return "ObjectFile"; } - void find_depends() { } - Action *build(); + const char *get_type() const { return "ObjectFile"; } + const Component &get_component() const { return comp; } + void find_depends(); private: const Component ∁ + TargetList new_deps; + void find_depends(Target *); + void add_depend(Target *); + virtual Action *create_action(); + static std::string generate_target_name(const Component &, const std::string &); };