From e6d9eefc359787608ad5f16506a652d5e859375e Mon Sep 17 00:00:00 2001 From: zab Date: Thu, 22 May 2003 05:02:12 +0000 Subject: [PATCH] get mds/ building in 2.5 - fix the still-born KDEVT_VAL - 2.5 uses a extra-awesome special list/head datatype for hashes. we introduce some compatibility macros so we can drive both it and 2.4's list_head. this isn't quite done.. - cook some 2.5 make fu to link into ../lib --- lustre/Makefile.mk | 3 +-- lustre/mds/Makefile.mk | 13 +++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lustre/Makefile.mk b/lustre/Makefile.mk index 89cf8b7..e540148 100644 --- a/lustre/Makefile.mk +++ b/lustre/Makefile.mk @@ -1,5 +1,4 @@ include fs/lustre/portals/Kernelenv obj-y += portals/ -# uncomment me when we have the kernel patch, and such -#obj-y += mds/ +obj-y += mds/ diff --git a/lustre/mds/Makefile.mk b/lustre/mds/Makefile.mk index 6b712fb..1d13012 100644 --- a/lustre/mds/Makefile.mk +++ b/lustre/mds/Makefile.mk @@ -3,8 +3,17 @@ # This code is issued under the GNU General Public License. # See the file COPYING in this distribution -include fs/lustre/portals/Kernelenv +include $(src)/../portals/Kernelenv obj-y += mds.o -mds-objs := mds_lov.o handler.o mds_reint.o mds_fs.o lproc_mds.o mds_internal.h mds_updates.o mds_open.o simple.o target.o +martians := mds_updates.c simple.c target.c + +$(addprefix $(obj)/, $(martians)): $(obj)/%: $(src)/../lib/% + @rm -f $@ + ln -s ../lib/$* $@ + +mds-objs := mds_lov.o handler.o mds_reint.o mds_fs.o lproc_mds.o mds_open.o \ + $(patsubst %.c, %.o, $(martians)) + +clean-files := $(martians) -- 1.8.3.1