24 lines
		
	
	
		
			435 B
		
	
	
	
		
			Makefile
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			435 B
		
	
	
	
		
			Makefile
		
	
	
	
| #
 | |
| # Makefile for GCOV profiling kernel module
 | |
| #
 | |
| 
 | |
| #KERNELDIR := /usr/src/linux-2.5.64-gcov
 | |
| CFLAGS := $(CFLAGS) -Wall
 | |
| 
 | |
| ifneq ($(KERNELRELEASE),)
 | |
| 
 | |
| obj-m	:= includeTest.o
 | |
| else
 | |
| KDIR	:= /lib/modules/$(shell uname -r)/build
 | |
| PWD	:= $(shell pwd)
 | |
| 
 | |
| default:
 | |
| 	$(MAKE) -C $(KDIR) M=$(PWD) modules
 | |
| 	${CC} -Wall -o userBlockInclude userBlockInclude.c
 | |
| #	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
 | |
| endif
 | |
| 
 | |
| clean:
 | |
| 	rm -f includeTest.o 2>/dev/null || true
 | |
| 
 |