android13/external/ltp/testcases/kernel/device-drivers/base/tbase/Makefile

23 lines
371 B
Makefile

#
# 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) M=$(PWD) modules
# $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
endif
clean:
rm -f tbase.o 2>/dev/null || true