Whamcloud - gitweb
LU-1098 debug: lower debug message level
[fs/lustre-release.git] / ldiskfs / 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/@BACKFS@/Makefile)
7
8 backfs_headers := $(wildcard @EXT_DIR@/*.h)
9 linux_headers := $(wildcard @LINUX@/include/linux/@BACKFS@*.h)
10 linux_new_headers := dynlocks.h
11 @LDISKFS_PDO_TRUE@linux_new_headers += htree_lock.h
12 trace_headers := $(wildcard @LINUX@/include/trace/events/@BACKFS@*.h)
13
14 backfs_sources := $(filter-out %.mod.c,$(wildcard @EXT_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 @LDISKFS_PDO_TRUE@ext4_new_sources += htree_lock.c
21 ext4_new_headers :=
22
23 new_sources := $(@BACKFS@_new_sources)
24 new_headers := $(@BACKFS@_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@LDISKFSDIR@
32
33 @INCLUDE_RULES@