Whamcloud - gitweb
b=2262
[fs/lustre-release.git] / lustre / ptlrpc / autoMakefile.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 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          \
17         $(top_srcdir)/lustre/ldlm/ldlm_pool.c
18
19 COMMON_SOURCES =  client.c recover.c connection.c niobuf.c pack_generic.c   \
20     events.c ptlrpc_module.c service.c pinger.c recov_thread.c llog_net.c   \
21     llog_client.c llog_server.c import.c ptlrpcd.c pers.c lproc_ptlrpc.c wiretest.c \
22     ptlrpc_internal.h $(LDLM_COMM_SOURCES)
23
24 if LIBLUSTRE
25
26 noinst_LIBRARIES = libptlrpc.a
27 libptlrpc_a_SOURCES = $(COMMON_SOURCES)
28 libptlrpc_a_CPPFLAGS = $(LLCPPFLAGS)
29 libptlrpc_a_CFLAGS = $(LLCFLAGS)
30
31 endif
32
33 if MODULES
34
35 if LINUX
36 modulefs_DATA = ptlrpc$(KMODEXT)
37 endif #LINUX
38
39 if DARWIN
40 macos_PROGRAMS := ptlrpc
41
42 ptlrpc_SOURCES := \
43         ptlrpc_module.c \
44         client.c \
45         connection.c \
46         events.c \
47         import.c \
48         llog_client.c \
49         llog_net.c \
50         llog_server.c \
51         lproc_ptlrpc.c \
52         niobuf.c \
53         pack_generic.c \
54         pers.c \
55         pinger.c \
56         ptlrpcd.c \
57         recover.c \
58         recov_thread.c \
59         service.c \
60         wiretest.c \
61         $(LDLM_COMM_SOURCES)
62
63 ptlrpc_CFLAGS := $(EXTRA_KCFLAGS)
64 ptlrpc_LDFLAGS := $(EXTRA_KLDFLAGS)
65 ptlrpc_LDADD := $(EXTRA_KLIBS)
66
67 plist_DATA := Info.plist
68
69 install_data_hook := fix-kext-ownership
70
71 endif # DARWIN
72
73 endif # MODULES
74
75 install-data-hook: $(install_data_hook)
76 DIST_SOURCES = $(ptlrpc_objs:.o=.c) ptlrpc_internal.h
77 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@  ldlm_*.c l_lock.c