Whamcloud - gitweb
file loop-sync-2.4.21-suse.patch was initially added on branch b1_2_smallfix.
[fs/lustre-release.git] / lustre / ptlrpc / Makefile.am
1 # Copyright (C) 2001  Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5
6 DEFS=
7
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
13
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)
18
19 if LIBLUSTRE
20
21 noinst_LIBRARIES = libptlrpc.a
22 libptlrpc_a_CFLAGS = -fPIC
23 libptlrpc_a_SOURCES = $(COMMON_SOURCES)
24
25 else
26
27 MODULE = ptlrpc
28 modulefs_DATA = ptlrpc.o
29 EXTRA_PROGRAMS = ptlrpc
30
31 ptlrpc_SOURCES = $(top_srcdir)/ldlm/ldlm_flock.c $(COMMON_SOURCES) \
32     lproc_ptlrpc.c
33
34 endif
35
36 ptlrpc_DEPENDENCIES=symlinks
37
38 symlinks:
39         ln -sf $(subst /ldlm/,/ptlrpc/,$(addsuffix .o,$(basename $(LDLMSOURCES)))) ../ldlm
40
41 include $(top_srcdir)/Rules