Whamcloud - gitweb
b=8007
[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)
20
21 if SERVER
22 modulefs_DATA += fsfilt_$(BACKINGFS)$(KMODEXT)
23 sources: fsfilt_$(BACKINGFS).c
24         touch sources
25 else
26 sources:
27
28 endif
29
30 fsfilt_extN.c: fsfilt_ext3.c
31         sed -e "s/EXT3/EXTN/g" -e "s/ext3/extN/g" $< > $@
32
33 ldiskfs_sed_flags = \
34         -e "s/dx_hash_info/ext3_dx_hash_info/g" \
35         -e "s/dir_private_info/ext3_dir_private_info/g" \
36         -e "s/DX_HASH/EXT3_DX_HASH/g" \
37         -e "s/reserve_window/ext3_reserve_window/g" \
38         -e "s/rsv_window_add/ext3_rsv_window_add/g" \
39         -e "s/EXT3/LDISKFS/g" -e "s/ext3/ldiskfs/g"
40
41 fsfilt_ldiskfs.c: fsfilt_ext3.c
42         sed $(strip $(ldiskfs_sed_flags)) $< > $@
43 fsfilt_ldiskfs_quota.h: fsfilt_ext3_quota.h
44         sed $(strip $(ldiskfs_sed_flags)) $< > $@
45
46
47 else
48
49 sources:
50
51 endif # MODULES
52
53 DIST_SOURCES = fsfilt.c fsfilt_ext3.c fsfilt_reiserfs.c lvfs_common.c \
54         lvfs_internal.h lvfs_linux.c lvfs_userfs.c \
55         upcall_cache.c \
56         # quotacheck_test.c quotactl_test.c fsfilt_ext3_quota.h
57
58 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ 
59 CLEANFILES = fsfilt-*.c fsfilt_ldiskfs.c fsfilt_extN.c sources