countryer.blogg.se

Writing makefile for c program
Writing makefile for c program









writing makefile for c program

L flag can be used to specify additional library locations and you will have to use -l flag to specify which library needs to be linked (eg:-lpthread). If you have additional include files, -I flag can be used to specify the include directory containing.

writing makefile for c program

The command will compile each C++ source file and create object files. Usual compilation with g++ will involve a command as follows. This article explains how you can set up your own makefile for your C / C++ project. Makefiles provide a way to organize build steps involved in C / C++ project compilation.











Writing makefile for c program