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)
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>
Reply to: