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