xref: /aosp_15_r20/external/ltp/testcases/kernel/device-drivers/base/tbase/Makefile (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#
2# Makefile for GCOV profiling kernel module
3#
4
5#KERNELDIR := /usr/src/linux-2.5.64-gcov
6CFLAGS := $(CFLAGS) -Wall
7
8ifneq ($(KERNELRELEASE),)
9
10obj-m	:= tbase.o
11else
12KDIR	:= /lib/modules/$(shell uname -r)/build
13PWD	:= $(shell pwd)
14
15default:
16	$(MAKE) -C $(KDIR) M=$(PWD) modules
17#	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
18endif
19
20clean:
21	rm -f tbase.o 2>/dev/null || true
22
23