LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 04-18-2005, 09:56 AM   #1
greghua
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, 12:01 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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)
 
Old 01-14-2006, 07:13 AM   #3
kazmood
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? Pls..help.

Thanks...
 
Old 01-14-2006, 07:26 AM   #4
paragn
Member
 
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.
 
  


Reply


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 12:31 PM
create GNU make Makefile from visualstudio project andreyk Programming 0 02-02-2005 11:25 AM
How to write makefile to create shared library in 2.6 kernel yogeshwar_s Linux - Software 1 12-29-2004 01:39 AM
How to write Makefile in 2.6 for including header files in another dir ? ashbalu Programming 0 10-19-2004 04:45 PM
How to write a Makefile? lpriyamb Linux - Software 2 10-15-2003 05:11 AM


All times are GMT -5. The time now is 06:37 PM.

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