[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Missing Makefile



On 8/4/2013 5:49 PM, davidson@ling.ohio-state.edu wrote:
On Wed, 31 Jul 2013, Jerry Stuckle wrote:
Hi, all,

I was sent here by the debian-devel list people.  Hopefully someone
here can help me.

I'm trying to compile my first module for Debian (right now it doesn't
do anything - one step at a time ).

My makefile is:

obj-m = mymodule.o
KVERSION = $(shell uname -r)
all:
   make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
   make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean

When I try to run make, I get the following:

make -C /lib/modules/3.2.0-4-amd64/build M-/home/jerry modules

the 'M-' instead of 'M='.  where did that come from?

-wes

make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
/usr/src/linux-headers-3.2.0-4-common/scripts/Makefile.build:44:
/usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile: No
such file or directory
make[5]: *** No rule to make target
`/usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile'.
 Stop.
<snip rest>




Sorry, that was my error when I was typing the message in (I'm not posting from the failing system).

Jerry


Reply to: