5 # copy makefile over to not break patches
6 backfs_extra := $(wildcard @LINUX@/fs/ext4/Makefile)
8 backfs_headers := $(wildcard @EXT4_SRC_DIR@/*.h)
9 linux_headers := $(wildcard @LINUX@/include/linux/ext4*.h)
10 linux_new_headers := htree_lock.h
11 trace_headers := $(wildcard @LINUX@/include/trace/events/ext4*.h)
13 backfs_sources := $(filter-out %.mod.c %/inode-test.c,$(wildcard @EXT4_SRC_DIR@/*.c))
15 new_sources := mmp.c htree_lock.c critical_encode.h
18 ldiskfs_patched_sources := $(notdir $(backfs_sources) $(backfs_headers)) $(new_sources) $(new_headers)
19 ldiskfs_sources := $(ldiskfs_patched_sources)
21 ldiskfs-objs := $(filter %.o,$(ldiskfs_sources:.c=.o))
23 EXTRA_PRE_CFLAGS := -I@LINUX@/fs -I@abs_top_srcdir@/ldiskfs