Results 1 to 3 of 3
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 ...
- 10-17-2005 #1Just Joined!
- Join Date
- Feb 2005
- Posts
- 27
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??
- 10-17-2005 #2
You probably forgot to indent with a tab
- 10-17-2005 #3Just Joined!
- Join Date
- Sep 2005
- Posts
- 11
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...


Reply With Quote
