LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   how to write makefile for a project (http://www.linuxquestions.org/questions/programming-9/how-to-write-makefile-for-a-project-314492/)

greghua 04-18-2005 08:56 AM

how to write makefile for a project
 
suppose I have a project named Proj, which include to folders, one is Proj1, another is Prjo2;
in Proj1, there are 3 cpp files : p1.cpp, p2.cpp, p3.cpp
in Proj2, there are another 2 files: p4.cpp, p5.cpp, p6.cpp

now I need write makefile to compile the Proj in linux environment. I think each folder there need a makefile, so total 3 makefiles are needed. How to write the makefiles to compile the project? Thanks!

__J 04-18-2005 11:01 AM

http://www.eng.hawaii.edu/Tutor/Make/

or for the entire thing:
http://www.gnu.org/software/make/man...mono/make.html ( this one's looong, but it's the comprehensive manual)

kazmood 01-14-2006 06:13 AM

install softwares
 
Hi..suppose am so new in Linux and I donno nuts about install..configure etc. I still want to install new softwares in my pc...wat shud i do? Which is the file that i have to open to go and compile the newly downloaded software? Is it console? or? Pls..help.

Thanks...

paragn 01-14-2006 06:26 AM

hi kazmood,
Simple way to install any source package is to extract it. then check configure script in parent directory of that package. if you find it then just do ./configure then make then make install
This all you have to do on console only with user as root and that's all it. But if you got any error message while doing ./configure check that one. you will not be able to install it until you solve those errors that can be -> requiring any prior library/any package installed.


All times are GMT -5. The time now is 05:11 PM.