Most voted "makefile" questions
Makefile is a file that contains instructions to be executed by make.
Learn more…34 questions
Sort by count of
-
9
votes1
answer2572
viewsMakefile: what is it, and what is the purpose?
I am wanting to stop using IDE, and a friend advised me to use a Makefile for my programs, so: What is a Makefile? What is your purpose?
-
8
votes1
answer257
viewsMakefiles, include function
I’m trying to analyze the makefile below. But I don’t understand how the bottom fits with the rest. %.d: %.cpp <TAB> g++ $< -MM -MT '$*.o $*.d ' -MD $(CPPFLAGS) creates a file .d containing…
-
7
votes1
answer579
viewsPass arguments to Makefile
I have a folder with a series of Latex files: arquivo_001.tex arquivo_002.tex arquivo_003.tex arquivo_004.tex My idea is to write a Makefile that allows me to do something like make 004 and he…
-
5
votes1
answer1457
viewsError while creating Makefile
When I am trying to use Makefile with the following content: all: teste teste: arp_discover.o arp_poisoning.o gcc -o teste arp_discover.o arp_poisoning.o arp_discover.o: arp_discover.c…
-
4
votes2
answers263
views -
4
votes1
answer1104
viewsRun a file . R within another code in R
I have a code that reads the XML files that are in an enterprise network folder, and generates a file .RData. I have other codes that generate different reports for different sectors, using as a…
-
3
votes1
answer64
viewsActivating virtualenv in Makefile
How do I activate virtualenv in Makefile? I tried to venv: @virtualenv venv active: @source venv/bin/activate I tried too active: @. venv/bin/activate And nothing.…
makefileasked 9 years ago Regis Santos 1,574 -
3
votes1
answer875
viewsCreating a Makefile
I’m needing to write a Makefile, I was able to configure something by searching, but I tried to improve more for what I need, and I’m not getting it. What I’m trying to do: 1 - Check all files . c…
-
3
votes2
answers162
viewsHow do I set up Git to ignore trivial changes (for example, file timestamp) in a file?
The problem I’m facing is this:: The C application has an option where the build date of the application is displayed. To prevent the developer from managing the application before the current day…
-
2
votes1
answer472
viewsgcc is not found when Makefile is run by Travis-CI
I have a C project on Github and I’m trying to build with Travis-CI, but it always shows the error below: Using worker: worker-linux-9-2.bb.travis-ci.org:travis-linux-2 $ export CC=gcc git.1 $ git…
-
2
votes2
answers2311
viewsHow do I create a C Makefile
I’m having problems running Makefile. main: ex09.o funcao1.o gcc -c ex09.o funcao1.o -o main ex09.o: ex09.c gcc -c ex09.c funcao1.o: funcao1.c funcao1.h gcc -c funcao1.c clean: rm *.o One of Linker…
-
2
votes1
answer220
viewsWhat the command means: gfortran -c -03 $<
Guys, I’m trying to understand a program here that I’m using in my scientific initiation, but I’m left with a doubt in a make file. # makefile for code OBJ1 = main.o derivs.o filter.o code: $(OBJ1)…
-
1
votes0
answers37
viewsUse regex in patsub
make has the function patsub to replace, or remove, text patterns in a string. A documentation only has examples containing fixed text snippets. make has some native way of applying regex to a…
-
1
votes1
answer31
viewsHow to parallelize the compilation with make?
The compilation process is parallelizable, but by default the program make runs one recipe at a time. How to parse the build with make?
-
1
votes2
answers61
viewsHow to print build and link commands in Cmake?
I have a project that uses the Cmake and would like to print the build commands generated by it. How to do this?
-
1
votes1
answer319
viewsHow to compile c++ with SFML library within the project itself
Hello people who like to program. I have a problem that so far searching on the father of donkeys (Google) I could not solve. I’m doing a little game as part of the evaluation of the programming…
-
1
votes1
answer407
viewsStruct defined in file. c auxiliary (with definition of functions and structs) is not recognized in main
I’m doing a C project, 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 containing the main. No .…
-
1
votes1
answer2799
viewsMakefile returning "Missing Separator" error
I am trying to run a Makefile that Compile programs in 'C'. TARGET=client server CC= gcc CFLAGS= -Wall -Wextra -g LDFLAGS = -lm -pthread -lncurses DEPS = util.h normal: $(TARGET) client: client.c…
-
1
votes1
answer32
viewsMakefile linux - is it possible to restrict the compilation per machine?
Hello I have the following scenario, several machines shared in network, and with directories visible to each other. A developer called the program build on machine 1, but the program only compiles…
-
1
votes0
answers174
viewsMake file and build on the terminal
I need my Makefile to run on the terminal so that it is not necessary to insert on the terminal $ time make run, and yes only make run, and let it show execution time in the same way. Can someone…
-
1
votes0
answers20
viewsProblems with Makefile when switching from debian to freebsd (ifeq and endif)
I am using netbeans to compile some programs in C/C++ it compiles the code remotely on a debian machine (GNU), everything works smoothly, but I tried to compile the same project on a freebsd that…
-
0
votes1
answer2165
viewsHow to open Makefile in windows?
I would like to know how to open Makefile in windows. They sent me a file containing Makefile, but I can’t open it. I installed Cygwin to try to "run" the Makefile but it did not help (I opened the…
-
0
votes1
answer31
viewsMakefile does not work on MINGW64. Can anyone 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"
-
0
votes0
answers82
viewsKernel build error in Ubuntu
I am trying to compile the 3.2.91 kernel on Ubuntu and when I run the make command this error occurs: scripts/Makefile.build:305: recipe for target 'arch/x86/kvm/vmx.o' failed make[2]: ***…
-
0
votes1
answer79
viewsCmake Makefiles generator problem
Good ones I’m following this tutorial on how to install Allegro 5 with MSYS2. But I have a problem. At the moment I will run the command cmake \ -G"MSYS Makefiles" \…
-
0
votes1
answer73
viewsMakefile wxWidgets
I’m trying to use wxWidgets to do a college project and I ended up trying to use Makefile out of curiosity, below the Makefile I’m using as an example for the project. Makefile CPP_FILES :=…
-
0
votes0
answers112
viewsMakefile in C++ - Geany
Good afternoon, I’m new to programming in C++ using Geany. And I’m having a hard time when it comes to creating an interface between a class and main, that is, creating a class, for example message.…
-
0
votes1
answer214
viewsWarning: libssl.so. 1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/.. /.. /.. /x86_64-linux-gnu/libcurl.so, may Conflict with libssl.so. 1.1
I’m trying to copy a program that needs some libraries LIBS = -g -lmysqlcppconn -lpthread -lcurl -lboost_serialization -lreadline -lz -luWS -lssl The problem is that -lcurl and some programs need to…
-
0
votes1
answer668
viewsI need help creating the Makefile file
# 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…
-
0
votes1
answer71
viewsMakefile compile all files. c without specifying them
I’m trying to create a Makefile that makes all the files .c be compiled without me having to add the files line by line in the Makefile. I tried to keep up with the Creating a Makefile, but I found…
-
0
votes1
answer32
views -
0
votes1
answer193
viewsC++ Compiling/Including all files . cpp from the subdirectories of the /src folder
I use Visual Studio Code + Mingw. My project is the https://github.com/KaueAlves/Grimorie-Tabuleiro As some IDES link between classes automatically, when using VSCODE I came across the need to pass…
-
0
votes1
answer61
viewsHow to pass parameters to a Makefile
I’m developing a Django app on Docker and not have to keep typing docker-compose exec djangoapp python manage.py <alguma coisa> i wrote a Makefile to run the commands I most use. I just don’t…
-
0
votes0
answers29
viewsI cannot compile glfw with a Makefile
Hello, a few days ago I felt like learning opengl, and discovered glfw and Glad. I decided to use them to make a little game. Most tutorials nowadays only talk about how to use them in Visual…