1 # Copyright (C) 2001 Cluster File Systems, Inc.
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
8 LDLM_COMM_SOURCES= $(top_srcdir)/ldlm/l_lock.c $(top_srcdir)/ldlm/ldlm_lock.c \
9 $(top_srcdir)/ldlm/ldlm_resource.c $(top_srcdir)/ldlm/ldlm_lib.c \
10 $(top_srcdir)/ldlm/ldlm_plain.c $(top_srcdir)/ldlm/ldlm_extent.c \
11 $(top_srcdir)/ldlm/ldlm_request.c $(top_srcdir)/ldlm/ldlm_lockd.c \
12 $(top_srcdir)/ldlm/ldlm_internal.h $(top_srcdir)/ldlm/ldlm_inodebits.c
14 COMMON_SOURCES = client.c recover.c connection.c niobuf.c pack_generic.c \
15 events.c ptlrpc_module.c service.c pinger.c recov_thread.c llog_net.c \
16 llog_client.c llog_server.c import.c ptlrpcd.c pers.c \
17 ptlrpc_internal.h $(LDLM_COMM_SOURCES)
21 noinst_LIBRARIES = libptlrpc.a
22 libptlrpc_a_CFLAGS = -fPIC
23 libptlrpc_a_SOURCES = $(COMMON_SOURCES)
28 modulefs_DATA = ptlrpc.o
29 EXTRA_PROGRAMS = ptlrpc
31 ptlrpc_SOURCES = $(top_srcdir)/ldlm/ldlm_flock.c $(COMMON_SOURCES) \
36 ptlrpc_DEPENDENCIES=symlinks
39 ln -sf $(subst /ldlm/,/ptlrpc/,$(addsuffix .o,$(basename $(LDLMSOURCES)))) ../ldlm
41 include $(top_srcdir)/Rules