Whamcloud - gitweb
Add empty install-data-hook rule on non-darwin
[fs/lustre-release.git] / lnet / klnds / socklnd / autoMakefile.am
index 0923459..5abd135 100644 (file)
@@ -3,7 +3,35 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
+if MODULES
+if !CRAY_PORTALS
+
+if LINUX
 modulenet_DATA = ksocknal$(KMODEXT)
+endif
+
+if DARWIN
+macos_PROGRAMS := ksocknal
+
+ksocknal_SOURCES := socknal.c socknal_cb.c socknal_lib-darwin.c
+
+ksocknal_CFLAGS := $(EXTRA_KCFLAGS)
+ksocknal_LDFLAGS := $(EXTRA_KLDFLAGS)
+ksocknal_LDADD := $(EXTRA_KLIBS)
+
+plist_DATA := Info.plist
+
+install_data_hook := fix-kext-ownership
+
+endif
+
+endif
+endif
+
+install-data-hook: $(install_data_hook)
+
+EXTRA_DIST := Info.plist
 
-MOSTLYCLEANFILES = *.o *.ko *.mod.c
-DIST_SOURCES = $(ksocknal-objs:%.o=%.c) socknal.h
+MOSTLYCLEANFILES = *.o *.ko *.mod.c socknal_lib.c
+DIST_SOURCES = $(ksocknal-objs:%.o=%.c) socknal_lib-darwin.c   \
+       socknal_lib-darwin.h socknal_lib-linux.h socknal.h