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

Re: Missing Makefile

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)
   make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
   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?


make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
/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'.
<snip rest>

Reply to: