-
Make missing seperator
hi do any one have the solution to this prob
i m just into the kernel module prog so i make the hello program and make its make file as simple as
makefile
KERNELDIR = /usr/src/linux-2.4.20-6/include/
CFLAGS = -D__KERNEL__ -I$(KERNELDIR) -O -Wall
all: hello.o
clean:
rm -r hello.o
it is giving error
makefile:15: *** missing separator. Stop.
line 15th is last line
rm -r hello.o
i check all options what is this error for??
:?
-
You probably forgot to indent with a tab
-
I am a newbie too...
I am not really known your problem, but i tried to compile a helloworld successfully with an simplier makefile.
Makefile is like the following,
obj-m += modulename.o
and I use the following command to compile the module in the same directory the Makefile is,
make -C /lib/modules/`uname -r`/build SUBDIRS=$PWD modules
hope this can help you...