# This code is issued under the GNU General Public License.
# See the file COPYING in this distribution
-DEFS:=
+DEFS=
+if LIBLUSTRE
+noinst_LIBRARIES = libmdc.a
+libmdc_a_SOURCES = mdc_request.c mdc_reint.c mdc_lib.c mdc_internal.h mdc_locks.c
+libmdc_a_CFLAGS = -fPIC
+else
MODULE = mdc
modulefs_DATA = mdc.o
EXTRA_PROGRAMS = mdc
-
-mdc_SOURCES = mds_pack.c mdc_request.c
-
-mds_pack.c:
- ln -s ../lib/mds_pack.c .
+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