Whamcloud - gitweb
get mds/ building in 2.5
authorzab <zab>
Thu, 22 May 2003 05:02:12 +0000 (05:02 +0000)
committerzab <zab>
Thu, 22 May 2003 05:02:12 +0000 (05:02 +0000)
- 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
lustre/mds/Makefile.mk

index 89cf8b7..e540148 100644 (file)
@@ -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/
index 6b712fb..1d13012 100644 (file)
@@ -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)