xref: /aosp_15_r20/external/ltp/testcases/kdump/lib/crasher/Makefile (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Workerobj-m := crasher.o
2*49cdfc7eSAndroid Build Coastguard WorkerKDIR := /lib/modules/$(shell uname -r)/build
3*49cdfc7eSAndroid Build Coastguard WorkerPWD := $(shell pwd)
4*49cdfc7eSAndroid Build Coastguard Worker
5*49cdfc7eSAndroid Build Coastguard Workerdefault:
6*49cdfc7eSAndroid Build Coastguard Worker	$(MAKE) -C $(KDIR) M=$(PWD) modules
7*49cdfc7eSAndroid Build Coastguard Worker
8*49cdfc7eSAndroid Build Coastguard Worker
9*49cdfc7eSAndroid Build Coastguard Workerclean:
10*49cdfc7eSAndroid Build Coastguard Worker	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
11*49cdfc7eSAndroid Build Coastguard Worker	rm -f Module.symvers
12*49cdfc7eSAndroid Build Coastguard Worker#clean:
13*49cdfc7eSAndroid Build Coastguard Worker#	rm -f *.mod.c *.ko *.o .*.cmd *.symvers
14*49cdfc7eSAndroid Build Coastguard Worker#	rm -rf .tmp_versions
15