Whamcloud - gitweb
add conf-sanity.sh to acceptance-small.sh
[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 LDLMSOURCES= $(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_flock.c $(top_srcdir)/ldlm/ldlm_request.c    \
12    $(top_srcdir)/ldlm/ldlm_lockd.c $(top_srcdir)/ldlm/ldlm_internal.h
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 import.c ptlrpcd.c $(LDLMSOURCES)
17
18 if LIBLUSTRE
19
20 lib_LIBRARIES = libptlrpc.a
21 libptlrpc_a_SOURCES = $(COMMON_SOURCES)
22
23 else
24
25 MODULE = ptlrpc
26 modulefs_DATA = ptlrpc.o
27 EXTRA_PROGRAMS = ptlrpc
28
29 ptlrpc_SOURCES = $(COMMON_SOURCES) lproc_ptlrpc.c ptlrpc_internal.h \
30     llog_server.c
31 endif
32
33 ptlrpc_DEPENDENCIES=symlinks
34
35 symlinks:
36         ln -sf $(subst /ldlm/,/ptlrpc/,$(addsuffix .o,$(basename $(LDLMSOURCES)))) ../ldlm
37
38 include $(top_srcdir)/Rules