kernel-sdfat/Makefile

29 lines
725 B
Makefile
Raw Normal View History

#
2019-07-16 14:07:37 +00:00
# Makefile for the Linux kernel FAT12/16/32(VFAT)/exFAT filesystem driver.
#
2019-07-16 14:07:37 +00:00
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
obj-$(CONFIG_SDFAT_FS) += sdfat_fs.o
2019-07-16 14:07:37 +00:00
sdfat_fs-objs := sdfat.o core.o core_fat.o core_exfat.o api.o blkdev.o \
fatent.o amap_smart.o cache.o dfr.o nls.o misc.o \
mpage.o extent.o
sdfat_fs-$(CONFIG_SDFAT_VIRTUAL_XATTR) += xattr.o
sdfat_fs-$(CONFIG_SDFAT_STATISTICS) += statistics.o
all:
@$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
@$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
cscope:
rm -rf cscope.files cscope.files
find $(PWD) \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files
cscope