I’m trying to get accustomed to using Emacs for building and debugging, although I’m having some difficulties. My biggest problem right now is that I need to be in (e.g. have a file open in) the root directory to make -k my applications and I need to be in the binaries directory to run gdb MyApp.
Is it futile to try to get Ctrl+Shift+B to make -k -C <my_hard_coded_dir> and some type of ditto with F5 running gdb <MyApp> from my bin directory? Never mind if the shift key is to much of a hassle for Emacs.
To specify what M-x make uses for compilation, you specify the compile-command variable.
For your GDB stuff, the variable is gud-gdb-command-name, so