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