Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Linux in General => Linux Development & Programming => Topic started by: jeeva on July 26, 2004, 05:19:21 AM
-
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
-
hey i made the make file, coool!!
-
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. :)
-
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
-
Can explain a bit on how this script works? It will be great :)
Thank u very very very much.