Whamcloud - gitweb
b=14687
[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/interval_tree.c       \
9         $(top_srcdir)/lustre/ldlm/ldlm_resource.c       \
10         $(top_srcdir)/lustre/ldlm/ldlm_lib.c            \
11         $(top_srcdir)/lustre/ldlm/ldlm_plain.c          \
12         $(top_srcdir)/lustre/ldlm/ldlm_extent.c         \
13         $(top_srcdir)/lustre/ldlm/ldlm_request.c        \
14         $(top_srcdir)/lustre/ldlm/ldlm_lockd.c          \
15         $(top_srcdir)/lustre/ldlm/ldlm_internal.h       \
16         $(top_srcdir)/lustre/ldlm/ldlm_inodebits.c      \
17         $(top_srcdir)/lustre/ldlm/ldlm_flock.c          \
18         $(top_srcdir)/lustre/ldlm/ldlm_pool.c
19
20 COMMON_SOURCES =  client.c recover.c connection.c niobuf.c pack_generic.c   \
21     events.c ptlrpc_module.c service.c pinger.c recov_thread.c llog_net.c   \
22     llog_client.c llog_server.c import.c ptlrpcd.c pers.c wiretest.c        \
23     ptlrpc_internal.h layout.c sec.c sec_bulk.c sec_gc.c sec_config.c       \
24     sec_lproc.c sec_null.c sec_plain.c lproc_ptlrpc.c $(LDLM_COMM_SOURCES)
25
26 if LIBLUSTRE
27
28 noinst_LIBRARIES = libptlrpc.a
29 libptlrpc_a_SOURCES = $(COMMON_SOURCES)
30 libptlrpc_a_CPPFLAGS = $(LLCPPFLAGS)
31 libptlrpc_a_CFLAGS = $(LLCFLAGS)
32
33 endif
34
35 if MODULES
36
37 if LINUX
38 modulefs_DATA = ptlrpc$(KMODEXT)
39 endif #LINUX
40
41 if DARWIN
42 macos_PROGRAMS := ptlrpc
43
44 ptlrpc_SOURCES := \
45         ptlrpc_module.c \
46         client.c \
47         connection.c \
48         events.c \
49         import.c \
50         llog_client.c \
51         llog_net.c \
52         llog_server.c \
53         lproc_ptlrpc.c \
54         niobuf.c \
55         pack_generic.c \
56         pers.c \
57         pinger.c \
58         ptlrpcd.c \
59         recover.c \
60         recov_thread.c \
61         service.c \
62         wiretest.c \
63         sec.c \
64         sec_bulk.c \
65         sec_gc.c \
66         sec_config.c \
67         sec_lproc.c \
68         sec_null.c \
69         sec_plain.c \
70         $(LDLM_COMM_SOURCES)
71
72 ptlrpc_CFLAGS := $(EXTRA_KCFLAGS)
73 ptlrpc_LDFLAGS := $(EXTRA_KLDFLAGS)
74 ptlrpc_LDADD := $(EXTRA_KLIBS)
75
76 plist_DATA := Info.plist
77
78 install_data_hook := fix-kext-ownership
79
80 endif # DARWIN
81
82 endif # MODULES
83
84 if GSS
85 SUBDIRS = gss
86 endif
87
88 install-data-hook: $(install_data_hook)
89 DIST_SOURCES = $(ptlrpc_objs:.o=.c) ptlrpc_internal.h
90 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@  ldlm_*.c l_lock.c interval_tree.c