I want to switch completely from using Windows to Linux (Ubuntu). Last issue that prevents me from transition is necessity to code in C++. On Windows I use Visual Studio. On Linux, I am currently struggling with understanding how make works.
I need set of simple instructions and tips. Provided I have five files: main.cpp, BuisnessCard.h, BuisnessCard.cpp, Tell.h, Tell.cpp. Please, tell me, how to create Makefile, so it will complete following tasks for me:
1) When I type make main
I'd like it to create "executable" file ./main, which will include code from BuisnessCard.h and Tell.h (and of course. according .cpp files).
2) When I type make main_debug
, it'll perform same action, but with different compile options (called flags?)
Could anyone answer my questions or provide links to elemental tutorials? I have already tried: MRBook's tutorial and this SO post, but it is a bit too advanced already, while I don't seem to get the basics.