1 # 2 # Makefile for GCOV profiling kernel module 3 # 4 CFLAGS := $(CFLAGS) -Wall 5 ifneq ($(KERNELRELEASE),) 6 CFLAGS += -Idrivers/char/drm 7 obj-m := tdrm.o 8 9 else 10 KDIR := /lib/modules/$(shell uname -r)/build 11 PWD := $(shell pwd) 12 13 default: 14 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules 15 endif 16 17 clean: 18 rm -f tdrm.o 2>/dev/null || true 19 20