• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Makefile for GCOV profiling kernel module
3#
4
5EXTRA_CFLAGS := -Wall -W -Wno-unused-parameter
6
7ifneq ($(KERNELRELEASE),)
8
9obj-m	:= nlsTest.o
10else
11KDIR	:= /lib/modules/$(shell uname -r)/build
12PWD	:= $(shell pwd)
13
14default:
15	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
16	${CC} $(EXTRA_CFLAGS) -o userBlockNLS userBlockNLS.c
17#	$(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules
18
19clean:
20	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
21	rm -f modules.order
22	rm -f userBlockNLS
23
24endif
25