Category "makefile"

Makefile: sources inside path with spaces

I am writing a Makefile for a project where all the cpp files are in subdirectories and some of them contains spaces: └──  L0/ &

Preserving order of prerequisites in $^ in GNU make

Given this makefile .SUFFIXES: .mmd .tmp .html a.html : h.tmp a.tmp b.html : h.tmp b.tmp c.html : h.tmp c.tmp C.tmp .tmp.html: cat $^ > $@ .mmd.tm

makefile evaluates $(eval...) first prior to multiline IF's condition in the target

My issue: Inline $(eval...) evaluated first, then "IF" is evaluated. What I expect from the SSM target is "IF condition is evaluated first and only then $(eval.

Make cause gcc to throw "No such file or directory" even though gcc in command line works fine [closed]

I want to use make to compile my c programs, but make seems to throw an error when simply using gcc doesn't. What I tried: ┌─γ

Best way to manage Terraform apply infra -AWS batch- run a script (could take 1hr to 1day) - destroy infra

Hi All I am planning to build a system for my team where we can start a AWS batch infra - run a task - once job done destroy the infra. I am thinking of : Make

Makefile with arbitrarily many mains. How to compile all mains with one command?

I am still newish to makefile patterns. I have been working on a project based on a template makefile and project structure, however I have a good sense of what

Make can't find boost header in docker container

I'm trying to build a simple client server connection in docker with boost sockets. When I compile the files on ubuntu without docker it works. But when I try r

Lithuanian stemming algorithm

I've been trying to execute lithuanian snowball stemmer in Python. There is a github link where a guy shows how to integrate it using Python but I'm stuck at co

How do you use mktemp to create directory in Makefile?

This is a Makefile piece of code of how someone may use mktemp in a Makefile TEST=$(shell mktemp -d) mktemp: echo $(TEST) touch $(TEST)/test.txt ls

Linking problems/ -nostdlib (FreeRTOS+CLI on RPi4)

Background: I followed the instruction from Tlmada (https://github.com/TImada/raspi4_freertos) to get FreeRTOS on RPi4. (Host: Ubuntu 18.04, Cross-Compiler: aar

Missing separator in generated Makefile

I'm trying to compile this decade-old project: https://github.com/komar007/freecg The makefile generates Makefile.dep which seems incorrectly formatted. How sho

xmlstarlet output with quotes

I have a list of XPath queries modeled in an XML file as follows (querylist.xml) : <queries> <query id="1" project="docbook" xpath=".//@id|.//@xml:

How to create a binary package in OpenWrt

I would like to create a binary package in OpenWrt. Initially, it would contain a single binary executable and a shared library it depends on. I can see example

How can I store my .o files in a sepparate folder?

INCDIR=include SRCDIR=src SRC = $(wildcard $(SRCDIR)/*.cpp) DEPS = $(wildcard $(INCDIR)/*.h) OBJ = $(SRC:.cpp=.o) CFLAGS = -I$(INCDIR) -Wall -Weffc++ -Wextr

Im trying to compile program on Ubuntu and dont understand some things

Im a Windows dev who has no expirience on building C/C++ programs on Linux, but now I need to. Right way would be to go and learn Make and g++ compiler, but bef

Connecting your own header file in C

Project structure: enter image description here When starting the makefile, I get an error: src/main.c:1:10: fatal error: lib/hello.h: No such file or directory

GNU Make: expand pattern before passing to Shell

I want to use an awk script to figure out the which modules have to be compiled before I can compile a FORTRAN source file. My project is structured in a way th

Building kernel with `-save-temps`

I'm building the Linux Kernel with the gcc options -save-temps in order to see exactly how all the C files get preprocessed. I followed the instructions here, b

pybind11.h: No such file or directory

I am trying to compile Deepstream 6.0 Python bindings. My guess it that the issue not related to Deepstream, but to general C/C++ compiling issues: sudo apt ins

ld: fatal: file bcPACplacebo.o: wrong ELF class: ELFCLASS32

Below are my environments that I am running my project which has C and CPP codes. uname -a: SunOS nzdrb12z 5.11 11.4.40.107.3 sun4v sparc sun4v non-global-zone