Whamcloud - gitweb
Yes, we should in fact MOD_DEC_USE_COUNT there.
[fs/lustre-release.git] / lustre / mds / Makefile.am
index 91c3c5f..a5eefb4 100644 (file)
@@ -3,22 +3,31 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-DEFS:= 
+DEFS= 
+
+if LINUX25
+FSMOD = mds_ext3
+else
+FSMOD = mds_extN
+endif
 
 MODULE = mds
-modulefs_DATA = mds.o
-EXTRA_PROGRAMS = mds
+modulefs_DATA = mds.o $(FSMOD).o
+EXTRA_PROGRAMS = mds $(FSMOD)
 
-LINX=mds_pack.c mds_updates.c
-mds_pack.c: 
-       ln -s ../lib/mds_pack.c .
-mds_updates.c: 
-       ln -s ../lib/mds_updates.c .
+LINX= mds_updates.c simple.c ll_pack.c lov_pack.c target.c
 
-mds_SOURCES = handler.c mds_reint.c $(LINX)
+ll_pack.c: 
+       test -e ll_pack.c || ln -sf $(top_srcdir)/lib/ll_pack.c
+mds_updates.c: 
+       test -e mds_updates.c || ln -sf $(top_srcdir)/lib/mds_updates.c
+simple.c: 
+       test -e simple.c || ln -sf $(top_srcdir)/lib/simple.c
+lov_pack.c: 
+       test -e lov_pack.c || ln -sf $(top_srcdir)/lib/lov_pack.c
+target.c: 
+       test -e target.c || ln -sf $(top_srcdir)/lib/target.c
 
-dist-hook:
-       list='$(LINX)'; for f in $$list; do rm -f $(distdir)/$$f; done
+mds_SOURCES = mds_lov.c handler.c mds_reint.c mds_fs.c lproc_mds.c $(LINX)
 
 include $(top_srcdir)/Rules
-