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