Whamcloud - gitweb
af44d1da6ef75bc93fdc8fefc60a706e853db77f
[fs/lustre-release.git] / ldiskfs / Makefile.in
1 default: all
2
3 MODULES := ldiskfs
4
5 # copy makefile over to not break patches
6 backfs_extra := $(wildcard @LINUX@/fs/ext4/Makefile)
7
8 backfs_headers := $(wildcard @EXT4_SRC_DIR@/*.h)
9 linux_headers := $(wildcard @LINUX@/include/linux/ext4*.h)
10 linux_new_headers := dynlocks.h
11 linux_new_headers += htree_lock.h
12 trace_headers := $(wildcard @LINUX@/include/trace/events/ext4*.h)
13
14 backfs_sources := $(filter-out %.mod.c,$(wildcard @EXT4_SRC_DIR@/*.c))
15
16 ext3_new_sources := extents.c mballoc.c group.h dynlocks.c fiemap.h
17 ext3_new_headers := ext3_extents.h
18
19 ext4_new_sources := dynlocks.c fiemap.h mmp.c
20 ext4_new_sources += htree_lock.c
21 ext4_new_headers :=
22
23 new_sources := $(ext4_new_sources)
24 new_headers := $(ext4_new_headers)
25
26 ldiskfs_patched_sources := $(notdir $(backfs_sources) $(backfs_headers)) $(new_sources) $(new_headers)
27 ldiskfs_sources := $(ldiskfs_patched_sources)
28
29 ldiskfs-objs := $(filter %.o,$(ldiskfs_sources:.c=.o))
30
31 EXTRA_PRE_CFLAGS := -I@LINUX@/fs -I@abs_top_srcdir@/ldiskfs
32
33 @INCLUDE_RULES@