blob: 77c80ec01dea1885ee42e5ac4dcbb02591438af0 [file] [log] [blame]
#
# Makefile for GCOV profiling kernel module
#
#KERNELDIR := /usr/src/linux-2.5.64-gcov
CFLAGS := $(CFLAGS) -Wall
ifneq ($(KERNELRELEASE),)
obj-m := tpci.o
else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
# $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules
endif
clean:
rm -f tpci.o 2>/dev/null || true