Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-18-2005, 08:56 AM   #1
LQ Newbie
Registered: Apr 2005
Posts: 19

Rep: Reputation: 0
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!
Old 04-18-2005, 11:01 AM   #2
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46

or for the entire thing: ( this one's looong, but it's the comprehensive manual)
Old 01-14-2006, 06:13 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
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?

Old 01-14-2006, 06:26 AM   #4
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write a Makefile mab_123 Linux - Software 1 07-06-2005 11:31 AM
create GNU make Makefile from visualstudio project andreyk Programming 0 02-02-2005 10:25 AM
How to write makefile to create shared library in 2.6 kernel yogeshwar_s Linux - Software 1 12-29-2004 12:39 AM
How to write Makefile in 2.6 for including header files in another dir ? ashbalu Programming 0 10-19-2004 03:45 PM
How to write a Makefile? lpriyamb Linux - Software 2 10-15-2003 04:11 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration