For example I have 2 Makefiles: Makefile.Debug
and Makefile.Release
.
I can switch between them by setting different commands in:
C/C++ Build -> Builder Settings -> build command : make -f Makefile.Debug -j4
or make -f Makefile.Release -j4
, but how can I switch between two makefiles in Eclipse GUI (Like in Visual Studio debug/release configurations)?
Create two Build configurations in Eclipse, each with a different make command. Then, you can click the down arrow near the hammer in Eclipse's top bar to switch configuration.
Detailed steps:
(I haven't a copy of Eclipse on this PC right now so I can't send screenshots, sorry.)