Whamcloud - gitweb
*** empty log message ***
[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
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)
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         sec.c \
62         sec_null.c \
63         sec_plain.c \
64         $(LDLM_COMM_SOURCES)
65
66 ptlrpc_CFLAGS := $(EXTRA_KCFLAGS)
67 ptlrpc_LDFLAGS := $(EXTRA_KLDFLAGS)
68 ptlrpc_LDADD := $(EXTRA_KLIBS)
69
70 plist_DATA := Info.plist
71
72 install_data_hook := fix-kext-ownership
73
74 endif # DARWIN
75
76 endif # MODULES
77
78 SUBDIRS = gss
79
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