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