-# Copyright (C) 2001 Cluster File Systems, Inc.
#
-# This code is issued under the GNU General Public License.
-# See the file COPYING in this distribution
-
-LDLM_COMM_SOURCES= $(top_srcdir)/lustre/ldlm/l_lock.c \
- $(top_srcdir)/lustre/ldlm/ldlm_lock.c \
- $(top_srcdir)/lustre/ldlm/ldlm_resource.c \
- $(top_srcdir)/lustre/ldlm/ldlm_lib.c \
- $(top_srcdir)/lustre/ldlm/ldlm_plain.c \
- $(top_srcdir)/lustre/ldlm/ldlm_extent.c \
- $(top_srcdir)/lustre/ldlm/ldlm_request.c \
- $(top_srcdir)/lustre/ldlm/ldlm_lockd.c \
- $(top_srcdir)/lustre/ldlm/ldlm_internal.h \
- $(top_srcdir)/lustre/ldlm/ldlm_inodebits.c
-
-COMMON_SOURCES = client.c recover.c connection.c niobuf.c pack_generic.c \
- events.c ptlrpc_module.c service.c pinger.c recov_thread.c llog_net.c \
- llog_client.c llog_server.c import.c ptlrpcd.c pers.c \
- ptlrpc_internal.h $(LDLM_COMM_SOURCES)
-
-if LIBLUSTRE
+# GPL HEADER START
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 only,
+# as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License version 2 for more details (a copy is included
+# in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU General Public License
+# version 2 along with this program; If not, see
+# http://www.gnu.org/licenses/gpl-2.0.html
+#
+# GPL HEADER END
+#
-noinst_LIBRARIES = libptlrpc.a
-libptlrpc_a_SOURCES = $(COMMON_SOURCES)
-libptlrpc_a_CPPFLAGS = $(LLCPPFLGS)
-libptlrpc_a_CFLAGS = $(LLCFLAGS)
+#
+# Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
+# Use is subject to license terms.
+#
+# Copyright (c) 2012, 2013, Intel Corporation.
+#
-endif
+#
+# This file is part of Lustre, http://www.lustre.org/
+# Lustre is a trademark of Sun Microsystems, Inc.
+#
if MODULES
+
+if LINUX
modulefs_DATA = ptlrpc$(KMODEXT)
+endif # LINUX
+
endif # MODULES
-MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ ldlm_*.c l_lock.c
-DIST_SOURCES = $(ptlrpc_objs:.o=.c) ptlrpc_internal.h
+if GSS
+SUBDIRS = gss
+endif
+
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ ldlm_*.c l_lock.c interval_tree.c