Whamcloud - gitweb
b=19674
[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 @LINUX@/fs/@BACKFS@/*.h)
9 linux_headers := $(wildcard @LINUX@/include/linux/@BACKFS@*.h)
10
11 backfs_sources := $(filter-out %.mod.c,$(wildcard @LINUX@/fs/@BACKFS@/*.c))
12
13 ext3_new_sources := iopen.c iopen.h extents.c mballoc.c group.h fiemap.h
14 ext3_new_headers := ext3_extents.h 
15
16 ext4_new_sources := iopen.c iopen.h fiemap.h
17 ext4_new_headers :=
18
19 new_sources := $(@BACKFS@_new_sources)
20 new_headers := $(@BACKFS@_new_headers)
21
22 ldiskfs_patched_sources := $(notdir $(backfs_sources) $(backfs_headers)) $(new_sources) $(new_headers)
23 ldiskfs_sources := $(ldiskfs_patched_sources)
24
25 ldiskfs-objs := $(filter %.o,$(ldiskfs_sources:.c=.o))
26
27 EXTRA_PRE_CFLAGS := -I@LINUX@/fs -I@LDISKFSDIR@
28
29 @INCLUDE_RULES@