You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
383 B
23 lines
383 B
#
|
|
# Makefile for GCOV profiling kernel module
|
|
#
|
|
|
|
#KERNELDIR := /usr/src/linux-2.5.64-gcov
|
|
CFLAGS := $(CFLAGS) -Wall
|
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
obj-m := tbase.o
|
|
else
|
|
KDIR := /lib/modules/$(shell uname -r)/build
|
|
PWD := $(shell pwd)
|
|
|
|
default:
|
|
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
|
|
# $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules
|
|
endif
|
|
|
|
clean:
|
|
rm -f tbase.o 2>/dev/null || true
|
|
|