Top "Makefile" questions

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

How do I force make/GCC to show me the commands?

I'm trying to debug a compilation problem, but I cannot seem to get GCC (or maybe it is make??) to …

gcc makefile verbosity
How to get current relative directory of your Makefile?

I have a several Makefiles in app specific directories like this: /project1/apps/app_typeA/Makefile /project1/apps/app_typeB/…

makefile gnu-make working-directory
How to install and use "make" in Windows?

I'm following the instructions of someone whose repository I cloned to my machine. What I want is simple: to be …

makefile windows-8 windows-10 gnu-make
how to "execute" make file

I tried to use a make file in code::blocks but I am doing it wrong. I have the version …

file makefile execute
How to use LDFLAGS in makefile

I am new to Linux OS. I am trying to compile a .c file using a makefile. The math library …

makefile ldflags
How to write loop in a Makefile?

I want to execute the following commands: ./a.out 1 ./a.out 2 ./a.out 3 ./a.out 4 . . . and so on How to …

makefile loops
How do I make a simple makefile for gcc on Linux?

I have three files: program.c, program.h and headers.h. program.c includes program.h and headers.h. I …

c gcc makefile
CMake output/build directory

I'm pretty new to CMake, and read a few tutorials on how to use it, and wrote some complicated 50 lines …

c++ build makefile cmake output
Passing arguments to "make run"

I use Makefiles. I have a target called run which runs the build target. Simplified, it looks like the following: …

makefile
What is makeinfo, and how do I get it?

I'm trying to build GNU grep, and when I run make, I get: [snip] /bin/bash: line 9: makeinfo: command not …

ubuntu gcc makefile grep