Code::Blocks Forums
User forums => Help => Topic started 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.
-
Care to explain what is the purpose of these options?
-
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.
-
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.
-
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.
-
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.