Questions tagged [makefile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Makefile explanation. Understanding someone else's Makefile [migrated]

I am relatively new to programming on Linux. I understand that Makefiles are used to ease the compiling process when compiling several files. Rather than writing "g++ main.cpp x.cpp y.cpp -o ...
0
votes
1answer
94 views

RPC header not found despite being installed

I'm trying to install MB-system on my Arch Linux machine. I installed all necessary dependencies and have the package libtirpc installed. When running the configure script, it ends with: checking rpc/...
0
votes
0answers
83 views

How to fix cmake error on payday 2 super blt source in debian buster

I have debian 10 running on a virtual machine inside windows 10. I have installed build-essential, openssl, libssl-dev, libcurl4-openssl-dev, and cmake. I am trying to have cmake generate a makefile ...
0
votes
0answers
80 views

Failure to reference libpcap library

I'm running Ubuntu 16.04. I'm trying to install cdpsnarf which requires the libpcap library. I've tried to install libpcap by doing the following: #in /usr/lib $ sudo git clone https://github.com/...
0
votes
1answer
242 views

Can one make symlinks in Makefiles that work on Linux and Windows?

I have a project comprised of tasks. Each task has three subdirectories: input, code, and output. In the code directory resides a Makefile with the recipes needed to make the output from the code and ...
1
vote
0answers
45 views

DMX4LINUX drivers wont build properly

I am currently troubleshooting a situation in which I am trying to build drivers for ENTECC'S Open DMX to usb converter. I am currently building this on a Raspberry Pi 3, using the pre release ...
0
votes
0answers
40 views

Error when compiling the makefile of SEISMIC UNIX at windows using cygwin

I have been trying to install Seismic Unix on Windows using cygwin. When trying to compile the makefile i get the following error: """ $ make install ./chkroot.sh: line 5: $'\r': command not found ./...
0
votes
0answers
24 views

Creating a generic makefile for programs using the same static library

I have a static library called libXbgi.a at /usr/lib. I want to be able to compile any program using that library by doing just make <program>. Here's what I have in my Makefile now CXX=g++ ...
0
votes
0answers
7 views

Some Basic Questions about Make: Compiling a Report with Figures

I'm trying to get Make working for recompiling reports every time a figure gets updated. I have the following code: fig1.eps : images/code/fig1.m matlab -nodesktop -nosplash -r 'run ./images/...
0
votes
1answer
31 views

autotools dosnt create Makefile.im or Makefile on new computer

So i have a problem compiling my software project on my new computer. Unfortunately my old computer is broken and i have to use the new one. My Problem is, that i cant build my software project the ...
0
votes
1answer
398 views

cocotb-config: command not found

Im running into an issue with cocotb make files cant be found?? $ git clone https://github.com/potentialventures/cocotb Cloning into 'cocotb'... $ cd cocotb/examples/endian_swapper/tests $ make ...
2
votes
1answer
3k views

Install R 3.5.2 under Ubuntu: “jni.h: No such file or directory”

I have a problem with installing the newest version of R, an error "fatal error: jni.h: No such file or directory" that I don't understand appeared. Here is what I did before getting an error in the ...
0
votes
1answer
51 views

Has anyone managed to build the STAF framework on raspberry pi with os raspbian v9?

STAF (Software Testing Automation Framework) is a open source framework for testing automation http://staf.sourceforge.net/index.php. It is supported for several platform but not yet for raspberry, ...
0
votes
1answer
56 views

Trying to compile Asylia via its makefile, with MinGW… Wrong compiler? How to fix?

I'm trying to compile Asylia via its makefile, with MinGW... Am I using the wrong compiler? It's seems MinGW is getting stuck on the square brackets in "$(BUILD):"... And square brackets in MinGW are ...
-4
votes
1answer
205 views

What does 'xxx' mean in Makefile? [closed]

I'm trying to looking for the meaning of 'xxxxxx' in Makefile as the below example. ## Variables and scripts NCROOT = `ncroot` TEST_NAME = apb_uart_rx_tx what is the ncroot? Is ...
0
votes
1answer
35 views

Is this make behavior expected?

My folder structure looks like this: . ├── app.c ├── inc │   ├── butil.h │   └── libs │   ├── flagutil.h │   ├── libflagutil.c │   └── libflagutil.o └── Makefile My Makefile looks like ...
0
votes
1answer
165 views

Failed to compile with make command

I'm working on cygwin. Most Unix commands work just fine. Also I can compile with g++ and gcc, but I get the error below when I execute make: /cygdrive/b/tpm/src $ make -f makefile.mak "c:/program ...
1
vote
1answer
188 views

configure command doesn't generate Makefile?

Here is my code: ubuntu@ubuntu:~/tpm2-tss$ ./configure --enable-unit checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file ...
1
vote
2answers
236 views

Linux From Scratch [closed]

I am currently doing Linux From Scratch.I downloaded some packages.I unzip them using the "tar" command and do the following inside that extracted package: configure make make test make install One ...
2
votes
1answer
83 views

Use variable inside of command in Makefile

Let's say the LINK variable contains the following: 1a2b3c. I'd like to display Full path: /home/build/1a2b3c. PWD is currently at /home; I can't get the following to work: @echo "Full path: $(...
1
vote
0answers
1k views

How to port $(shell find . -name '*.cpp') on windows?

I have this in makefile: # find cpp files in subdirectories SOURCES := $(shell find . -name '*.cpp') So I wanted to make generic FIND command that behaves correctly on windows and linux: ifeq ($(OS)...
0
votes
1answer
267 views

Unable to use make when building fbida (fbi) from source

I am trying to install fbida (Fbi), framebuffer image viewer, on Ubuntu 16.04. I am trying to build from source fbida v2.13 (www.kraxel.org/releases/fbida/) since when I do install using sudo apt-get ...
0
votes
2answers
28 views

Why Make keeps creating directory over and over?

i have a makefile that creates some docs from my source: /home/share/htdocs: #installs apache and make sure we have /htdocs... /home/share/htdocs/doxjs: /home/share/htdocs mkdir -p $@ chgrp ...
3
votes
2answers
4k views

Send env to a makefile target

I am trying to set an env var which is git sha1 commit for a makefile target. I am setting a lot of env vars and only this fails with no such file or directory error. I am hell confused. Please help ...
9
votes
1answer
6k views

How to escape “$@” in a makefile?

test: @echo "#!/bin/bash\njava -classpath \"$(CLASSPATH)\" com.atm.ATM \"$@\"" > test @chmod a+x test I am trying to escape the "$@" so that it literally appears in the "test" script as "$@...
-1
votes
1answer
202 views

Why use RANLIB=echo in a makefile?

I generally have RANLIB=ranlib in a makefile, but I came across makefiles with RANLIB=echo or RANLIB=@echo or RANLIB=echo >/dev/null. I am looking for an explanation for such usages.
0
votes
1answer
631 views

Running scripted commands within a makefile (Linux make)

I have battled with this for the most of last night. I want to rename all the files xxxx-yyyy to xxxx:yyyy in a folder from a makefile. I have a renamefiles.sh which does the job fine: #!/bin/sh ...
2
votes
1answer
88 views

Understanding a makefile script for Linux

I am using fpgalink fx2 to build on a Windows machine. Here is makefile what is meaning of following script : BRANCH := $(shell TRY=$(CURDIR) BRANCH=dev while [ "$${TRY}" != "$(ROOT)" -a "$${TRY}" !=...
1
vote
1answer
697 views

Makefile issues with interactive shells started as a target

Currently having a weird problem: Got a Makefile to get some handy shortcuts inside a Project: shell: docker exec -it $(web) sh ... ..which basically invokes an interactive shell inside a ...
0
votes
1answer
527 views

Usage of Bash commands in Nested Loops in Makefile

I want to use bash commands in nested loops in makefile, my current code is not working. Can some one guide me what can be the problem. I have written a simple code in test target. Here, I want to go ...
2
votes
1answer
4k views

Should make contain `-rm` or `rm -f` [closed]

The question should be clear from the title, but here goes. Which is better, or, are there any better options: thing: rm -f a.file b.file doTheMake thing: -rm a.file b.file ...
2
votes
1answer
4k views

Bash commands in Makefile

I want to use bash commands in Makefile along with MATLAB scripts. Currently when i put a simple bash command in Makefile and run that target, I get error /bin/bash: ./test1: No such file or ...
0
votes
0answers
126 views

Makefile doesn't work with “modules”

I have this makefile of WrapFS. My problem is that make doesn't work when I add "modules" to all part. When I delete "modules", make works, yet doesn't generate wrapfs.ko. WRAPFS_VERSION="0.1" ...
0
votes
0answers
96 views

What are the -DPOSIX and -DXWINDOWS flags for in Makefiles?

I see -DPOSIX has something to do with POSIX compliancy...which I can kinda get my head around because my program uses a posix library (pthreads) but I can't dig up anything relevant on what -...
0
votes
1answer
589 views

How do I make sure my code is compiling with -o3 in gnu make?

I have a huge Makefile I'm working with and trying to trim down. Right now, it's layed out to build several different programs with tons of options I'll never use. My hope is to first make sure the ...
2
votes
1answer
4k views

Proper syntax for escaping a `$` in a regex in a bash shell script/makefile?

I'm running a Makefile which includes the following line... find ./ -type f -regextype emacs -regex ".*tests$" | xargs rm -f and am getting an error: find ./ -type f -regextype emacs -regex ".*...
2
votes
0answers
105 views

How to add a 'greek' character in the path using cURL?

I have a Makefile where one of many tasks is to upload a file using cURL, one of these files, has a greek character in the name and when I try to upload using cURL, I receive this error: curl: (43) A ...
2
votes
0answers
2k views

GCC option : Unrecognized command line

I am trying to build my project with the gcc compiler, but I get this error: gcc: error: unrecognized command line option '-mthumb' Isn't -mthumb a default option for gcc? output of gcc --version:...
3
votes
0answers
333 views

How do I write a Makefile target for hundreds of numbered files?

I have some art projects that use blender as part of the toolchain. I would like to be able to write a Makefile target which specifies that several hundred files can be updated with a single command. ...
0
votes
1answer
1k views

Linux - make install without replacing symlinks

I recently (and foolishly, since there is a simple solution here, had I set --prefix= option to something other than it's default /usr/bin) configured and maked gcc-4.9.1, without setting the --prefix=...
0
votes
2answers
2k views

./xsum: Permission denied make: *** [xsum.out] Error 126

I am trying to insall f2c/f77 compiler on mac osx using the instructions given http://www.webmo.net/support/fortran_osx.html and I get the following error : ./xsum: Permission denied make: *** [xsum....
2
votes
1answer
2k views

Removing multiple files from directory, as specified by variable in Makefile

I have a Makefile with the following configured for installing man pages MANDIR = /usr/share/man/man1 MANPAGES = exec1.1 exec2.1 make install triggers the following: install: $(MANPAGES) ...
0
votes
0answers
548 views

“chown” for “make install” command?

On my Linux server, I accidentally executed sudo make install for an application install. I intended to execute make install without sudo privilege. How do I change the ownership of all installed ...
1
vote
1answer
53 views

Is there any way to see make file with all variables substituted

I have huge long makefile written by some other guy, where all coomands contain variables. In order to decode what this command is doing i have look around what that variable is and its taking too ...
0
votes
1answer
62 views

Need assistance with understanding this make file for debian linux

I have this code in make file and i could not get it CHECK=dpkg -L $1 2>&1 >$(NULL) || $(APT) install -y $1 install.dpkg.%: $(call CHECK,$*) I want to know I have read that $* means ...
0
votes
1answer
986 views

make does not show option on pressing tab on centos

In my office i have ubuntu where in my project folder i have Makefile. If i got to folder and then press make and then tab then it shows all option but at my home i am pressing table after Make and ...
0
votes
1answer
102 views

How can i get simple makefile tutorial without compilers [closed]

In my project our coder have written the makefile for installing and deploying the web application like make install.php which then contain instructions to install it. I am searching google and you ...
1
vote
1answer
1k views

Android makefiles(.mk) documentation [closed]

I want to learn about android makefiles. How to write and modify them. Could you please guide me to the official android documentation related to this? Also Other helping resources would be of great ...
0
votes
1answer
30 views

Structure of make files for automatic installation

We are doing one project and our contractor is taking care of installing all things required to install in linux. he has make file for that. That file is very big and he has used verious constants ...
3
votes
1answer
4k views

Is it possible to compile with make.inc and Makefile

I am a newbie to the use of make files. I have added a new module in project using make.inc The structure of project is like:- /Project/build.sh /Project/make.inc /Project/Module1/Makefile /...