1# 2# Makefile for GCOV profiling kernel module 3# 4 5#KERNELDIR := /usr/src/linux-2.5.64-gcov 6EXTRA_CFLAGS := -Wall -W -Wno-unused-parameter 7 8ifneq ($(KERNELRELEASE),) 9 10obj-m := tusb.o 11else 12KDIR := /lib/modules/$(shell uname -r)/build 13PWD := $(shell pwd) 14 15default: 16 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules 17# $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules 18 19clean: 20 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean 21 rm -f modules.order 22 23help: 24 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) help 25 26modules_install: 27 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install 28 29endif 30