Click here to Skip to main content
15,885,278 members
Everything / Makefile

Makefile

makefile

Great Reads

by Andrew Kirillov
The article demonstrates usage of ANNT library for creating convolutional ANNs and applying them to image classification tasks.
by Jan Dolinay
Source level debugger for Arduino with GDB and Eclipse
by Jason Henderson
Draw and animate ASCII characters to a window using this COM object.
by Florian Rappl
Gulp is a modern build system for web technologies. It is also integrated into ASP.NET vNext and can be used in a lot of scenarios.

Latest Articles

by Сергей Челноков
How to write your Notepad
by Andrew Kirillov
The article demonstrates usage of ANNT library for creating convolutional ANNs and applying them to image classification tasks.
by Artem Moroz
Using ESP8266 module to remotely control high power electrical appliances
by CPallini
Programming Microchip PIC32MM microcontrollers in C++ and assembly

All Articles

Sort by Score

Makefile 

28 Oct 2018 by Andrew Kirillov
The article demonstrates usage of ANNT library for creating convolutional ANNs and applying them to image classification tasks.
18 Jan 2018 by Jan Dolinay
Source level debugger for Arduino with GDB and Eclipse
31 Dec 2019 by k5054
Take a look here: CMake Tutorial — CMake 3.16.2 Documentation[^]. That should guide you in creating your CMakeList.txt file. Are you sure you're using cmake, though? Generating a Makefile through cmake should produce a Makefile that is many lines long. In my case, even the simplest cmake...
20 Oct 2021 by Rick York
I use VS19 also and I make libraries all the time, no pun intended. Portability to other environments is of zero concern for me so I just use VS19's built-in settings to make it happen. I select a configuration type of static library which is...
20 May 2002 by Jason Henderson
Draw and animate ASCII characters to a window using this COM object.
3 Apr 2013 by nv3
Visual Studio has a special type of project, called Makefile Project, that allows you to use your own make file and other command line tools to build your project. SeeMSDN VisualStudio 2005 Makefile Project[^]In such a project you can use for example Microsofts version of the make...
25 Jun 2013 by CPallini
I'm not an expert of make, but it looks you are using predefinite rules, hence your source file name should match the object one. Namely you should have a char_ds26521.c source file in your folder (I don't know if it makes sense renaming your char_dev.c).
16 Dec 2013 by CPallini
Quote:main.o: main.c /header/OS.h /header/snmputil.h /header/CPU.h gcc -o main.cShould be:main.o: main.c header/OS.h header/snmputil.h header/CPU.h gcc -I header -c main.cQuote:CPU.o: /source/CPU.c ../header/CPU.h gcc -o /source/CPU.cShould be:CPU.o:...
6 Feb 2015 by RupeshMote
Finally, I have build android source code successfully.Here is how I did it :In first attempt, I had downloaded source code of Kitkat branch. But it was not downloaded properly.(source files were missing).Then, I have downloaded Android OS source code of master branch, which is...
2 Mar 2016 by OriginalGriff
A make file is a "Build it like this" list that together with the application - cmake - allows you to provide dependancies:This C file uses: This .H file That .H fileThis .H file uses: TheOther .H fileThis EXE file uses: This .C file That .C fileSo if "TheOther.H" file...
7 Mar 2016 by Albert Holguin
A "makefile" is a list of instructions for "make" on how to build:0. The objects that are generated from every source file. This is accomplished by the compiler.1. The libraries and or executables that you are building (if any). Keep in mind, a library is a collection of objects that you've...
22 Feb 2018 by Jochen Arndt
It is difficult to answer that without knowing what you are tyring to build and on witch system with which compiler. As suggested in the output you should have a look at the config.log file. That should contain error messages from the started tools (the C compiler) which might indicate what...
11 May 2020 by Rick York
What you have here is a monolithic program - there is one function. That is only reasonable for the most trivial of programs and, in my opinion, your program is not quite trivial enough for that to be acceptable. For this reason, I think you...
3 May 2021 by k5054
Your makefile recipe for libfigure.so does not include the target name for the link phase, so gcc places the output in a.out, even for the shared library. You also need to use the -fPIC compile option during the compilation phase of the library...
13 Feb 2022 by steveb
This is impossible. When machine first powers up, there are no Python interpretes on a BIOS level. There fore this cannot be written in Python. Maybe only after boot code was executed. But why would anyone want to write an OS in a slow...
14 Apr 2012 by Charmy from bangalore
In my application folder A, there are 3 source directories B,C and D. Folder B contains 1.cpp,2.cpp,3.cpp.FOlder C contains 4.cpp,5.cpp,6.cpp. I have written makefile for my application which is in Application folder A. I am also having the makefiles for each subdirectories as well means...
14 Apr 2012 by Graham Breach
Change the rules that compile object files to write them into the D directory, and the rules that read the object files to look for them there.If you do a search for "OBJDIR" and "Makefile" you should be able to find plenty of examples of how to do it.
23 Jul 2012 by subrata kumar Nayak
just add the line LOCAL_EXPORT_C_INCLUDES := pathto/folder (where my file resides) above theinclude $(PREBUILT_STATIC_LIBRARY)and my final .mk file became like this:LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := libtestLOCAL_SRC_FILES :=...
2 Aug 2012 by subrata kumar Nayak
i am creating an application in android using ndk and jni.In my app i have requirement to parse xml data.for which i have used libxml2.when i am making a static library of libxml2 and use,it works fine.But when i am trying to make a shared library and use it in my application i am...
20 Jan 2013 by Sergey Alexandrovich Kryukov
Writing a file is already totally unrelated to any dialog, and unrelated to UI in general. If you had the impression that is it related in .NET, this is only because you have no clue about .NET as well, no matter how much of code you created.Ideally, writing files should not be related to...
3 Apr 2013 by hosseinDolat
Hello every oneI have just downloaded a open source project which is said to be compiled using visual studio c++. It contains 3 makeFiles (makeFile, makeFile(1) and makeFile(2) )I always open programs in VS using the .sln files and now I dont know what to do with this makeFile.can anyone...
25 Jun 2013 by shan bala
hi all, I have a folder in the kernel with one .c file, .h file and makefile, when i tried to compile the kernel source it shows the error make[3]: *** No rule to make target `drivers/staging/t1framer/char_ds26521.o', needed by `drivers/staging/t1framer/built-in.o'. Stop.make[2]:...
25 Oct 2013 by GiZmoDragonBack
Hi,I have a makefile which for some reason does not execute the last rule. Here is the fileSRCS=$(wildcard *.endian)SRCSE=$(wildcard *.json)OBJS=$(SRCS:.endian=.o)ENDIAN=$(SRCSE:.json=.endian)OBJDIR=$(OS_TARGET)/$(BUILD_TYPE)all: start os_target $(ENDIAN) $(OBJS).PHONY:...
16 Dec 2013 by Robert Clove
I am having a file/folder structure like this"MY" folder containmain.cthen "My" folder contain two other folders named "source" and "header"main.c has references to header files that are in the "header" folder.The *.c source files (that are in the source directory) has there header...
7 Apr 2014 by Member 8857897
Hi!What i am trying is to generate a crc64sum of a file within a makefile and write the result into a file called *.checkIn my Makefile i have something like this:crc: $(DISTBinDir)/$(PROGRAM).check$(DISTBinDir)/$(PROGRAM).check : $(shell export...
12 Feb 2015 by Codexzy
I am a newbie programmer who has some experience in C and C++ development but my knowledge and experience is very limited to the Windows and the Visual Studio environment. Recently I was looking into some open-source projects like Gimp, Inkspace, Code::Blocks...etc. but found myself in...
12 Feb 2015 by bling
Quote: 1) What are makefiles ?If you have Visual Studio installed, run "Visual Studio Command Line". In the command window, type "nmake". That's Microsoft's version of the make command. In that same command window, type "cl". That's Microsoft's C++ compiler. It's the same program that Visual...
23 Sep 2015 by CPallini
Use Google, is your friend."A Simple Makefile Tutorial"[^]."C Programming/Libraries"[^].
7 Mar 2016 by stackprogramer
hi,when i downloaded some app linux,in most themis there some file name makefile?when i search i faced with cmake?whats cmake?what application them?this is part of a makefile:dir := .makemode := miscDISTFILES := configureinclude ./Makeconf ## Subdirectories of this...
27 Apr 2017 by Richard MacCutchan
You already posted this at Importing OpenSource Projects in CodeLite Ubuntu - - Uncategorised posts - Discussion Boards[^]. You have been a member here long enough to know not to cross post the same question in multiple forums.
31 Aug 2017 by forest-321
Hi, friends! I want to compile a open source c++ project on windows system. But this project is configured linux cpp, h files and configure files such as 'configure', 'Makefile', 'Makefile.am', 'Makefile.in' and so on. Thanks. What I have tried: To compile on windows, I tried to use cmake,...
25 Oct 2017 by k5054
use make -n from the man page: -n, --just-print, --dry-run, --recon Print the commands that would be executed, but do not execute them (except in certain circumstances).
25 Jan 2018 by Member 13641771
hello, I am trying to run a "make" binflate file. But I keep getting an error skipping incompatible ../../../shared/gpstk/src/libgpstk.a when searching for -lgpstk I am the newbie at linux and have no idea what is going on, but I am eager to learn. I have looked up online and I saw that...
25 Jan 2018 by KarstenK
The found libgpstk.a isnt compatible for your target. Depending on your configuration changing some build path could solve. But normally you better check the build file or configuration for the libgpstk that is in the same settings as your make file. I guess that is some 32bit or 64-bit...
22 Feb 2018 by Gabriel Leonte
well. i run this : ../configure \ --target=$LFS_TGT \ --prefix=/tools \ --with-glibc-version=2.11 \ --with-sysroot=$LFS \ ...
7 Apr 2018 by Gabriel Leonte
I try to complie litecoin source on windows with mingw makefile. Btw i use Mingw32 ffrom msys console , all work , but after all x.o (object file) complied. I get this error . d:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find...
7 Apr 2018 by CPallini
Those are linker errors. Some libraries are missing. See, for instance Litecoin compilation guide - Development - The New Litecointalk Forum[^].
17 Aug 2018 by Member 13952559
My Makefile: HEADERS = headers.h macros.h main.h socket.h main.o : main.c main.h cc -c main.c socket.o : socket.c headers.h macros.h cc -c socket.c main.c #include "main.h" main() { printf("%s\n","Connect_Socket Start"); Connect_Socket(IP_ADDRESS, PORT); printf("%s\n","Connect_Socket...
17 Aug 2018 by OriginalGriff
Ata guess - and without your computer to hand that's all it can be - you don't get the output because the app is too busy connecting the socket to update the display. Try adding a user input after the printf and see what happens.
17 Aug 2018 by Jochen Arndt
Executing make will build the target according to the specifed rules. But it will not execute the created application. To do that after a successful build do it like you have done with manually compiling: type the name of the executable at the shell prompt ./mqtt_c8y
30 Jan 2019 by lock&_lock
I tried to compile my program in terminal. It works perfectly that way. But now I have several files and would rather use makefile instead, I tried to create makefile for my c++ program, but I encounter error "opencv2/opencv.hpp file not found". But I can compile correctly with the first method...
30 Jan 2019 by k5054
The line OPENCV = pkg-config --cflags --libs opencv4 doesn't evaluate the command, for that you need to wrap with $(shell ...). Also, you need to tell the compiler for each module where to find the include files for opencv. I think the following should do the trick. CFLAGS = -std=c++11...
24 Feb 2019 by saide_a
hi all I have the following makefile TARGET := test.so DEFINES := CC := g++ CFLAGS := -Wall -O3 -c -fpic -I$(INCLUDES) LDFLAGS := -lrt -ldl -lpthread -s -shared -fpic SRCS := ./main.cpp \ ../../src/test.cpp INCLUDES = -I../../inc ########################### OBJS := $(patsubst...
12 Apr 2019 by abdou_31
I'm trying to train my own dataset annotated using segmentation so i downloaded yolo segmentation project in github , and i tried to compile the project using this command " make -j6 " ( i followed instruction ) I get some errors when i compile , i tell the owner of this tool about compilation...
12 Apr 2019 by OriginalGriff
He's already told you that it won't work on windows, so why are you still trying to build it on Windows? Runnig your error messages through Google translate: a sub-directory or a -p file already exists. An error occurred while processing: -p. If the author says "it's Linux" then it is only...
31 Dec 2019 by TankRockett
Recently i've just built an SFML/C++ project on Visual Studio Code using CMake and MinGW.I've successfully compiled and run a test file in my project folder. Here's my Makefile: StarFire: g++ main.cpp -o main.exe -DSFML_STATIC -I F:\SFMLPrj\StarFirestc\Prefixes\include -L...
11 May 2020 by User-14784327
I have to read a matrix from a file and I have to sort the rows of the matrix to be an ascending order in the first column, and finally I have to write the ordered matrix to a file. My problem that doesn't write and I guess doesn't read the...
29 Apr 2021 by Rafał Kowalczyk 2021
Hi, I wanted to create a Linux kernel module that takes my name, and two integers as arguments, and then prints the name and the sum of those numbers on standard output. Unfortunately the file is not compiling. I get the message: make[2]: *** No...
3 May 2021 by Rafał Kowalczyk 2021
Hi, I wanted to create a makefile with a dynamic library attached. Unfortunately I get the message: error: rpath=.:There is no such file or directory. What am I doing wrong? My code looks like this: main.c #include #include ...
3 May 2021 by Rick York
$(CC) main.o -Wl, rpath=. -L. -lfigure -o program The problem is the line above and the space between the , and rpath. Generally, when passing along an argument to the linker via -Wl there is no space after the comma. Refering to this page :...
29 May 2021 by Richard MacCutchan
The flag you are referring to is used by QMAKE, but it does not explain what the default options are. However the Qt 4.6: qmake Variable Reference QMAKE_LFLAGS[^] is used for the linker options. Typing "man ld" at a shell prompt will get you...
15 Sep 2021 by prother123
Hi all, When trying to compile the host code using command in MobaXterm terminal. I got this error. I am not sure what to do to fix this error. I need help In file included from /usr/include/c++/4.8.2/array:35:0, ...
15 Sep 2021 by Richard MacCutchan
Do what the message tells you and add the appropriate option to the Makefile entry for that source module.
20 Oct 2021 by Weird Japanese Shows
Hello guys, Whenever I need to change my pc, I'm haunted by the thoughts of rebuilding external libraries. Some libraries have step-by-step insturctions which prevents it from becoming a challenge but some libraries like libpqxx(postgresql's c++...
20 Oct 2021 by Richard MacCutchan
This is the Quick Answers forum, and there is nowhere near enough space (or time) to provide product tutorials. You will need to find them for yourself. For example: CMake Reference Documentation — CMake 3.22.0-rc1 Documentation[^], make(1) -...
2 Jan 2022 by OriginalGriff
Repost: Deleted. Please do not repost your question; use the Improve question widget to add information or reformat it, but posting it repeatedly just duplicates work, wastes time, and annoys people. I'll delete this one.
11 Feb 2022 by OriginalGriff
Forget it. Python needs an OS to work: it's an interpreted scripting language which needs the interpreter (which provides the framework for your app to run) to be executing before your app does. And that needs the OS beneath it to provide...
12 Feb 2022 by Richard MacCutchan
You probably need to start by looking at the existing source code at GitHub - torvalds/linux: Linux kernel source tree[^].
15 Mar 2022 by micha_eleric
first time writing a make file. i either did a one line command from command line, or just let development environment automake makefile. i am using: Eclipse IDE for C/C++ Developers Version: 2018-09 (4.9.0) Build id: 20180917-1800 OS: Linux,...
15 Mar 2022 by k5054
Probably your best bet is to use qmake instead of make. Running qmake | qmake Manual[^] The Eclipse documentation should tell you how to tell it to use qmake instead of make. Alternatively, you could generate a Makefile using qmake --makefile If...
4 May 2023 by honey the codewitch
I have a question that's two-thirds a linux question - maybe a WSL specific question - and a third embedded development toolchain question. I really don't like dealing with the prima donnas at stackoverflow - not that everyone is that way but...
4 May 2023 by QuantumPlumber
Have you tried a "make clean" before running your make command? Desperation, I know, but it might help if Peter's on the right track.
4 Feb 2015 by Florian Rappl
Gulp is a modern build system for web technologies. It is also integrated into ASP.NET vNext and can be used in a lot of scenarios.
21 Nov 2002 by Philipos Sakellaropoulos
An article on writing thumbnail shell extensions for your MFC document types
8 May 2001 by Amit Dey
This article shows how to handle custom events generated in a VB ActiveX component in a Visual C++ client.
1 Feb 2013 by Ahmed Charfeddine
A Visual C++ Project Wizard for the fast creation of high performance TCP servers in C++
7 Aug 2018 by Artem Moroz
Using ESP8266 module to remotely control high power electrical appliances
11 Feb 2022 by Patrice T
Quote: I want to rewrite the Linux kernel Bad idea. If there is not millions of Linux written in everyone's favorite language, it is because it is huge and hard, and not every programming language is usable to build an OS. An OS talks to bare...
11 Aug 2000 by Brian C Hart
Brian's detailed answers to your most frequently asked questions about his DCOM tutorial.
7 Jul 2018 by CPallini
Programming Microchip PIC32MM microcontrollers in C++ and assembly
12 Sep 2001 by Alan Wen
This is a 3-tier application. A COM component returns SQL data in XML format, then using XSLT to transform to HTML at client side. By using XML, all the data can be sort, split into pages locally, that will give users a quick response!
2 Apr 2001 by Dhandapani Ammasai
This article shows how to serialize a class into XML string.
19 Jul 2012 by subrata kumar Nayak
I'm trying to use a .a file in my C code to use in Java (sorry for my bad English). I created myself a static library named libtest.a. now when i include files present in that library in gives me error as no such file or directory.i have put the libtest.a in the same folder where my...
31 Aug 2017 by Jochen Arndt
There is no ready-to-use conversion. But before trying to compile you should check if the source can be build for Windows. That should be stated somewhere in the documentation. If it is a rather simple project, just create a new console or DLL project (depends on the type of the source), add...
9 Nov 2018 by Сергей Челноков
15 Jan 2015 by RupeshMote
I have downloaded Android kitkat source code(android-4.4.1_r1) from Git repository.Then I set required initial setup environment. And then try to build android source code.I did this entire procedure as per this link https://source.android.com/source/building.html[^] I am using...
2 Aug 2012 by subrata kumar Nayak
i have created an android application,here most of my code is in c so i have created it using jni. i have to create socket.so file, in which i have to use the libtest.so.while using the libtest.so in socket.so i get the error:undefined reference to function(). my function() is present inside...
19 Nov 1999 by Maximilian Pasternak
3 Apr 2013 by Abhinav S
You can use the equivalent of MakeFIle in Visual Studio.This is called MSBuild[^].
13 Feb 2022 by آرین عباسی 67
I want to rewrite the Linux kernel written in C and Assembly and Ruby and Python programming languages ​​and integrate it completely with Python. I need some help because I only know Python. I'm looking for a C, Assembly, Ruby, Shell programming...
20 Jan 2013 by Mathsquare
How to write a file in qt ?The title is going to be (lineedit text + .txt)?and the location is fix to (~/.myproject)I am new to qt and c++ and i am coming from vb.net since vb.net doen't work with Linux then i am learning qt.
23 Sep 2015 by venkat28vk
Hi,What is the makefile and library file and what are the uses of it in C code?
25 Oct 2017 by Member 13376650
This is my Makefile: .PHONY = clean binary server debugserver standalone pgserver debugpgserver mysqlserver debugmysqlserver mongoserver debugmongoserver foreignserver mongotreetaggerserver # Removed the 'all' target. It does not make sense since each build target requires a different set...