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

Title: What is the make file for 2.6.3
Post 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
Quote
Title: i made the make file
Post by: jeeva on July 26, 2004, 02:22:29 PM
hey i made the make file, coool!!
Title: What is the make file for 2.6.3
Post by: dragoncity99 on July 27, 2004, 03:14:49 PM
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. :)
Title: Make file!!
Post by: jeeva on July 29, 2004, 02:36:01 PM
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
Title: What is the make file for 2.6.3
Post by: dragoncity99 on July 30, 2004, 05:55:06 AM
Can explain a bit on how this script works? It will be great :)

Thank u very very very much.