Code::Blocks Forums

User forums => Help => Topic started by: jfpjr on June 09, 2014, 12:17:36 am

Title: Compiler Options
Post by: jfpjr on June 09, 2014, 12:17:36 am
I am trying to add the options found in a make file to a code::blocks project and can't seem to find the right combination.

CPPDEPS = -MT$@ -MF$@.d -MD -MP.

Have searched the forums and couldn't find anything.

Title: Re: Compiler Options
Post by: oBFusCATed on June 09, 2014, 01:01:11 am
Care to explain what is the purpose of these options?
Title: Re: Compiler Options
Post by: jfpjr on June 09, 2014, 01:25:49 am
Definitions on these option are here.

http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Preprocessor-Options.html

They are listed in a make file I am trying to convert to a project and am trying to match the compiler output between the two.

Title: Re: Compiler Options
Post by: oBFusCATed on June 09, 2014, 03:34:08 am
You can't literally.
You have to make multiple project in a workspace or multiple targets in a project.

You can set dependencies between project and the targets are compiled from top to bottom.
Title: Re: Compiler Options
Post by: jfpjr on June 09, 2014, 10:05:46 pm
To answer my own question.
I found on the Settings Menu->Compiler->Other settings->Advanced settings button->Command->Generate dependencies for file->Command  $compiler -MM $options -MF $dep_object -MT $object $includes $file
Evidently it is done behind the scene by code::blocks.

Thanks for the reply.
Title: Re: Compiler Options
Post by: oBFusCATed on June 09, 2014, 11:49:03 pm
I'm not sure this command is used for the built-in build system.
The built-in one uses depslib generated dependencies and dependencies specified by the user.