tagged [makefile]

Makefile with different rules for .o generation

Makefile with different rules for .o generation If I have a rule like this in my make file: ``` CC = g++ CFLAGS = -Wall COMPILE = $(CC) $(CFLAGS) -c src = A.cpp \ main.cpp test_src = Test.cpp test ...

1 Sep at 00:58

Hunk #1 FAILED at 1. What's that mean?

Hunk #1 FAILED at 1. What's that mean? I get the following error when running `make`, and I have no idea what it means or what to do about it. Can anyone illuminate me or point me in the right directi...

11 Jan at 16:37

Makefile ifeq logical or

Makefile ifeq logical or How do you perform a logical OR using make's `ifeq` operator? e.g., I have (simplified): but would like to consolidate these lines. (yes, yes, autotools, configure, etc etc; t...

23 May at 10:31

How to use GNU Make on Windows?

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`. I would like to run cmd.exe and there type, for example, `m...

29 Aug at 12:59

Debugging a Makefile

Debugging a Makefile Let me prefice this question with the comment that I know very little about Makefiles or make. There is a very large project that is automatically built nightly. It is built in bo...

14 Jul at 23:2

Make dependency generation using shell and %?

Make dependency generation using shell and %? I have a bunch of directories. I want to build an object for each directory. Suppose OBJS contains "build/dir1 build/dir2 build/dir3", and the pattern I'm...

4 Oct at 05:23

makefile execute another target

makefile execute another target I have a makefile structured something like this: I realized that I was consistently running "make clean" followed by "clear" in my terminal before running "make all". ...

16 Jul at 17:23

Using 'make' on OS X

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 build, and when I went to use `make` to build it, I got a "command not found" error. I d...

29 Jul at 11:11

"make clean" results in "No rule to make target `clean'"

"make clean" results in "No rule to make target `clean'" I am running Ubuntu 10.04. Whenever I run `make clean`, I get this: > make: *** No rule to make target `clean'. Stop. Here is my makefile: ``` ...

26 Apr at 08:47

What's the opposite of 'make install', i.e. how do you uninstall a library in Linux?

What's the opposite of 'make install', i.e. how do you uninstall a library in Linux? While running on a MinGW/MSYS system for a library I had previously run I came across this message: > WARNING: A ve...

16 Jul at 10:45

How to install and use "make" in Windows?

How to install and use "make" in Windows? I'm following the instructions of someone whose repository I cloned to my machine. I want to use the `make` command as part of setting up the code environment...

5 Mar at 23:9

Windows 7 - 'make' is not recognized as an internal or external command, operable program or batch file

Windows 7 - 'make' is not recognized as an internal or external command, operable program or batch file I have Windows 7 and tried to use the 'make' command but 'make' is not recognized as an internal...

29 Jul at 04:14

How to install "make" in ubuntu?

How to install "make" in ubuntu? I'm trying to install "yum" or "apt-get" into my system "ubuntu centOS". I did download the binary files for these two programs from the internet using the command wge...

13 Aug at 13:14

Makefiles with source files in different directories

Makefiles with source files in different directories I have a project where the directory structure is like this: ``` $projectroot | +---------------+----------------+ | ...

16 Jul at 18:2

How to generate a Makefile with source in sub-directories using just one makefile

How to generate a Makefile with source in sub-directories using just one makefile I have source in a bunch of subdirectories like: In the root of the project I want to generate a single Makefile using...

23 Oct at 19:56

How to define several include path in Makefile

How to define several include path in Makefile New to C++; Basic understanding of includes, libraries and the compile process. Did a few simple makefiles yet. My current project involves using an info...

2 Feb at 23:41

make: *** [ ] Error 1 error

make: *** [ ] Error 1 error I am trying to compile a Pro*C file on gcc and I am getting this error : This is the command printed by make: ``` /usr/bin/gcc -g -fPIC -m64 -DSS_64BIT_SERVER -I/home/med/s...

4 Apr at 07:31

Program "make" not found in PATH

Program "make" not found in PATH I'm having the Program "make" not found in PATH error in eclipse. I checked the path variable which is: ``` C:\cygwin\bin; %JAVA_HOME%\bin; %ANT_HOME%\bin; %ANDROID_SD...

16 Jun at 04:10

Makefile error make (e=2): The system cannot find the file specified

Makefile error make (e=2): The system cannot find the file specified I am using a makefile in windows to push some files on a Unix server (here a text file "blob.txt" in the same folder of my makefile...

12 Nov at 15:23

CFLAGS vs CPPFLAGS

CFLAGS vs CPPFLAGS I understand that CFLAGS (or CXXFLAGS for C++) are for the compiler, whereas CPPFLAGS is used by the preprocessor. But I still don't understand the difference. I need to specify an ...

17 Dec at 12:56

How to use LDFLAGS in makefile

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 has to be linked. My makefile looks like this: When I run `make`, I get the f...

19 Jan at 13:45

make *** no targets specified and no makefile found. stop

make *** no targets specified and no makefile found. stop I have a problem installing package `dionaea`. After I type this: ``` ./configure --with-lcfg-include=/opt/dionaea/include/ \ --with-lcfg-lib=...

26 Oct at 04:57

How to discover number of *logical* cores on Mac OS X?

How to discover number of *logical* cores on Mac OS X? How can you tell, from the command line, how many cores are on the machine when you're running Mac OS X? On Linux, I use: It's not perfect, but i...

11 Jun at 21:41

How to solve error: "Clock skew detected"?

How to solve error: "Clock skew detected"? I am uploading my OpenCL and Cuda code to [hgpu.org](http://hgpu.org) because I don't have a graphics card on my laptop. When I upload my code I get the foll...

9 Jun at 13:52

does every .exe file need a new project in Microsoft Visual C++?

does every .exe file need a new project in Microsoft Visual C++? My background is Linux and traditional makefiles. I have a project where the makefile builds several dozen executables I can then run t...