1 # Copyright (C) 2001 Cluster File Systems, Inc.
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
6 noinst_LIBRARIES = liblvfs.a
7 liblvfs_a_SOURCES = lvfs_userfs.c prng.c lvfs_lib.c
8 liblvfs_a_CFLAGS = $(LLCFLAGS)
9 liblvfs_a_CPPFLAGS = $(LLCPPFLAGS)
12 #liblvfs_a_SOURCES += lvfs_user_mysql.c
20 modulefs_DATA := lvfs$(KMODEXT)
23 modulefs_DATA += fsfilt_$(BACKINGFS)$(KMODEXT)
25 sources: fsfilt_$(BACKINGFS).c
33 fsfilt_extN.c: fsfilt_ext3.c
34 sed -e "s/EXT3/EXTN/g" -e "s/ext3/extN/g" $< > $@
37 -e "s/dx_hash_info/ext3_dx_hash_info/g" \
38 -e "s/dir_private_info/ext3_dir_private_info/g" \
39 -e "s/DX_HASH/EXT3_DX_HASH/g" \
40 -e "s/reserve_window/ext3_reserve_window/g" \
41 -e "s/rsv_window_add/ext3_rsv_window_add/g" \
42 -e "s/EXT3/LDISKFS/g" -e "s/ext3/ldiskfs/g"
44 fsfilt_ldiskfs.c: fsfilt_ext3.c
45 sed $(strip $(ldiskfs_sed_flags)) $< > $@
46 fsfilt_ldiskfs_quota.h: fsfilt_ext3_quota.h
47 sed $(strip $(ldiskfs_sed_flags)) $< > $@
53 macos_PROGRAMS := lvfs
55 lvfs_SOURCES := lvfs_darwin.c
57 lvfs_CFLAGS := $(EXTRA_KCFLAGS)
58 lvfs_LDFLAGS := $(EXTRA_KLDFLAGS)
59 lvfs_LDADD := $(EXTRA_KLIBS)
61 plist_DATA := Info.plist
63 install_data_hook := fix-kext-ownership
73 install-data-hook: $(install_data_hook)
75 DIST_SOURCES = fsfilt.c fsfilt_ext3.c fsfilt_reiserfs.c lvfs_common.c \
76 lvfs_internal.h lvfs_linux.c lvfs_userfs.c \
77 upcall_cache.c prng.c lvfs_lib.c\
78 lustre_quota_fmt.c lustre_quota_fmt.h quotafmt_test.c \
79 # quotacheck_test.c quotactl_test.c fsfilt_ext3_quota.h
81 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
82 CLEANFILES = fsfilt-*.c fsfilt_ldiskfs*.c fsfilt_extN.c sources