Author Topic: Compiler Options  (Read 4364 times)

Offline jfpjr

  • Multiple posting newcomer
  • *
  • Posts: 27
Compiler Options
« 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.


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Compiler Options
« Reply #1 on: June 09, 2014, 01:01:11 am »
Care to explain what is the purpose of these options?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jfpjr

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: Compiler Options
« Reply #2 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.


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Compiler Options
« Reply #3 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jfpjr

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: Compiler Options
« Reply #4 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Compiler Options
« Reply #5 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]