LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-16-2009, 12:24 AM   #1
jdkorreck
LQ Newbie
 
Registered: Mar 2009
Location: Michigan / United States
Distribution: Debian, MacOSX
Posts: 2

Rep: Reputation: 0
Question Need help understanding Makefile(s)


Hello to all, I'm trying to make several thing but I'm having issues I think because the files the Makefile references are in different locations. I'm running Debian 2.6.26-1-686. Here is a Makefile I'm having trouble with:

ifneq ($(KERNELRELEASE),)
obj-m := fpi2002.o

else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
fpi2002.ko:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

install: fpi2002.ko
cp fpi2002.ko /lib/modules/$(shell uname -r)/kernel/drivers/serial/fpi2002.ko
depmod -a

endif


This is the original file, I've tried editing KDIR to the path of kernel headers "/lib/modules/$(shell uname -r)/build/include" but then I get a message that there is no rule to make target modules. This may have been the wrong path to take that's why I've kept a backup of the original.(see above) Anyways I'm at a loss as I don't really understand the syntax of a makefile, my programming experience has been in the .Net environment.
 
Old 03-16-2009, 01:50 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
think you could just post a question how to get my pen to work on my tablet pc.and

Last edited by Drakeo; 03-16-2009 at 02:04 AM.
 
  


Reply



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
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 05:00 AM
Help in understanding Makefile rules cranium2004 Programming 2 03-11-2005 06:06 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:17 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
Open Source Consulting | Domain Registration