Questions tagged as 'makefile'

1
answer

How to compile c ++ with SFML library within the project itself

Hello, people who like to program. I'm having a problem that until now researching in the donkey dad (Google) I could not solve. I am doing a little game as part of the evaluation of programming language 1. I do not know how to properly link (co...
asked by 30.09.2015 / 03:10
2
answers

How to print compile and link commands in CMake?

I have a project that uses CMake and would like to print the build commands it generates. How to do this?     
asked by 17.06.2015 / 20:50
1
answer

How to parallelize the build with make?

The compilation process is parallelizable, but by default the make program performs one recipe at a time. How can I compile with make ?     
asked by 11.06.2015 / 18:25
1
answer

Struct defined in the .c auxiliary file (with definition of functions and structs) is not recognized in main

I'm doing a project in C, and I have 3 files: 1 .c containing the definitions of functions and structs. 1 .h containing the prototypes of these functions and structs ae1 .c that contains main. In the .c with the definitions, I define...
asked by 15.07.2016 / 17:05
0
answers

Use regex on patsub

Make has the function patsub to replace, or remove, text patterns in a string. documentation only has examples containing fixed portions of text. Does make have any native way of applying regex to a string? Something like: $(patsub...
asked by 23.06.2014 / 06:32
1
answer

I need help to create the makefile

# Baseando-se no link: https://www.embarcados.com.br/introducao-ao-makefile/ all: bancoBPE bancoBPE: main.o gcc -o bancoBPE main.o -Wall -Wextra -Werror -Wpedantic # Não sei direito como compilar esse structs.h sozinho sem ter structs.c s...
asked by 05.12.2017 / 19:24
1
answer

Makefile does not work on MINGW64. Can someone help me?

I'm programming in python in Django with Sublime Text 3, using Git Bash MINGW64. I created the makefile but when I run I get "bash: make: command not found"     
asked by 31.05.2017 / 05:10
1
answer

Makefile wxWidgets

I'm trying to use wxWidgets to do a college project and I ended up trying to use the Makefile out of curiosity, below the makefile I'm using as an example for the project. Makefile CPP_FILES := $(wildcard src/*.cpp) OBJ_FILES := $(addprefix...
asked by 02.12.2015 / 04:17
1
answer

Problem with CMake makefiles generator

I'm going to go on this tutorial on how to install allegro 5 with MSYS2. But I have a problem. By the time I'm going to run the command cmake \ -G"MSYS Makefiles" \ -DCMAKE_SYSTEM_PREFIX_PATH:PATH=/mingw64/x86_64-w64-mingw32/...
asked by 06.08.2015 / 01:10
1
answer

How to open Makefile in windows?

I would like to know how to open the makefile in windows. They sent me a file that contains the makefile, but I can not open it. I installed Cygwin to try to "run" the Makefile but it did not work (I opened the program and dragged the Makefile),...
asked by 16.06.2015 / 15:20