Files

29 lines
889 B
Makefile
Raw Permalink Normal View History

2021-11-16 18:36:02 -03:00
# SPDX-License-Identifier: GPL-2.0-only
#
# Makefile for the out-of-tree Linux APFS module.
#
KERNELRELEASE ?= $(shell uname -r)
2021-06-08 12:41:00 +02:00
KERNEL_DIR ?= /lib/modules/$(KERNELRELEASE)/build
PWD := $(shell pwd)
obj-m = apfs.o
2023-01-18 19:23:36 -03:00
apfs-y := btree.o compress.o dir.o extents.o file.o inode.o key.o libzbitmap.o \
2023-01-25 19:08:44 -03:00
lzfse/lzfse_decode.o lzfse/lzfse_decode_base.o lzfse/lzfse_fse.o \
2023-01-23 21:56:27 -03:00
lzfse/lzvn_decode_base.o message.o namei.o node.o object.o snapshot.o \
spaceman.o super.o symlink.o transaction.o unicode.o xattr.o xfield.o
2024-11-07 23:21:38 -03:00
# If you want mounts to be writable by default, run the build as:
2026-03-12 21:38:09 +05:30
# make APFS_CONFIG=-DCONFIG_APFS_RW_ALWAYS
2024-11-07 23:21:38 -03:00
# This is risky and not generally recommended.
2026-03-12 21:38:09 +05:30
ccflags-y += $(APFS_CONFIG)
2024-11-07 23:21:38 -03:00
default:
2024-01-17 22:30:49 -03:00
./genver.sh
make -C $(KERNEL_DIR) M=$(PWD)
2021-06-19 21:29:02 +02:00
install:
make -C $(KERNEL_DIR) M=$(PWD) modules_install
clean:
rm -f version.h
make -C $(KERNEL_DIR) M=$(PWD) clean