LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-21-2005, 06:47 AM   #1
pantera
Member
 
Registered: May 2004
Posts: 80

Rep: Reputation: 15
makefile error


i am using fedora core3
i used make -C /home/kernel/linux-2.6.10/ SUBDIRS=$PWD modules to compile my code but it shows
make: *** No rule to make target `modules

my Makefile has
obj-m += p1.o

please guide me as to where the error is
 
Old 05-21-2005, 07:07 AM   #2
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Rep: Reputation: 30
Hello
This probably means that there's no Makefile.
Hylke
 
Old 05-21-2005, 07:11 AM   #3
pantera
Member
 
Registered: May 2004
Posts: 80

Original Poster
Rep: Reputation: 15
as i said i have Makefile that says
obj-m += p1.o
and i do have a file p1.c
where does the file have to be
 
Old 05-21-2005, 09:05 AM   #4
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Rep: Reputation: 30
In your case in /home/kernel/linux-2.6.10/
Are you sure the make file is called Makefile?
 
  


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
Kdevelop Makefile Error Chryzmo Programming 4 08-22-2010 04:19 PM
Makefile error wildcat22 Programming 1 02-17-2004 11:53 PM
makefile error durden2.0 Programming 2 01-25-2004 05:45 PM
makefile error puckney Linux - Newbie 3 04-25-2002 10:03 PM
kernal makefile error tony Linux - Software 4 11-27-2000 03:15 PM


All times are GMT -5. The time now is 01:54 AM.

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