Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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??

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    You probably forgot to indent with a tab

  3. #3
    cfh
    cfh is offline
    Just 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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •