# This code is issued under the GNU General Public License.
# See the file COPYING in this distribution
-DEFS:=
+DEFS=
+if LIBLUSTRE
+lib_LIBRARIES = libmdc.a
+libmdc_a_SOURCES = mdc_request.c mdc_reint.c mdc_lib.c mdc_internal.h mdc_locks.c
+else
MODULE = mdc
modulefs_DATA = mdc.o
EXTRA_PROGRAMS = mdc
-
-LINX=mds_pack.c mds_updates.c
-mdc_SOURCES = mdc_request.c mdc_reint.c $(LINX)
-
-mds_pack.c:
- ln -s ../lib/mds_pack.c .
-mds_updates.c:
- ln -s ../lib/mds_updates.c .
-
-dist-hook:
- list='$(LINX)'; for f in $$list; do rm -f $(distdir)/$$f; done
-
+mdc_SOURCES = mdc_request.c mdc_reint.c lproc_mdc.c mdc_lib.c mdc_locks.c mdc_internal.h
+endif
include $(top_srcdir)/Rules