Top "Makefile" questions

A makefile is an input file for the build control language/tool make.

OS detecting makefile

I routinely work on several different computers and several different operating systems, which are Mac OS X, Linux, or Solaris. …

makefile os-agnostic os-detection
Define make variable at rule execution time

In my GNUmakefile, I would like to have a rule that uses a temporary directory. For example: out.tar: TMP := $(…

makefile gnu-make
How to use GNU Make on Windows?

I installed MinGW and MSYS, added C:\MinGW\bin to PATH but I still can't run Makefile on Windows' cmd. …

windows makefile gnu-make cmd
Compiling with g++ using multiple cores

Quick question: what is the compiler flag to allow g++ to spawn multiple instances of itself in order to compile …

c++ compiler-construction makefile g++ multicore
How to pass argument to Makefile from command line?

How to pass argument to Makefile from command line? I understand I can do $ make action VAR="value" $ value with …

command-line parameters makefile arguments
How to call Makefile from another Makefile?

I'm getting some unexpected results calling one makefile from another. I have two makefiles, one called /path/to/project/makefile …

makefile gnu-make
CFLAGS, CCFLAGS, CXXFLAGS - what exactly do these variables control?

I am using GNU make to compile my C++ code, and i would like to understand how to make my …

gcc naming-conventions makefile
How do you get the list of targets in a makefile?

I've used rake a bit (a Ruby make program), and it has an option to get a list of all …

makefile gnu-make targets
Where can I set path to make.exe on Windows?

When I try run make from cmd-console on Windows, it runs Turbo Delphi's make.exe but I need MSYS's make.…

c++ registry makefile path msys
Cygwin Make bash command not found

I installed cygwin with all the packages on windows 7 64 bit. For some reason the make command is giving me an …

c++ makefile cygwin command