I am developing a C ++ application in Eclipse with a CDT plugin using my own Makefile. Is there a way to get Eclipse to start make allbefore I start the project, but make debugbefore trying to debug it? I want the application to be compiled with -gswitch during debugging, but with -O3, when I run it, without having to manually rewrite the switch -gin the Makefile every time.
make all
make debug
-g
-O3
thank
++ "Makefile Project" ( , Makefile), "Build configuration" :
Project > Build Configurations > Manage ...
"", "", "Release" "Default", " "., / :
Project > Build Configurations > Set active > ...
, ! .