Code::Blocks

User forums => Help => Topic started by: hd on January 10, 2005, 12:50:10 am

Title: build targets (debug/release etc)
Post by: hd on January 10, 2005, 12:50:10 am
Hi,


If a source file used in one more targets, than IDE don't generate build command except one target.

After a small change in makefilegenerator.cpp I can successfully compile
debug/release targets :)) as shown below:


void MakefileGenerator::DoAddMakefileTarget_Objs(wxString& buffer)
{
    //hd... m_ObjectFiles.Clear();
    wxString tmp;
    int targetsCount = m_Project->GetBuildTargetsCount();
    for (int x = 0; x < targetsCount; ++x)
    {
        ProjectBuildTarget* target = m_Project->GetBuildTarget(x);
        if (!target)
            break;
       
        m_ObjectFiles.Clear(); //hd...

        ....
       

--
Regards,
Hakki Dogusan
 :lol:
Title: build targets (debug/release etc)
Post by: hd on January 10, 2005, 12:52:55 am
Hey too much smiling icons there... I think I'm happy :)
Title: build targets (debug/release etc)
Post by: hd on January 10, 2005, 12:57:14 am
I forgat something:

For each target I created a distinct object directory: .objs, objsd etc.

HTH
--
Regards,
Hakki Dogusan