LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   are driver compiled indifferent way (https://www.linuxquestions.org/questions/linux-newbie-8/are-driver-compiled-indifferent-way-419391/)

amolgupta 02-25-2006 08:51 AM

are driver compiled indifferent way
 
are driver compiled indifferent way
if y then how

foo_bar_foo 02-25-2006 12:23 PM

ganerally for 2.6 kernel a Makefile like this should do it for a driver sourcefile my-module.c
Code:

obj-m    := my-module.o

KDIR    := /lib/modules/$(shell uname -r)/build
PWD    := $(shell pwd)

default:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules



All times are GMT -5. The time now is 04:37 AM.