Whamcloud - gitweb
land b_smallfix 20040407_1414:
[fs/lustre-release.git] / lustre / lvfs / autoMakefile.am
1 # Copyright (C) 2001  Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5
6 if LIBLUSTRE
7 noinst_LIBRARIES = liblvfs.a
8 liblvfs_a_SOURCES = lvfs_userfs.c
9 liblvfs_a_CFLAGS = $(LLCFLAGS)
10 liblvfs_a_CPPFLAGS = $(LLCPPFLAGS)
11
12 #if MYSQL
13 #liblvfs_a_SOURCES += lvfs_user_mysql.c
14 #endif
15 endif
16
17 if MODULES
18
19 modulefs_DATA = lvfs$(KMODEXT) fsfilt_$(BACKINGFS)$(KMODEXT)
20
21 $(modulefs_DATA): fsfilt_$(BACKINGFS).c
22
23 fsfilt_extN.c: fsfilt_ext3.c
24         sed -e "s/EXT3/EXTN/g" -e "s/ext3/extN/g" $< > $@
25
26 ldiskfs_sed_flags = \
27         -e "s/dx_hash_info/ext3_dx_hash_info/g" \
28         -e "s/dir_private_info/ext3_dir_private_info/g" \
29         -e "s/DX_HASH/EXT3_DX_HASH/g" \
30         -e "s/EXT3/LDISKFS/g" -e "s/ext3/ldiskfs/g"
31
32 fsfilt_ldiskfs.c: fsfilt_ext3.c
33         sed $(strip $(ldiskfs_sed_flags)) $< > $@
34
35 endif # MODULES
36
37 DIST_SOURCES = fsfilt.c fsfilt_ext3.c fsfilt_reiserfs.c lvfs_common.c \
38         lvfs_internal.h lvfs_linux.c lvfs_userfs.c
39
40 MOSTLYCLEANFILES = *.o *.ko *.mod.c
41 CLEANFILES = fsfilt-*.c fsfilt_ldiskfs.c fsfilt_extN.c