1f08c3bdfSopenharmony_ci# 2f08c3bdfSopenharmony_ci# Makefile for GCOV profiling kernel module 3f08c3bdfSopenharmony_ci# 4f08c3bdfSopenharmony_ci 5f08c3bdfSopenharmony_ci#KERNELDIR := ../linux-2.5.73 6f08c3bdfSopenharmony_ciCFLAGS := $(CFLAGS) -Wall -g 7f08c3bdfSopenharmony_ci 8f08c3bdfSopenharmony_ciifneq ($(KERNELRELEASE),) 9f08c3bdfSopenharmony_ci 10f08c3bdfSopenharmony_ciobj-m := LtpfsCmds.o 11f08c3bdfSopenharmony_ciobj-p := ltpfstest 12f08c3bdfSopenharmony_cielse 13f08c3bdfSopenharmony_ciKDIR := /lib/modules/$(shell uname -r)/build 14f08c3bdfSopenharmony_ciPWD := $(shell pwd) 15f08c3bdfSopenharmony_ci 16f08c3bdfSopenharmony_cidefault: 17f08c3bdfSopenharmony_ci $(MAKE) -C $(KDIR) M=$(PWD) modules 18f08c3bdfSopenharmony_ci ${CC} $(CFLAGS) -o ltpfstest -lm main.c 19f08c3bdfSopenharmony_ci# $(MAKE) -C $(KERNELDIR) M=$(PWD) modules 20f08c3bdfSopenharmony_ciendif 21f08c3bdfSopenharmony_ci 22f08c3bdfSopenharmony_ciclean: 23f08c3bdfSopenharmony_ci rm -f LtpfsCmds.o 24f08c3bdfSopenharmony_ci rm -f LtpfsCmds.ko 25f08c3bdfSopenharmony_ci rm -f LtpfsCmds.bb 26f08c3bdfSopenharmony_ci rm -f LtpfsCmds.bbg 27f08c3bdfSopenharmony_ci rm -f LtpfsCmds.mod.c 28f08c3bdfSopenharmony_ci rm -f LtpfsCmds.mod.o 29f08c3bdfSopenharmony_ci rm -f .*.mod* 30f08c3bdfSopenharmony_ci rm -f .*.cmd 31