# This code is issued under the GNU General Public License.
# See the file COPYING in this distribution
-DEFS:=
-MODULE = ldlm
-modulefs_DATA = ldlm.o
-EXTRA_PROGRAMS = ldlm
+#
+# ldlm is built into ptlrpc
+#
-ldlm_SOURCES = ldlm_lock.c resource.c ldlm_test.c
+DEFS=
-include $(top_srcdir)/Rules
+if LIBLUSTRE
+lib_LIBRARIES = libldlm.a
+libldlm_a_SOURCES = l_lock.c ldlm_lock.c ldlm_resource.c ldlm_lib.c \
+ ldlm_plain.c ldlm_extent.c ldlm_request.c ldlm_lockd.c ldlm_internal.h
+endif
+include $(top_srcdir)/Rules