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