Linux in General > Linux Development & Programming

What is the make file for 2.6.3

(1/1)

jeeva:
Hi,

       Am new to linux, i worked couple months on 2.4, now i migrated to 2.6, am using suse9.1 kernel2-2.6.3, and it seems make file is changed from 2.4 to 2.6, can anyone tell me what eaxactly the make file is in 2.6, coz i wrote a small module for an usb interface, n m trying to compile it. Thank you,

Jeeva
--- Quote ---
--- End quote ---

jeeva:
hey i made the make file, coool!!

dragoncity99:
Can u share with us what the changes u have done, and the intereting things a bout writing teh small module for the usb interface :)

Really interested to hear about it. :)

jeeva:
Here is the make file!!

ifneq ($(KERNELRELEASE),)
obj-m := <filename.o>

else
KDIR:= /lib/modules/$(shell uname -r)/build
CC := gcc
CFLAGS  := -c -nostdinc \
-D__KERNEL__ -I /$(KDIR) \
 -I /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/

PWD := $(shell pwd)

default :
   make -C $(KDIR) SUBDIRS=$(PWD) modules
clean :
   rm *.o *.ko
endif

dragoncity99:
Can explain a bit on how this script works? It will be great :)

Thank u very very very much.

Navigation

[0] Message Index

Go to full version