X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnuccompiler.cpp;h=7089a26ec341a1dfe3e0e8c2c5b18a3e5755d4b3;hb=3f1f24c02c5ef21791e5b24ff535d59969cd7625;hp=4ff46e82ca22fc56219b3a4f466d22f3471cf72a;hpb=338eefb513953ae55e8e3614c009c242ba8ad74e;p=builder.git diff --git a/source/gnuccompiler.cpp b/source/gnuccompiler.cpp index 4ff46e8..7089a26 100644 --- a/source/gnuccompiler.cpp +++ b/source/gnuccompiler.cpp @@ -1,10 +1,22 @@ +#include "csourcefile.h" #include "gnuccompiler.h" using namespace std; using namespace Msp; -GnuCCompiler::GnuCCompiler(Builder &b): - GnuCompiler(b, "CC", "gcc") +GnuCCompiler::GnuCCompiler(Builder &b, const Architecture &a): + GnuCompiler(b, a, "CC", "gcc") { input_suffixes.push_back(".c"); + aux_suffixes.push_back(".h"); +} + +Target *GnuCCompiler::create_source(const Component &comp, const FS::Path &path) const +{ + return new CSourceFile(builder, comp, path); +} + +Target *GnuCCompiler::create_source(const FS::Path &path) const +{ + return new CSourceFile(builder, path); }