LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-28-2009, 05:54 AM   #1
priyanka.g
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
makefile creation


Hello All,

I am new to linux environment.
i am trying to create a executable whos functionlaity is distributed in different files in same directory plus other files places in different location of system.

Please help me how to write a makefile for it to get the <module.o> and the <module.exe>

I able to create to .o files for differnet files in the same directory but not able to get one <moduke.o> out of it and not able to link with other lib files also.

Will be looking for your help.

Thanks in advance.

Regards,
Priyanka gupta
 
Old 06-28-2009, 06:34 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,044
Blog Entries: 1

Rep: Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369
Hi,

Welcome to LQ!

'Linux Documentation Project' would be a good place to start.

The 'Rute Tutorial & Exposition' has a Makefile example that should aid you.

These links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 06-28-2009, 01:16 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,668

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
and you DO know that "module.exe" is a Microsoft Windows executable program and NOT a linux executable .
 
  


Reply

Tags
linking, makefile


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
Is it mandatory to have the name of the makefile as 'Makefile' for kernal module comp narender.d Linux - Kernel 3 05-29-2009 06:26 AM
automake, makefile, makefile.in and makefile.am Fond_of_Opensource Linux - Newbie 1 09-12-2006 08:35 PM
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 05:00 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM


All times are GMT -5. The time now is 07:20 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