# ignite-117 : rename all 'ggshem' on 'igniteshmem'
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/ae3ba8c9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/ae3ba8c9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/ae3ba8c9 Branch: refs/heads/sprint-1 Commit: ae3ba8c9da90f82d1461a7a5f1de6baec8803ef6 Parents: 50f31e6 Author: Artem SHutak <ashu...@gridgain.com> Authored: Wed Jan 28 19:34:06 2015 +0300 Committer: Artem SHutak <ashu...@gridgain.com> Committed: Wed Jan 28 19:34:06 2015 +0300 ---------------------------------------------------------------------- ipc/shmem/Makefile.am | 2 +- ipc/shmem/Makefile.in | 2 +- ipc/shmem/configure | 4 +- ipc/shmem/configure.ac | 2 +- ipc/shmem/ggshmem/Makefile.am | 23 - ipc/shmem/ggshmem/Makefile.in | 589 ------------- ...rnal_util_ipc_shmem_IpcSharedMemoryUtils.cpp | 882 ------------------- ipc/shmem/igniteshmem/Makefile.am | 23 + ipc/shmem/igniteshmem/Makefile.in | 589 +++++++++++++ ...rnal_util_ipc_shmem_IpcSharedMemoryUtils.cpp | 882 +++++++++++++++++++ ipc/shmem/readme.txt | 2 +- .../java/META-INF/native/linux64/libggshmem.so | Bin 138591 -> 138335 bytes .../shmem/GridIpcSharedMemoryNativeLoader.java | 4 +- .../util/ipc/shmem/IpcSharedMemoryUtils.java | 2 +- 14 files changed, 1503 insertions(+), 1503 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae3ba8c9/ipc/shmem/Makefile.am ---------------------------------------------------------------------- diff --git a/ipc/shmem/Makefile.am b/ipc/shmem/Makefile.am index dd2b285..30696a5 100644 --- a/ipc/shmem/Makefile.am +++ b/ipc/shmem/Makefile.am @@ -1 +1 @@ -SUBDIRS=ggshmem include +SUBDIRS=igniteshmem include http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae3ba8c9/ipc/shmem/Makefile.in ---------------------------------------------------------------------- diff --git a/ipc/shmem/Makefile.in b/ipc/shmem/Makefile.in index e37c55b..768fe76 100644 --- a/ipc/shmem/Makefile.in +++ b/ipc/shmem/Makefile.in @@ -251,7 +251,7 @@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -SUBDIRS = ggshmem include +SUBDIRS = igniteshmem include all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae3ba8c9/ipc/shmem/configure ---------------------------------------------------------------------- diff --git a/ipc/shmem/configure b/ipc/shmem/configure index af4e3c0..88fef08 100755 --- a/ipc/shmem/configure +++ b/ipc/shmem/configure @@ -15161,7 +15161,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -ac_config_files="$ac_config_files Makefile ggshmem/Makefile include/Makefile" +ac_config_files="$ac_config_files Makefile igniteshmem/Makefile include/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -16263,7 +16263,7 @@ do "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "ggshmem/Makefile") CONFIG_FILES="$CONFIG_FILES ggshmem/Makefile" ;; + "igniteshmem/Makefile") CONFIG_FILES="$CONFIG_FILES igniteshmem/Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae3ba8c9/ipc/shmem/configure.ac ---------------------------------------------------------------------- diff --git a/ipc/shmem/configure.ac b/ipc/shmem/configure.ac index 6774187..2c3b4a3 100644 --- a/ipc/shmem/configure.ac +++ b/ipc/shmem/configure.ac @@ -28,6 +28,6 @@ dnl Libtool is used for building share libraries AC_PROG_LIBTOOL AC_CONFIG_FILES(Makefile - ggshmem/Makefile + igniteshmem/Makefile include/Makefile) AC_OUTPUT http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae3ba8c9/ipc/shmem/ggshmem/Makefile.am ---------------------------------------------------------------------- diff --git a/ipc/shmem/ggshmem/Makefile.am b/ipc/shmem/ggshmem/Makefile.am deleted file mode 100644 index 91f4c27..0000000 --- a/ipc/shmem/ggshmem/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -# Include macros from m4 folder. -ACLOCAL_AMFLAGS = "-Im4" - -####################################### -# The list of libraries we are building seperated by spaces. -# The 'lib_' indicates that these build products will be installed -# in the $(libdir) directory. For example /usr/lib -lib_LTLIBRARIES = libggshmem.la - -####################################### -# Build information for each library - -# Sources for ggshmem -libggshmem_la_SOURCES = org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp - -# Linker options libTestProgram -libggshmem_la_LDFLAGS = - -# Compiler options. Here we are adding the include directory -# to be searched for headers included in the source code. -libggshmem_la_CPPFLAGS = -I$(top_srcdir)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -I$(JAVA_HOME)/include/darwin \ --I/System/Library/Frameworks/JavaVM.framework/Headers - http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae3ba8c9/ipc/shmem/ggshmem/Makefile.in ---------------------------------------------------------------------- diff --git a/ipc/shmem/ggshmem/Makefile.in b/ipc/shmem/ggshmem/Makefile.in deleted file mode 100644 index 1eb97d5..0000000 --- a/ipc/shmem/ggshmem/Makefile.in +++ /dev/null @@ -1,589 +0,0 @@ -# Makefile.in generated by automake 1.11.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software -# Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__make_dryrun = \ - { \ - am__dry=no; \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ - | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ - *) \ - for am__flg in $$MAKEFLAGS; do \ - case $$am__flg in \ - *=*|--*) ;; \ - *n*) am__dry=yes; break;; \ - esac; \ - done;; \ - esac; \ - test $$am__dry = yes; \ - } -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -target_triplet = @target@ -subdir = ggshmem -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(libdir)" -LTLIBRARIES = $(lib_LTLIBRARIES) -libggshmem_la_LIBADD = -am_libggshmem_la_OBJECTS = libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo -libggshmem_la_OBJECTS = $(am_libggshmem_la_OBJECTS) -libggshmem_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(libggshmem_la_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(libggshmem_la_SOURCES) -DIST_SOURCES = $(libggshmem_la_SOURCES) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target = @target@ -target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ - -# Include macros from m4 folder. -ACLOCAL_AMFLAGS = "-Im4" - -####################################### -# The list of libraries we are building seperated by spaces. -# The 'lib_' indicates that these build products will be installed -# in the $(libdir) directory. For example /usr/lib -lib_LTLIBRARIES = libggshmem.la - -####################################### -# Build information for each library - -# Sources for ggshmem -libggshmem_la_SOURCES = org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp - -# Linker options libTestProgram -libggshmem_la_LDFLAGS = - -# Compiler options. Here we are adding the include directory -# to be searched for headers included in the source code. -libggshmem_la_CPPFLAGS = -I$(top_srcdir)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -I$(JAVA_HOME)/include/darwin \ --I/System/Library/Frameworks/JavaVM.framework/Headers - -all: all-am - -.SUFFIXES: -.SUFFIXES: .cpp .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ggshmem/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu ggshmem/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ - } - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libggshmem.la: $(libggshmem_la_OBJECTS) $(libggshmem_la_DEPENDENCIES) $(EXTRA_libggshmem_la_DEPENDENCIES) - $(libggshmem_la_LINK) -rpath $(libdir) $(libggshmem_la_OBJECTS) $(libggshmem_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.Plo@am__quote@ - -.cpp.o: -@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cpp.obj: -@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cpp.lo: -@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo: org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp -@am__fastdepCXX_TRUE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libggshmem_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo -MD -MP -MF $(DEPDIR)/libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.Tpo -c -o libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo `test -f 'org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp' || echo '$(srcdir)/'`org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp -@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.Tpo $(DEPDIR)/libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.Plo -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp' object='libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libggshmem_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libggshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo `test -f 'org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp' || echo '$(srcdir)/'`org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(libdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-libLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am \ - install-libLTLIBRARIES install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-libLTLIBRARIES - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae3ba8c9/ipc/shmem/ggshmem/org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp ---------------------------------------------------------------------- diff --git a/ipc/shmem/ggshmem/org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp b/ipc/shmem/ggshmem/org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp deleted file mode 100644 index eaa13fd..0000000 --- a/ipc/shmem/ggshmem/org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp +++ /dev/null @@ -1,882 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.h" - -#include <cstdio> -#include <cstdlib> -#include <cstring> -#include <cerrno> -#include <sys/types.h> -#include <sys/ipc.h> -#include <sys/shm.h> -#include <sys/sem.h> -#include <sys/stat.h> -#include <string> -#include <iostream> -#include <time.h> -#include <sys/time.h> -#include <unistd.h> -#include <signal.h> - -using namespace std; - -/** IgniteCheckedException JNI class name. */ -const char* GRID_EXCEPTION = "org/apache/ignite/IgniteCheckedException"; - -/** GridIpcSharedMemoryOperationTimedoutException JNI class name. */ -const char* OP_TIMEDOUT_EXCEPTION = "org/apache/ignite/internal/util/ipc/shmem/GridIpcSharedMemoryOperationTimedoutException"; - -/** GridIpcOutOfSystemResourcesException JNI class name. */ -const char* OUT_OF_RSRCS_EXCEPTION = "org/apache/ignite/internal/util/ipc/shmem/GridIpcOutOfSystemResourcesException"; - -/** Global flag for enabling debug logging. */ -static bool __GG_DEBUG = false; - -/** Read semaphore ID. */ -#define SEM_READ 0 - -/** Write semaphore ID. */ -#define SEM_WRITE 1 - -/** - * Logging macro. - * - * @param m Logging message with optional formatting symbols. - * @param varagrs Formatting arguments. - */ -#define GG_LOG_DEBUG(m, ...) {\ - if(__GG_DEBUG)\ - log(__FILE__, __LINE__, __FUNCTION__, m, __VA_ARGS__);\ -} - -/** Buffer size for current time string. */ -#define TIME_NOW_BUF_SIZE 1024 - -/** Buffer size for debug message. */ -#define FORMAT_LOG_BUF_SIZE 4096 - -/** - * @return Current time string in format: year-month-day hour:minute:second. - */ -static string timeNow() { - timeval tv; - tm lt; - - char timebuf[TIME_NOW_BUF_SIZE]; - - gettimeofday(&tv, 0); - - time_t now = tv.tv_sec; - localtime_r(&now, <); - - // Clone the format used by log4j ISO8601DateFormat, - // specifically: "yyyy-MM-dd HH:mm:ss.SSS" - size_t len = strftime(timebuf, TIME_NOW_BUF_SIZE, "%Y-%m-%d %H:%M:%S", <); - - snprintf(timebuf + len, TIME_NOW_BUF_SIZE - len, ".%03d", (int) (tv.tv_usec / 1000)); - - return string(timebuf); -} - -/** - * Writes debug message to standard output, if global debug flag is enabled. - * - * @param file Source file, from which the message originates. - * @param line Source line, from which the message originates. - * @param funcName Name of the function, from which the message originates. - * @param format Message string with optional formatting symbols. - * @param varargs Formatting arguments. - */ -static void log(const char* file, int line, const char* funcName, const char* format, ...) { - static pid_t pid = getpid(); - - char msgbuf[FORMAT_LOG_BUF_SIZE]; - va_list va; - - va_start(va, format); - vsnprintf(msgbuf, FORMAT_LOG_BUF_SIZE - 1, format, va); - va_end(va); - - cout << timeNow() << " pid:" << pid << " " << file << ":" << funcName << ":" << line << ": " << msgbuf << endl; - - flush(cout); -} - -/** Lock operation on semaphore #0. */ -struct sembuf op_lock0[2] = { - 0, 0, 0, // Wait until semaphore #0 becomes 0. - 0, 1, 0 // Then increment semaphore #0 by 1. -}; - -/** Lock operation on semaphore #1. */ -struct sembuf op_lock1[2] = { - 1, 0, 0, // Wait until semaphore #1 becomes 0. - 1, 1, 0 // Then increment semaphore #1 by 1. -}; - -/** - * Data offset in shared memory buffer (the memory segment preceding data - * is used for IPC data). - */ -#define BUF_OFFSET 64 - -/** - * IPC data, that is used for inter-process communication. - */ -typedef struct { - /** Number of parties that have closed the connection (0, 1, or 2). */ - int closedCnt; - - /** Shared memory segment ID. */ - int shmId; - - /** Semaphore set ID. */ - int semId; - - /** Shared memory segment size. */ - int size; - - /** Closed flag. */ - volatile bool closed; - - /** Read position. */ - volatile unsigned int readCnt; - - /** Write position (should be always >= readCnt). */ - volatile unsigned int writeCnt; - - /** Flag, indicating that reader is waiting on semaphore. */ - volatile bool readBlocked; - - /** Flag, indicating that writer is waiting on semaphore. */ - volatile bool writeBlocked; -} T_IpcData; - -/** - * Calculates unread bytes count, given IPC data pointer. - * - * @param ipcData IPC data pointer. - * @param fetchWriteCnt True to fetch write count or read it normally. - * @param fetchReadCnt True to fetch read count or read it normally.. - * @return Unread bytes count. - */ -static unsigned int getUnreadCount(T_IpcData *ipcData, bool fetchWriteCnt, bool fetchReadCnt) { - unsigned int writeCnt = fetchWriteCnt ? __sync_fetch_and_add(&ipcData->writeCnt, 0) : ipcData->writeCnt; - unsigned int readCnt = fetchReadCnt ? __sync_fetch_and_add(&ipcData->readCnt, 0) : ipcData->readCnt; - - unsigned int unreadCnt = writeCnt - readCnt; - - if (unreadCnt < 0) { - GG_LOG_DEBUG("Unread count failed [writeCnt=%u, readCnt=%u]", writeCnt, readCnt); - - *((char *) 0) = 5; - } - - return unreadCnt; -} - -/** - * Throws exception in Java code. - * - * @param env JNI environment. - * @param clsName Exception class full name (slashed notation). - */ -static void throwException(JNIEnv* env, const char* clsName) { - // We assume that 512 bytes will be enough. - char msg[512]; - - ::sprintf(msg, "%s (error code: %d).", ::strerror(errno), errno); - - env->ThrowNew(env->FindClass(clsName), msg); -} - -/** - * Throws exception in Java code according to current - * errno value. - * - * @param env JNI environment. - */ -static void throwExceptionByErrno(JNIEnv* env) { - switch (errno) { - case ENOMEM: - case EMFILE: - case ENOSPC: - throwException(env, OUT_OF_RSRCS_EXCEPTION); - break; - - default: - throwException(env, GRID_EXCEPTION); - break; - } -} - -/** - * Initializes semaphore. - * - * @param env JNI environment. - * @param semId Semaphore set ID. - * @param semNum Semaphore number in semaphore set. - */ -static bool semInit(JNIEnv* env, int semId, int semNum) { - struct sembuf sb; - memset(&sb, 0, sizeof(sb)); - - // Initialize the semaphore. - sb.sem_op = 1; - sb.sem_num = semNum; - - if (::semop(semId, &sb, 1) == -1) { - GG_LOG_DEBUG("Semaphore init failed [semId=%d, semNum=%s, errno=%d]", semId, - semNum == SEM_READ ? "SEM_READ" : "SEM_WRITE", errno); - - throwException(env, GRID_EXCEPTION); - - return false; - } - - return true; -} - -/** - * Waits on semaphore until another process has signaled or the semaphore - * has been removed. - * - * @param env JNI environment. - * @param semId Semaphore set ID. - * @param semNum Semaphore number in semaphore set. - * @param timeout Timeout for wait operation, if supported on current platform. - * @param ipcData IPC data pointer. - * @see semNotify() - */ -static void semWait(JNIEnv * env, int semId, int semNum, int timeout, T_IpcData *ipcData) { - while (1) { - int ret; -#ifdef HAVE_SEMTIMEDOP - _STRUCT_TIMESPEC timeout0 = { - 0, timeout * 1000 - }; - ret = semtimedop(semId, semNum == 0 ? op_lock0 : op_lock1, 2, timeout > 0 ? &timeout0 : NULL); -#else - ret = semop(semId, semNum == 0 ? op_lock0 : op_lock1, 2); -#endif - if (ret == 0) - return; - - if (errno == EIDRM || errno == EINVAL) { // Semaphore was removed while waiting. - if (!ipcData->closed) { - GG_LOG_DEBUG("Semaphore removed, but the space is not closed [semId=%d]", semId); - - ipcData->closed = true; - } - - return; - } - - GG_LOG_DEBUG("Semaphore wait failed [semId=%d, semNum=%s, errno=%d]", semId, - semNum == SEM_READ ? "SEM_READ" : "SEM_WRITE", errno); - - if (errno == EINTR) { - // spin again - } - else if (errno == EAGAIN) { - throwException(env, OP_TIMEDOUT_EXCEPTION); - - return; - } - else { - throwException(env, GRID_EXCEPTION); - } - } -} - -/** - * Notifies the semaphore to signal other process waiting on this semaphore - * to resume execution. - * - * @param env JNI environment. - * @param semId Semaphore set ID. - * @param semNum Semaphore number in semaphore set. - * @param ipcData IPC data pointer. - * @see semWait() - */ -static void semNotify(JNIEnv * env, int semId, int semNum, T_IpcData *ipcData) { - if (::semctl(semId, semNum, SETVAL, 0) == -1) { - if (errno == EIDRM || errno == EINVAL) { - if (!ipcData->closed) { - GG_LOG_DEBUG("Semaphore removed, but the space is not closed [semId=%d]", semId); - - ipcData->closed = true; - } - - return; - } - - GG_LOG_DEBUG("Semaphore wait failed [semId=%d, semNum=%s, errno=%d]", semId, - semNum == SEM_READ ? "SEM_READ" : "SEM_WRITE", errno); - - throwException(env, GRID_EXCEPTION); - } -} - -/** - * Allocates shared memory segment and semaphores for inter-process communication (JNI method). - * - * @param env JNI environment. - * @param jTokFileName Token file name for allocating resources. - * @param size Shared memory segment size in bytes. - * @param debug Debug flag, which modifies the global debug flag. This parameter is expected - * to be always the same during application lifetime. - */ -jlong Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_allocateSystemResources( - JNIEnv * env, jclass, jstring jTokFileName, jint size, jboolean debug) { - int key = -1; - int shmId = -1; - int semId = -1; - jboolean isCopy = false; - - // Copy to STL string and release. - const char* tokFileName0 = env->GetStringUTFChars(jTokFileName, &isCopy); - - string tokFileName(tokFileName0); - - env->ReleaseStringUTFChars(jTokFileName, tokFileName0); - - // Set global debug flag. - __GG_DEBUG = debug; - - // Get system token, used in IPC. - if ((key = ::ftok(tokFileName.c_str(), 'G')) == -1) { - throwException(env, GRID_EXCEPTION); - - return 0; - } - - // Get shared memory descriptor (create shared memory segment if absent). - if ((shmId = ::shmget(key, size + BUF_OFFSET, 0666 | IPC_CREAT)) == -1) { - throwExceptionByErrno(env); - - return 0; - } - - void* data = ::shmat(shmId, (void *) 0, 0); - -#ifndef __APPLE__ - // Shared memory segment will be deleted upon last process detach. - ::shmctl(shmId, IPC_RMID, NULL); -#else - GG_LOG_DEBUG("Will not mark shared memory region for deletion (will be removed on close): %d", shmId); -#endif - - if ((ptrdiff_t) data == -1) { - // Exception will be thrown on return. - throwExceptionByErrno(env); - - return 0; - } - - T_IpcData *ipcData = (T_IpcData*) data; - - // Allocate semaphores for native synchronization. - if ((semId = ::semget(key, 2, 0666 | IPC_CREAT)) == -1) { - // Exception will be thrown on return. - throwExceptionByErrno(env); - - // Cleanup ignoring possible errors. - ::shmdt(ipcData); - - return 0; - } - - // Initialize SEM_READ and SEM_WRITE to 1. - if (!semInit(env, semId, SEM_READ) || !semInit(env, semId, SEM_WRITE)) { - // Exception will be thrown on return. - throwException(env, GRID_EXCEPTION); - - // Cleanup ignoring possible errors. - ::semctl(semId, 0, IPC_RMID); - ::shmdt(ipcData); - - return 0; - } - - // Initialize data structure. - memset(ipcData, 0, sizeof(*ipcData)); - ipcData->shmId = shmId; - ipcData->semId = semId; - ipcData->size = size; - - return (jlong) (((char*) data) + BUF_OFFSET); -} - -/** - * Attaches to an existing shared memory segment (JNI method). - * - * @param env JNI environment. - * @param shmId Shared memory segment ID. - * @param debug Debug flag, which modifies the global debug flag. This parameter is expected - * to be always the same during application lifetime. - */ -jlong Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_attach(JNIEnv * env, jclass, - jint shmId, jboolean debug) { - // Set global debug flag. - __GG_DEBUG = debug; - - void* data = ::shmat(shmId, (void *) 0, 0); - - GG_LOG_DEBUG("Attaching to shmId: %d", shmId); - - if ((ptrdiff_t) data == -1) { - // Exception will be thrown on return. - throwExceptionByErrno(env); - - return 0; - } - - T_IpcData *ipcData = (T_IpcData*) data; - - return (jlong) (((char*) data) + BUF_OFFSET); -} - -/** - * Shuts down inter-process communication (JNI method). - * - * @param env JNI environment. - * @param buf Data buffer pointer in shared memory segment. - */ -void Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_ipcClose(JNIEnv *env, jclass, jlong buf) { - T_IpcData *ipcData = (T_IpcData*) (((char *) buf) - BUF_OFFSET); - - // Set closed flag to true using memory barrier. - // This is to ensure the flag is set BEFORE we notify - // the semaphores (i.e. no reordering will happen). - __sync_fetch_and_add(&ipcData->closed, 1); - - // Remove semaphore. - if (::semctl(ipcData->semId, 0, IPC_RMID) == -1) { - if (__GG_DEBUG) - cerr << "Failed to remove semaphore: " << errno << ": " << strerror(errno) << endl << flush; - - if (errno == EPERM) { // Operation not permitted (no rights). - // Signal both reader and writer (because we don't know who we are). - // The other side will remove the semaphore. - semNotify(env, ipcData->semId, SEM_READ, ipcData); - semNotify(env, ipcData->semId, SEM_WRITE, ipcData); - } - } -} - -/** - * Detaches from shared memory segment and removes the token file. - * - * @param env JNI environment. - * @param jTokFileName Token file name for allocating resources. - * @param buf Data buffer pointer in shared memory segment. - * @param force Force flag for forcing resources removal. - * - */ -void Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_freeSystemResources__Ljava_lang_String_2JZ( - JNIEnv* env, jclass, jstring jTokFileName, jlong buf, jboolean force) { - T_IpcData *ipcData = (T_IpcData*) (((char *) buf) - BUF_OFFSET); - - if (__sync_bool_compare_and_swap(&ipcData->closedCnt, 0, 1) && !force) { - ::shmdt(ipcData); - - return; - } - -#ifdef __APPLE__ - int shmId = ipcData->shmId; -#endif - - // Detach from shared memory (shared memory segment will be deleted upon last detach). - if (::shmdt(ipcData) == -1) { - // If error occurred, then return. - return; - } - -#ifdef __APPLE__ - GG_LOG_DEBUG("Deleting shared memory region: %d", shmId); - - ::shmctl(shmId, IPC_RMID, NULL); -#endif - - jboolean isCopy = false; - - // Copy to STL string and release. - const char* tokFileName0 = env->GetStringUTFChars(jTokFileName, &isCopy); - - string tokFileName(tokFileName0); - - env->ReleaseStringUTFChars(jTokFileName, tokFileName0); - - ::remove(tokFileName.c_str()); -} - -/** - * Removes semaphores and shared memory segment. - * - * @param env JNI environment. - * @param jTokFileName Token file name for allocating resources. - * @param size Shared memory segment size in bytes. - */ -void Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_freeSystemResources__Ljava_lang_String_2I( - JNIEnv* env, jclass, jstring jTokFileName, jint size) { - int key = -1; - int shmId = -1; - int semId = -1; - jboolean isCopy = false; - - // Copy to STL string and release. - const char* tokFileName0 = env->GetStringUTFChars(jTokFileName, &isCopy); - - string tokFileName(tokFileName0); - - env->ReleaseStringUTFChars(jTokFileName, tokFileName0); - - // Get system token, used in IPC. - if ((key = ::ftok(tokFileName.c_str(), 'G')) == -1) { - return; - } - - // Get semaphores for native synchronization (no create). - if ((semId = ::semget(key, 2, 0666)) > 0) { - // Remove semaphores if present. - ::semctl((int) semId, 0, IPC_RMID); - } - - // Get shared memory descriptor (no create). - if ((shmId = ::shmget(key, size, 0666)) == -1) { - // This means that shared memory segment was not created or was removed. - // No point to continue, as semaphores do not exist as well. - return; - } - - // Remove shared memory segment (ignoring possible errors). - ::shmctl((int) shmId, IPC_RMID, NULL); -} - -/** - * Read-write operations for shared memory segments. - */ -class RW { -public: - /** - * Copies data from shared memory to the destination buffer. - * - * @param env JNI environment. - * @param dest Destination buffer. - * @param dOffset Destination buffer offset. - * @param len Number of bytes to copy. - * @param src Source pointer in shared memory segment. - */ - static void FromShMem(JNIEnv *env, jbyteArray dest, jlong dOffset, jlong len, void *src) { - env->SetByteArrayRegion(dest, dOffset, len, (jbyte*) src); - } - - /** - * Copies data from shared memory to the destination Java object. - * - * @param env JNI environment. - * @param dest Destination Java object. - * @param dOffset Destination object offset. - * @param len Number of bytes to copy. - * @param src Source pointer in shared memory segment. - */ - static void FromShMem(JNIEnv *env, jobject dest, jlong dOffset, jlong len, void *src) { - char *destAddr = ((char *) env->GetDirectBufferAddress(dest)) + dOffset; - memcpy((void*) destAddr, src, len); - } - - /** - * Copies data from buffer to shared memory. - * - * @param env JNI environment. - * @param src Source buffer. - * @param sOffset Source buffer offset. - * @param len Number of bytes to copy. - * @param dest Destination pointer. - */ - static void ToShMem(JNIEnv *env, jbyteArray src, jlong sOffset, jlong len, void *dest) { - env->GetByteArrayRegion(src, sOffset, len, (jbyte*) dest); - } - - /** - * Copies data from Java object to shared memory. - * - * @param env JNI environment. - * @param src Source Java object. - * @param sOffset Source Java object offset. - * @param len Number of bytes to copy. - * @param dest Destination pointer. - */ - static void ToShMem(JNIEnv *env, jobject src, jlong sOffset, jlong len, void *dest) { - char *srcAddr = ((char *) env->GetDirectBufferAddress(src)) + sOffset; - memcpy(dest, (void*) srcAddr, len); - } -}; - -/** - * Helper method for copying data from shared memory. - * - * @param env JNI environment. - * @param shMemPtr Data pointer in shared memory segment. - * @param dest Destination object to copy data to. - * @param dOffset Destination object write offset. - * @param len Number of bytes to copy. - * @param timeout Operation timeout in milliseconds. - * @param <T> Destination object type. - */ -template<class T> -jlong Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_ReadShMem(JNIEnv *env, jclass, jlong shMemPtr, - T dest, jlong dOffset, jlong len, jlong timeout) { - T_IpcData *ipcData = (T_IpcData*) (((char *) shMemPtr) - BUF_OFFSET); - - unsigned int unreadCnt = getUnreadCount(ipcData, true, false); - - while (unreadCnt == 0) { - if (unreadCnt == 0 && ipcData->closed) { - return -1; - } - - // signal the other party, if it's blocked - if (ipcData->writeBlocked) { - GG_LOG_DEBUG("Before write semaphore notification [semId=%d]", ipcData->semId); - - semNotify(env, ipcData->semId, SEM_WRITE, ipcData); - } - - GG_LOG_DEBUG("Before read semaphore wait [semId=%d]", ipcData->semId); - - ipcData->readBlocked = 1; - semWait(env, ipcData->semId, SEM_READ, timeout, ipcData); - ipcData->readBlocked = 0; - - unreadCnt = getUnreadCount(ipcData, true, false); - } - - int bytesRead = 0; - - while (unreadCnt > 0 && bytesRead < len) { - int pos = ipcData->readCnt % ipcData->size; - int len0 = (ipcData->size - pos < unreadCnt) ? ipcData->size - pos : unreadCnt; - - if (len0 > len - bytesRead) { - len0 = len - bytesRead; - } - - RW::FromShMem(env, dest, dOffset + bytesRead, len0, (void*) (shMemPtr + pos)); - - __sync_add_and_fetch(&ipcData->readCnt, len0); - - GG_LOG_DEBUG("Updated read count [readCnt=%d]", ipcData->readCnt); - - bytesRead += len0; - - GG_LOG_DEBUG("Before write semaphore notification [semId=%d]", ipcData->semId); - - semNotify(env, ipcData->semId, SEM_WRITE, ipcData); - - unreadCnt = getUnreadCount(ipcData, true, false); - } - - return bytesRead; -} - -/** - * Helper method for copying data to shared memory. - * - * @param env JNI environment. - * @param shMemPtr Data pointer in shared memory segment. - * @param src Source object to copy data from. - * @param dOffset Destination object read offset. - * @param len Number of bytes to copy. - * @param timeout Operation timeout in milliseconds. - * @param <T> Source object type. - */ -template<class T> -void Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_WriteShMem(JNIEnv *env, jclass, - jlong shMemPtr, T src, jlong sOffset, jlong len, jlong timeout) { - T_IpcData *ipcData = (T_IpcData*) (((char *) shMemPtr) - BUF_OFFSET); - - int bytesWritten = 0; - - while (bytesWritten < len) { - // Wait for reader. - unsigned int unreadCnt = getUnreadCount(ipcData, false, true); - int pos = ipcData->writeCnt % ipcData->size; - - while (unreadCnt == ipcData->size) { - if (ipcData->closed) { - env->ThrowNew(env->FindClass(GRID_EXCEPTION), "Shared memory segment has been closed."); - - return; - } - - // signal the other party, if it's blocked - if (ipcData->readBlocked) { - semNotify(env, ipcData->semId, SEM_READ, ipcData); - } - - ipcData->writeBlocked = 1; - semWait(env, ipcData->semId, SEM_WRITE, timeout, ipcData); - ipcData->writeBlocked = 0; - - unreadCnt = getUnreadCount(ipcData, false, true); - } - - int len0 = ipcData->size - ((pos > unreadCnt) ? pos : unreadCnt); - - if (len0 > len - bytesWritten) { - len0 = len - bytesWritten; - } - - if (ipcData->closed) { - env->ThrowNew(env->FindClass(GRID_EXCEPTION), "Shared memory segment has been closed"); - - return; - } - - RW::ToShMem(env, src, sOffset + bytesWritten, len0, (void*) (shMemPtr + pos)); - - __sync_add_and_fetch(&ipcData->writeCnt, len0); - - GG_LOG_DEBUG("Updated write count [readCnt=%d]", ipcData->readCnt); - - bytesWritten += len0; - - semNotify(env, ipcData->semId, SEM_READ, ipcData); - } -} - -/** - * Copies data from Java byte array to shared memory (JNI method). - * - * @param env JNI environment. - * @param clsName Java class name. - * @param shMemPtr Data pointer in shared memory segment. - * @param src Source Java byte array. - * @param dOffset Source Java byte array offset. - * @param len Number of bytes to copy. - * @param timeout Operation timeout in milliseconds. - */ -void Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_writeSharedMemory(JNIEnv *env, jclass clsName, - jlong shMemPtr, jbyteArray src, jlong sOffset, jlong len, jlong timeout) { - Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_WriteShMem<jbyteArray>(env, clsName, shMemPtr, - src, sOffset, len, timeout); -} - -/** - * Copies data from Java byte array to shared memory (JNI method). - * - * @param env JNI environment. - * @param clsName Java class name. - * @param shMemPtr Data pointer in shared memory segment. - * @param src Source Java object. - * @param dOffset Source Java object offset. - * @param len Number of bytes to copy. - * @param timeout Operation timeout in milliseconds. - */ -void Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_writeSharedMemoryByteBuffer(JNIEnv *env, - jclass clsName, jlong shMemPtr, jobject src, jlong sOffset, jlong len, jlong timeout) { - Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_WriteShMem<jobject>(env, clsName, shMemPtr, - src, sOffset, len, timeout); -} - -/** - * Copies data from shared memory to Java byte array (JNI method). - * - * @param env JNI environment. - * @param clsName Java class name. - * @param shMemPtr Data pointer in shared memory segment. - * @param dest Destination Java byte array. - * @param dOffset Destination Java byte array offset. - * @param size Number of bytes to copy. - * @param timeout Operation timeout in milliseconds. - */ -jlong Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_readSharedMemory(JNIEnv *env, jclass clsName, - jlong shMemPtr, jbyteArray dest, jlong dOffset, jlong size, jlong timeout) { - return Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_ReadShMem<jbyteArray>(env, clsName, shMemPtr, - dest, dOffset, size, timeout); -} - -/** - * Copies data from shared memory to Java object (JNI method). - * - * @param env JNI environment. - * @param clsName Java class name. - * @param shMemPtr Data pointer in shared memory segment. - * @param dest Destination Java object. - * @param dOffset Destination Java object offset. - * @param size Number of bytes to copy. - * @param timeout Operation timeout in milliseconds. - */ -jlong Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_readSharedMemoryByteBuffer(JNIEnv *env, - jclass clsName, jlong shMemPtr, jobject dest, jlong dOffset, jlong size, jlong timeout) { - return Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_ReadShMem<jobject>(env, clsName, shMemPtr, - dest, dOffset, size, timeout); -} - -/** - * Gets the number of unread bytes in shared memory segment (JNI method). - * - * @param shMemPtr Data pointer in shared memory segment. - * @return Number of uneread bytes. - */ -jint Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_unreadCount(JNIEnv*, jclass, jlong shMemPtr) { - T_IpcData *ipcData = (T_IpcData*) (((char *) shMemPtr) - BUF_OFFSET); - - return getUnreadCount(ipcData, true, true); -} - -/** - * Checks if the counterpart is alive (JNI method). - * - * @param pid Process ID of the counterpart. - * @return true if couterpart is alive, false otherwise. - */ -jboolean Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_alive(JNIEnv*, jclass, jint pid) { - int res = kill((int) pid, 0); - - // Return true if signal was sent or there is no permission to send signal to this process. - // If kill failed with error and errno is ESRCH or EINVAL, process is considered to be dead. - return res == 0 || errno == EPERM; -} - -/** - * Gets the shared memory segment ID for a given shared memory data pointer (JNI method). - * - * @param shMemPtr Shared memory data pointer. - * @return Shared memory ID. - */ -jint Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_sharedMemoryId(JNIEnv*, jclass, jlong shMemPtr) { - T_IpcData *ipcData = (T_IpcData*) (((char *) shMemPtr) - BUF_OFFSET); - - return ipcData->shmId; -} - -/** - * Gets the semaphore set ID for a given shared memory data pointer (JNI method). - * - * @param shMemPtr Shared memory data pointer. - * @return Semaphore set ID. - */ -jint Java_org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils_semaphoreId(JNIEnv*, jclass, jlong shMemPtr) { - T_IpcData *ipcData = (T_IpcData*) (((char *) shMemPtr) - BUF_OFFSET); - - return ipcData->semId; -} http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae3ba8c9/ipc/shmem/igniteshmem/Makefile.am ---------------------------------------------------------------------- diff --git a/ipc/shmem/igniteshmem/Makefile.am b/ipc/shmem/igniteshmem/Makefile.am new file mode 100644 index 0000000..d0cd067 --- /dev/null +++ b/ipc/shmem/igniteshmem/Makefile.am @@ -0,0 +1,23 @@ +# Include macros from m4 folder. +ACLOCAL_AMFLAGS = "-Im4" + +####################################### +# The list of libraries we are building seperated by spaces. +# The 'lib_' indicates that these build products will be installed +# in the $(libdir) directory. For example /usr/lib +lib_LTLIBRARIES = libigniteshmem.la + +####################################### +# Build information for each library + +# Sources for igniteshmem +libigniteshmem_la_SOURCES = org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp + +# Linker options libTestProgram +libigniteshmem_la_LDFLAGS = + +# Compiler options. Here we are adding the include directory +# to be searched for headers included in the source code. +libigniteshmem_la_CPPFLAGS = -I$(top_srcdir)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -I$(JAVA_HOME)/include/darwin \ +-I/System/Library/Frameworks/JavaVM.framework/Headers + http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae3ba8c9/ipc/shmem/igniteshmem/Makefile.in ---------------------------------------------------------------------- diff --git a/ipc/shmem/igniteshmem/Makefile.in b/ipc/shmem/igniteshmem/Makefile.in new file mode 100644 index 0000000..34782dc --- /dev/null +++ b/ipc/shmem/igniteshmem/Makefile.in @@ -0,0 +1,589 @@ +# Makefile.in generated by automake 1.11.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +am__make_dryrun = \ + { \ + am__dry=no; \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ + *) \ + for am__flg in $$MAKEFLAGS; do \ + case $$am__flg in \ + *=*|--*) ;; \ + *n*) am__dry=yes; break;; \ + esac; \ + done;; \ + esac; \ + test $$am__dry = yes; \ + } +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = igniteshmem +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(libdir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +libigniteshmem_la_LIBADD = +am_libigniteshmem_la_OBJECTS = libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo +libigniteshmem_la_OBJECTS = $(am_libigniteshmem_la_OBJECTS) +libigniteshmem_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(libigniteshmem_la_LDFLAGS) $(LDFLAGS) -o $@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(libigniteshmem_la_SOURCES) +DIST_SOURCES = $(libigniteshmem_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ + +# Include macros from m4 folder. +ACLOCAL_AMFLAGS = "-Im4" + +####################################### +# The list of libraries we are building seperated by spaces. +# The 'lib_' indicates that these build products will be installed +# in the $(libdir) directory. For example /usr/lib +lib_LTLIBRARIES = libigniteshmem.la + +####################################### +# Build information for each library + +# Sources for igniteshmem +libigniteshmem_la_SOURCES = org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp + +# Linker options libTestProgram +libigniteshmem_la_LDFLAGS = + +# Compiler options. Here we are adding the include directory +# to be searched for headers included in the source code. +libigniteshmem_la_CPPFLAGS = -I$(top_srcdir)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -I$(JAVA_HOME)/include/darwin \ +-I/System/Library/Frameworks/JavaVM.framework/Headers + +all: all-am + +.SUFFIXES: +.SUFFIXES: .cpp .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu igniteshmem/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu igniteshmem/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +libigniteshmem.la: $(libigniteshmem_la_OBJECTS) $(libigniteshmem_la_DEPENDENCIES) $(EXTRA_libigniteshmem_la_DEPENDENCIES) + $(libigniteshmem_la_LINK) -rpath $(libdir) $(libigniteshmem_la_OBJECTS) $(libigniteshmem_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.Plo@am__quote@ + +.cpp.o: +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: +@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< + +libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo: org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp +@am__fastdepCXX_TRUE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libigniteshmem_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo -MD -MP -MF $(DEPDIR)/libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.Tpo -c -o libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo `test -f 'org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp' || echo '$(srcdir)/'`org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp +@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.Tpo $(DEPDIR)/libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp' object='libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libigniteshmem_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libigniteshmem_la-org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.lo `test -f 'org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp' || echo '$(srcdir)/'`org_apache_ignite_internal_util_ipc_shmem_IpcSharedMemoryUtils.cpp + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(libdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-libLTLIBRARIES + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES clean-libtool ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am \ + install-libLTLIBRARIES install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-libLTLIBRARIES + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: