Top "Makefile" questions

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

makefile execute another target

I have a makefile structured something like this: all : compile executable clean : rm -f *.o $(EXEC) I realized that I …

makefile
Debugging the error "gcc: error: x86_64-linux-gnu-gcc: No such file or directory"

I'm trying to build: https://github.com/kanzure/nanoengineer But it looks like it errors out on: gcc -DHAVE_CONFIG_…

python gcc makefile autotools
Can I compile all .cpp files in src/ to .o's in obj/, then link to binary in ./?

My project directory looks like this: /project Makefile main /src main.cpp foo.cpp foo.h bar.cpp bar.h /…

c++ build-process makefile
How to place object files in separate subdirectory

I'm having trouble with trying to use make to place object files in a separate subdirectory, probably a very basic …

makefile gnu-make
Using 'make' on OS X

I have a MacBook Pro that I'm trying to do some development on. I have a program I want to …

macos makefile terminal
How to solve error: "Clock skew detected"?

I am uploading my OpenCL and Cuda code to hgpu.org because I don't have a graphics card on my …

makefile clock
How to pass macro definition from "make" command line arguments (-D) to C source code?

I usually pass macro definitions from "make command line" to a "makefile" using the option : -Dname=value. The definition is …

c macros makefile
"multiple target patterns" Makefile error

My makefile fails with error: Makefile:34: *** multiple target patterns. Stop. What does it really mean, how can I fix this? (…

makefile
Multiline bash commands in makefile

I have a very comfortable way to compile my project via a few lines of bash commands. But now I …

bash makefile
Why does make think the target is up to date?

This is my Makefile: REBAR=./rebar REBAR_COMPILE=$(REBAR) get-deps compile all: compile compile: $(REBAR_COMPILE) test: $(REBAR_COMPILE) skip_…

makefile