LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-15-2003, 02:26 AM   #1
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Rep: Reputation: 15
How to write a Makefile?


Hello,

I want to write a makefile for my programs. Is there a simple makefile example?

thanks
 
Old 10-15-2003, 04:10 AM   #2
bootloader
LQ Newbie
 
Registered: Oct 2003
Location: Braga
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
It depends... If you want a VERY simple example:

program_file: program_file.c .... (all the things needed for compilaton)
 
Old 10-15-2003, 04:11 AM   #3
bootloader
LQ Newbie
 
Registered: Oct 2003
Location: Braga
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
It depends... If you want a VERY simple example:

program_file: (tab)program_file.c .... (all the things needed for compilaton)
(tab) gcc .... (compilation command)


PS - Sorry about the first reply...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to write makefile for a project greghua Programming 3 01-14-2006 06:26 AM
How to write a Makefile mab_123 Linux - Software 1 07-06-2005 11:31 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 do I write a make install Makefile that determines if user is root? SheldonPlankton Programming 3 08-13-2004 05:39 PM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
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