I am trying "Linux Kernel Module Programming - Compiling the Module" as in this youtube video.
First I created a hello.c
program. Then I used the command #gedit Makefile
. It opens a window which is empty in gedit.
I tried to copy the same commands but running make command
it showed an error:
make:*** No rule to make target 'make', needed by 'all'. Stop.
Searching some Ubuntu forms I tried:
sudo apt-get install build essentials
sudo apt-get install make
sudo apt-get install autoconf automake
Every time I executed this command some packages got installed.
I went and checked in:
root@ubuntu: /lib/modules/3.5.0-17-generic/build
I can see 'Makefile' when typed ls
command, but still I have the same problem
make
command is not still working as gedit Makefile
command open a blank editor.
make make
or something like that (instead of justmake
). Can you paste the exact command you are executing? – Andrea Corbellini Dec 02 '15 at 19:33