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
6 LDLM_COMM_SOURCES= $(top_srcdir)/lustre/ldlm/l_lock.c \
7 $(top_srcdir)/lustre/ldlm/ldlm_lock.c \
8 $(top_srcdir)/lustre/ldlm/ldlm_resource.c \
9 $(top_srcdir)/lustre/ldlm/ldlm_lib.c \
10 $(top_srcdir)/lustre/ldlm/ldlm_plain.c \
11 $(top_srcdir)/lustre/ldlm/ldlm_extent.c \
12 $(top_srcdir)/lustre/ldlm/ldlm_request.c \
13 $(top_srcdir)/lustre/ldlm/ldlm_lockd.c \
14 $(top_srcdir)/lustre/ldlm/ldlm_internal.h \
15 $(top_srcdir)/lustre/ldlm/ldlm_inodebits.c \
16 $(top_srcdir)/lustre/ldlm/ldlm_flock.c
18 COMMON_SOURCES = client.c recover.c connection.c niobuf.c pack_generic.c \
19 events.c ptlrpc_module.c service.c pinger.c recov_thread.c llog_net.c \
20 llog_client.c llog_server.c import.c ptlrpcd.c pers.c wiretest.c \
21 ptlrpc_internal.h layout.c sec.c sec_bulk.c sec_null.c sec_plain.c \
22 sec_lproc.c $(LDLM_COMM_SOURCES)
26 noinst_LIBRARIES = libptlrpc.a
27 libptlrpc_a_SOURCES = $(COMMON_SOURCES)
28 libptlrpc_a_CPPFLAGS = $(LLCPPFLAGS)
29 libptlrpc_a_CFLAGS = $(LLCFLAGS)
36 modulefs_DATA = ptlrpc$(KMODEXT)
40 macos_PROGRAMS := ptlrpc
66 ptlrpc_CFLAGS := $(EXTRA_KCFLAGS)
67 ptlrpc_LDFLAGS := $(EXTRA_KLDFLAGS)
68 ptlrpc_LDADD := $(EXTRA_KLIBS)
70 plist_DATA := Info.plist
72 install_data_hook := fix-kext-ownership
80 install-data-hook: $(install_data_hook)
81 DIST_SOURCES = $(ptlrpc_objs:.o=.c) ptlrpc_internal.h
82 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ ldlm_*.c l_lock.c