Makefile:2: *** missing separator. Stop

You need a real tab instead of space in front of g++ and rm commands. If still fails then your editor is inserting spaces instead, even if you’re hitting the tab key on your keyboard. You need to configure your editor to insert hard tabs (09 in ASCII) instead. Like Instead ***** replace TAB. You can check your side by command … Read more

how to “execute” make file

You don’t tend to execute the make file itself, rather you execute make, giving it the make file as an argument: If your make file is actually one of the standard names (like makefile or Makefile), you don’t even need to specify it. It’ll be picked up by default (if you have more than one of these standard names … Read more

How to print out a variable in makefile

In my makefile, I have a variable ‘NDK_PROJECT_PATH’, my question is how can I print it out when it compiles? I read Make file echo displaying “$PATH” string and I tried: Both gives me Any one knows why it is not working for me?

How to use LDFLAGS in makefile

Your linker (ld) obviously doesn’t like the order in which make arranges the GCC arguments so you’ll have to change your Makefile a bit: In the line defining the client target change the order of $(LDFLAGS) as needed.

How to install and use “make” in Windows?

make is a GNU command so the only way you can get it on Windows is installing a Windows version like the one provided by GNUWin32. Anyway, there are several options for getting that: The most simple choice is using Chocolatey. First you need to install this package manager. Once installed you simlpy need to install make (you may need … Read more

What are the differences between make clean, make clobber, make distclean, make mrproper and make realclean?

Trying to form my own answer based on some research. I think the approximate order of severity is; mostlyclean, clean, maintainer-clean, mrproper, distclean and finally clobber (which is combined distclean and uninstall). make clean make clean is the most basic level. It cleans up most generated files but not anything that records configuration. GNU Make … Read more