X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=ldiskfs%2FMakefile.in;h=bc3f0588cea23a441c5ec555b76a860774270d15;hb=c236efcd5ed186c5813cc6b11d0b1b12d8ec0734;hp=9205d7001ecb39487c1699524e1fe3f6b8d04fac;hpb=eace6f7fc7147fd614bb1cd4c6d435caa07460e3;p=fs%2Flustre-release.git diff --git a/ldiskfs/Makefile.in b/ldiskfs/Makefile.in index 9205d70..bc3f058 100644 --- a/ldiskfs/Makefile.in +++ b/ldiskfs/Makefile.in @@ -1,3 +1,32 @@ -subdir-m += ldiskfs +default: all + +MODULES := ldiskfs + +# copy makefile over to not break patches +backfs_extra := $(wildcard @LINUX@/fs/ext4/Makefile) + +backfs_headers := $(wildcard @EXT4_SRC_DIR@/*.h) +linux_headers := $(wildcard @LINUX@/include/linux/ext4*.h) +linux_new_headers := htree_lock.h +trace_headers := $(wildcard @LINUX@/include/trace/events/ext4*.h) + +backfs_sources := $(filter-out %.mod.c,$(wildcard @EXT4_SRC_DIR@/*.c)) + +ext3_new_sources := extents.c mballoc.c group.h fiemap.h +ext3_new_headers := ext3_extents.h + +ext4_new_sources := fiemap.h mmp.c +ext4_new_sources += htree_lock.c +ext4_new_headers := + +new_sources := $(ext4_new_sources) +new_headers := $(ext4_new_headers) + +ldiskfs_patched_sources := $(notdir $(backfs_sources) $(backfs_headers)) $(new_sources) $(new_headers) +ldiskfs_sources := $(ldiskfs_patched_sources) + +ldiskfs-objs := $(filter %.o,$(ldiskfs_sources:.c=.o)) + +EXTRA_PRE_CFLAGS := -I@LINUX@/fs -I@abs_top_srcdir@/ldiskfs @INCLUDE_RULES@