Whamcloud - gitweb
b=16098
[fs/lustre-release.git] / lustre / ptlrpc / autoMakefile.am
1 #
2 # GPL HEADER START
3 #
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 2 only,
8 # as published by the Free Software Foundation.
9 #
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # General Public License version 2 for more details (a copy is included
14 # in the LICENSE file that accompanied this code).
15 #
16 # You should have received a copy of the GNU General Public License
17 # version 2 along with this program; If not, see
18 # http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
19 #
20 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 # CA 95054 USA or visit www.sun.com if you need additional information or
22 # have any questions.
23 #
24 # GPL HEADER END
25 #
26
27 #
28 # Copyright  2008 Sun Microsystems, Inc. All rights reserved
29 # Use is subject to license terms.
30 #
31
32 #
33 # This file is part of Lustre, http://www.lustre.org/
34 # Lustre is a trademark of Sun Microsystems, Inc.
35 #
36
37 LDLM_COMM_SOURCES= $(top_srcdir)/lustre/ldlm/l_lock.c   \
38         $(top_srcdir)/lustre/ldlm/ldlm_lock.c           \
39         $(top_srcdir)/lustre/ldlm/interval_tree.c       \
40         $(top_srcdir)/lustre/ldlm/ldlm_resource.c       \
41         $(top_srcdir)/lustre/ldlm/ldlm_lib.c            \
42         $(top_srcdir)/lustre/ldlm/ldlm_plain.c          \
43         $(top_srcdir)/lustre/ldlm/ldlm_extent.c         \
44         $(top_srcdir)/lustre/ldlm/ldlm_request.c        \
45         $(top_srcdir)/lustre/ldlm/ldlm_lockd.c          \
46         $(top_srcdir)/lustre/ldlm/ldlm_internal.h       \
47         $(top_srcdir)/lustre/ldlm/ldlm_inodebits.c      \
48         $(top_srcdir)/lustre/ldlm/ldlm_flock.c          \
49         $(top_srcdir)/lustre/ldlm/ldlm_pool.c
50
51 COMMON_SOURCES =  client.c recover.c connection.c niobuf.c pack_generic.c   \
52     events.c ptlrpc_module.c service.c pinger.c recov_thread.c llog_net.c   \
53     llog_client.c llog_server.c import.c ptlrpcd.c pers.c wiretest.c        \
54     ptlrpc_internal.h layout.c sec.c sec_bulk.c sec_gc.c sec_config.c       \
55     sec_lproc.c sec_null.c sec_plain.c lproc_ptlrpc.c $(LDLM_COMM_SOURCES)
56
57 if LIBLUSTRE
58
59 noinst_LIBRARIES = libptlrpc.a
60 libptlrpc_a_SOURCES = $(COMMON_SOURCES)
61 libptlrpc_a_CPPFLAGS = $(LLCPPFLAGS)
62 libptlrpc_a_CFLAGS = $(LLCFLAGS)
63
64 endif
65
66 if MODULES
67
68 if LINUX
69 modulefs_DATA = ptlrpc$(KMODEXT)
70 endif #LINUX
71
72 if DARWIN
73 macos_PROGRAMS := ptlrpc
74
75 ptlrpc_SOURCES := \
76         ptlrpc_module.c \
77         client.c \
78         connection.c \
79         events.c \
80         import.c \
81         llog_client.c \
82         llog_net.c \
83         llog_server.c \
84         lproc_ptlrpc.c \
85         niobuf.c \
86         pack_generic.c \
87         pers.c \
88         pinger.c \
89         ptlrpcd.c \
90         recover.c \
91         recov_thread.c \
92         service.c \
93         wiretest.c \
94         sec.c \
95         sec_bulk.c \
96         sec_gc.c \
97         sec_config.c \
98         sec_lproc.c \
99         sec_null.c \
100         sec_plain.c \
101         $(LDLM_COMM_SOURCES)
102
103 ptlrpc_CFLAGS := $(EXTRA_KCFLAGS)
104 ptlrpc_LDFLAGS := $(EXTRA_KLDFLAGS)
105 ptlrpc_LDADD := $(EXTRA_KLIBS)
106
107 plist_DATA := Info.plist
108
109 install_data_hook := fix-kext-ownership
110
111 endif # DARWIN
112
113 endif # MODULES
114
115 if GSS
116 SUBDIRS = gss
117 endif
118
119 install-data-hook: $(install_data_hook)
120 DIST_SOURCES = $(ptlrpc_objs:.o=.c) ptlrpc_internal.h
121 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@  ldlm_*.c l_lock.c interval_tree.c