X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lnet%2Flnet%2FautoMakefile.am;h=bd05e93895dae6171b1c862c4432401df3eddbfb;hb=c2b877b6df0cf4ba3c572bcf6c5a25ed2efb2e1c;hp=b4743fe3f4748bb62d3b6a0f6b038745a9993a7b;hpb=3de901fceee79de12a31428bcc6ba3a00f10d1fe;p=fs%2Flustre-release.git diff --git a/lnet/lnet/autoMakefile.am b/lnet/lnet/autoMakefile.am index b4743fe..bd05e93 100644 --- a/lnet/lnet/autoMakefile.am +++ b/lnet/lnet/autoMakefile.am @@ -1,12 +1,9 @@ -# Copyright (C) 2002 Cluster File Systems, Inc. -# -# This code is issued under the GNU General Public License. -# See the file COPYING in this distribution - -my_sources = api-eq.c api-init.c api-me.c api-errno.c api-ni.c api-wrap.c \ - lib-dispatch.c lib-init.c lib-me.c lib-msg.c lib-eq.c \ +my_sources = api-errno.c api-ni.c api-wrap.c \ + lib-init.c lib-me.c lib-msg.c lib-eq.c \ lib-md.c lib-move.c lib-ni.c lib-pid.c +if !CRAY_PORTALS + if LIBLUSTRE noinst_LIBRARIES= libportals.a libportals_a_SOURCES= $(my_sources) @@ -15,8 +12,35 @@ libportals_a_CFLAGS = $(LLCFLAGS) endif if MODULES + +if LINUX modulenet_DATA = portals$(KMODEXT) -endif +endif # LINUX + +if DARWIN +macos_PROGRAMS := portals + +portals_SOURCES := api-errno.c api-ni.c api-wrap.c +portals_SOURCES += lib-init.c lib-me.c lib-msg.c lib-eq.c lib-md.c +portals_SOURCES += lib-move.c lib-ni.c lib-pid.c module.c + +portals_CFLAGS := $(EXTRA_KCFLAGS) +portals_LDFLAGS := $(EXTRA_KLDFLAGS) +portals_LDADD := $(EXTRA_KLIBS) + +plist_DATA := Info.plist + +install_data_hook := fix-kext-ownership + +endif # DARWIN + +endif # MODULES + +endif # CRAY_PORTALS + +install-data-hook: $(install_data_hook) + +EXTRA_DIST := Info.plist -MOSTLYCLEANFILES = *.o *.ko *.mod.c +MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ portals DIST_SOURCES = $(portals-objs:%.o=%.c)