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