LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   makefile error (https://www.linuxquestions.org/questions/programming-9/makefile-error-325625/)

pantera 05-21-2005 05:47 AM

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

hylke 05-21-2005 06:07 AM

Hello
This probably means that there's no Makefile.
Hylke

pantera 05-21-2005 06:11 AM

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

hylke 05-21-2005 08:05 AM

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


All times are GMT -5. The time now is 02:22 PM.