Whamcloud - gitweb
file mount_utils.c was initially added on branch b1_6.
[fs/lustre-release.git] / lustre / ptlrpc / autoMakefile.am
index 4ab929f..d94f0e4 100644 (file)
@@ -5,6 +5,7 @@
 
 LDLM_COMM_SOURCES= $(top_srcdir)/lustre/ldlm/l_lock.c  \
        $(top_srcdir)/lustre/ldlm/ldlm_lock.c           \
+       $(top_srcdir)/lustre/ldlm/interval_tree.c       \
        $(top_srcdir)/lustre/ldlm/ldlm_resource.c       \
        $(top_srcdir)/lustre/ldlm/ldlm_lib.c            \
        $(top_srcdir)/lustre/ldlm/ldlm_plain.c          \
@@ -12,25 +13,78 @@ LDLM_COMM_SOURCES= $(top_srcdir)/lustre/ldlm/l_lock.c       \
        $(top_srcdir)/lustre/ldlm/ldlm_request.c        \
        $(top_srcdir)/lustre/ldlm/ldlm_lockd.c          \
        $(top_srcdir)/lustre/ldlm/ldlm_internal.h       \
-       $(top_srcdir)/lustre/ldlm/ldlm_inodebits.c
+       $(top_srcdir)/lustre/ldlm/ldlm_inodebits.c      \
+       $(top_srcdir)/lustre/ldlm/ldlm_flock.c          \
+       $(top_srcdir)/lustre/ldlm/ldlm_pool.c
 
 COMMON_SOURCES =  client.c recover.c connection.c niobuf.c pack_generic.c   \
     events.c ptlrpc_module.c service.c pinger.c recov_thread.c llog_net.c   \
-    llog_client.c llog_server.c import.c ptlrpcd.c pers.c                  \
-    ptlrpc_internal.h $(LDLM_COMM_SOURCES)
+    llog_client.c llog_server.c import.c ptlrpcd.c pers.c wiretest.c               \
+    ptlrpc_internal.h layout.c sec.c sec_bulk.c sec_gc.c sec_config.c       \
+    sec_lproc.c sec_null.c sec_plain.c lproc_ptlrpc.c $(LDLM_COMM_SOURCES)
 
 if LIBLUSTRE
 
 noinst_LIBRARIES = libptlrpc.a
 libptlrpc_a_SOURCES = $(COMMON_SOURCES)
-libptlrpc_a_CPPFLAGS = $(LLCPPFLGS)
+libptlrpc_a_CPPFLAGS = $(LLCPPFLAGS)
 libptlrpc_a_CFLAGS = $(LLCFLAGS)
 
 endif
 
 if MODULES
+
+if LINUX
 modulefs_DATA = ptlrpc$(KMODEXT)
+endif #LINUX
+
+if DARWIN
+macos_PROGRAMS := ptlrpc
+
+ptlrpc_SOURCES := \
+        ptlrpc_module.c \
+        client.c \
+        connection.c \
+        events.c \
+        import.c \
+        llog_client.c \
+        llog_net.c \
+        llog_server.c \
+        lproc_ptlrpc.c \
+        niobuf.c \
+        pack_generic.c \
+        pers.c \
+        pinger.c \
+        ptlrpcd.c \
+        recover.c \
+        recov_thread.c \
+        service.c \
+       wiretest.c \
+       sec.c \
+       sec_bulk.c \
+       sec_gc.c \
+       sec_config.c \
+       sec_lproc.c \
+       sec_null.c \
+       sec_plain.c \
+        $(LDLM_COMM_SOURCES)
+
+ptlrpc_CFLAGS := $(EXTRA_KCFLAGS)
+ptlrpc_LDFLAGS := $(EXTRA_KLDFLAGS)
+ptlrpc_LDADD := $(EXTRA_KLIBS)
+
+plist_DATA := Info.plist
+
+install_data_hook := fix-kext-ownership
+
+endif # DARWIN
+
 endif # MODULES
 
-MOSTLYCLEANFILES := @MOSTLYCLEANFILES@  ldlm_*.c l_lock.c
+if GSS
+SUBDIRS = gss
+endif
+
+install-data-hook: $(install_data_hook)
 DIST_SOURCES = $(ptlrpc_objs:.o=.c) ptlrpc_internal.h
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@  ldlm_*.c l_lock.c interval_tree.c