What is the difference between gmake and make?

‘gmake’ refers specifically to GNU make. ‘make’ refers to the system’s default make implementation; on most Linux distros this is GNU make, but on other unixes, it could refer to some other implementation of make, such as BSD make, or the make implementations of various commercial unixes. The language accepted by GNU make is a … Read more

The difference between .mk file and Makefile

A make file can have any name. The -f option of make is used to specify which file to use: You can even use -f several times: In which case make processes the files in order (or, equivalently, concatenates the files and processes the result). makefile and Makefile are special names because if make is called without the -f option it automatically searches for them, in this order, and use the first … Read more

makefile “no such file or directory”

Unless all of your directories (i.e., BIN_DIR, SRC_DIR) are in the root directory (/) then that is why you’re getting the error. You either want to remove the initial slash or you can use an environment variable prefix like SRC_DIR = $(MY_PROJECT_BASE_DIRECTORY)/src.

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 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

tech