X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lnet%2Fklnds%2Fsocklnd%2FautoMakefile.am;h=71a3633f4aa8b8dcc6ba48c469d8625f680708bf;hb=966306f9b9a569ef7cb88e99a2a579193f683296;hp=0923459562efa8b12391f02d333c33bc3938f582;hpb=3de901fceee79de12a31428bcc6ba3a00f10d1fe;p=fs%2Flustre-release.git diff --git a/lnet/klnds/socklnd/autoMakefile.am b/lnet/klnds/socklnd/autoMakefile.am index 0923459..71a3633 100644 --- a/lnet/klnds/socklnd/autoMakefile.am +++ b/lnet/klnds/socklnd/autoMakefile.am @@ -1,9 +1,32 @@ -# Copyright (C) 2001 Cluster File Systems, Inc. -# -# This code is issued under the GNU General Public License. -# See the file COPYING in this distribution +if MODULES +if LINUX +if !CRAY_PORTALS -modulenet_DATA = ksocknal$(KMODEXT) + modulenet_DATA := ksocknal$(KMODEXT) -MOSTLYCLEANFILES = *.o *.ko *.mod.c -DIST_SOURCES = $(ksocknal-objs:%.o=%.c) socknal.h +endif # !CRAY_PORTALS +endif # LINUX +endif # MODULES + +DIST_SOURCES := $(ksocknal-objs:%.o=%.c) socknal_lib-linux.h socknal.h + +if DARWIN + + macos_PROGRAMS := ksocknal + + nodist_ksocknal_SOURCES := socknal.c socknal_cb.c socknal_lib-darwin.c + DIST_SOURCES += socknal_lib-darwin.c socknal_lib-darwin.h + + ksocknal_CFLAGS := $(EXTRA_KCFLAGS) + ksocknal_LDFLAGS := $(EXTRA_KLDFLAGS) + ksocknal_LDADD := $(EXTRA_KLIBS) + + plist_DATA := Info.plist + install_data_hook := fix-kext-ownership + +endif # DARWIN + +EXTRA_DIST := $(plist_DATA) +install-data-hook: $(install_data_hook) + +MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ socknal_lib.c