Commit ba15c150 by amir

add libcuckoo

parent 1df0ec52
Showing with 2883 additions and 0 deletions
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '$'
IndentCaseLabels: false
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...
set(CMAKE_C_COMPILER "/usr/bin/cc")
set(CMAKE_C_COMPILER_ARG1 "")
set(CMAKE_C_COMPILER_ID "GNU")
set(CMAKE_C_COMPILER_VERSION "4.9.4")
set(CMAKE_C_COMPILE_FEATURES "c_function_prototypes;c_restrict;c_variadic_macros;c_static_assert")
set(CMAKE_C90_COMPILE_FEATURES "c_function_prototypes")
set(CMAKE_C99_COMPILE_FEATURES "c_restrict;c_variadic_macros")
set(CMAKE_C11_COMPILE_FEATURES "c_static_assert")
set(CMAKE_C_PLATFORM_ID "Linux")
set(CMAKE_C_SIMULATE_ID "")
set(CMAKE_C_SIMULATE_VERSION "")
set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_COMPILER_IS_GNUCC 1)
set(CMAKE_C_COMPILER_LOADED 1)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_C_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW )
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_C_COMPILER_ENV_VAR "CC")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_C_COMPILER_ID_RUN 1)
set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
set(CMAKE_C_LINKER_PREFERENCE 10)
# Save compiler ABI information.
set(CMAKE_C_SIZEOF_DATA_PTR "8")
set(CMAKE_C_COMPILER_ABI "ELF")
set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
if(CMAKE_C_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_C_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
endif()
if(CMAKE_C_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
endif()
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "c")
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/4.9;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib")
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
set(CMAKE_CXX_COMPILER "/usr/bin/c++")
set(CMAKE_CXX_COMPILER_ARG1 "")
set(CMAKE_CXX_COMPILER_ID "GNU")
set(CMAKE_CXX_COMPILER_VERSION "4.9.4")
set(CMAKE_CXX_COMPILE_FEATURES "cxx_template_template_parameters;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_return_type_deduction")
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_template_template_parameters")
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_return_type_deduction")
set(CMAKE_CXX_PLATFORM_ID "Linux")
set(CMAKE_CXX_SIMULATE_ID "")
set(CMAKE_CXX_SIMULATE_VERSION "")
set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_COMPILER_IS_GNUCXX 1)
set(CMAKE_CXX_COMPILER_LOADED 1)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
set(CMAKE_CXX_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW )
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_CXX_COMPILER_ID_RUN 1)
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP)
set(CMAKE_CXX_LINKER_PREFERENCE 30)
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
# Save compiler ABI information.
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
set(CMAKE_CXX_COMPILER_ABI "ELF")
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
if(CMAKE_CXX_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_CXX_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
endif()
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
endif()
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;c")
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/4.9;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib")
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
set(CMAKE_HOST_SYSTEM "Linux-3.13.0-125-generic")
set(CMAKE_HOST_SYSTEM_NAME "Linux")
set(CMAKE_HOST_SYSTEM_VERSION "3.13.0-125-generic")
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_SYSTEM "Linux-3.13.0-125-generic")
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_VERSION "3.13.0-125-generic")
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)
No preview for this file type
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# Relative path conversion top directories.
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo")
# Force unix paths in dependencies.
set(CMAKE_FORCE_UNIX_PATHS 1)
# The C and CXX include file regular expressions for this directory.
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec2686293333/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2686293333.dir/build.make CMakeFiles/cmTryCompileExec2686293333.dir/build
make[1]: Entering directory `/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2686293333.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec2686293333.dir/CheckSymbolExists.c.o -c /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec2686293333
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2686293333.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTryCompileExec2686293333.dir/CheckSymbolExists.c.o -o cmTryCompileExec2686293333 -rdynamic
CMakeFiles/cmTryCompileExec2686293333.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2686293333] Error 1
make[1]: Leaving directory `/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2686293333/fast] Error 2
File /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# The generator used is:
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
# The top level Makefile was generated from the following files:
set(CMAKE_MAKEFILE_DEPENDS
"CMakeCache.txt"
"CMakeFiles/3.2.2/CMakeCCompiler.cmake"
"CMakeFiles/3.2.2/CMakeCXXCompiler.cmake"
"CMakeFiles/3.2.2/CMakeSystem.cmake"
"CMakeLists.txt"
"examples/CMakeLists.txt"
"libcuckoo-c/CMakeLists.txt"
"libcuckoo/CMakeLists.txt"
"tests/CMakeLists.txt"
"tests/Catch/CMakeLists.txt"
"tests/pcg/CMakeLists.txt"
"tests/stress-tests/CMakeLists.txt"
"tests/unit-tests/CMakeLists.txt"
"tests/universal-benchmark/CMakeLists.txt"
"/usr/share/cmake-3.2/Modules/CMakeCInformation.cmake"
"/usr/share/cmake-3.2/Modules/CMakeCXXInformation.cmake"
"/usr/share/cmake-3.2/Modules/CMakeCommonLanguageInclude.cmake"
"/usr/share/cmake-3.2/Modules/CMakeGenericSystem.cmake"
"/usr/share/cmake-3.2/Modules/CMakeParseArguments.cmake"
"/usr/share/cmake-3.2/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/share/cmake-3.2/Modules/CMakeSystemSpecificInitialize.cmake"
"/usr/share/cmake-3.2/Modules/CheckIncludeFiles.cmake"
"/usr/share/cmake-3.2/Modules/CheckLibraryExists.cmake"
"/usr/share/cmake-3.2/Modules/CheckSymbolExists.cmake"
"/usr/share/cmake-3.2/Modules/Compiler/GNU-C.cmake"
"/usr/share/cmake-3.2/Modules/Compiler/GNU-CXX.cmake"
"/usr/share/cmake-3.2/Modules/Compiler/GNU.cmake"
"/usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake"
"/usr/share/cmake-3.2/Modules/FindPackageMessage.cmake"
"/usr/share/cmake-3.2/Modules/FindThreads.cmake"
"/usr/share/cmake-3.2/Modules/Platform/Linux-GNU-C.cmake"
"/usr/share/cmake-3.2/Modules/Platform/Linux-GNU-CXX.cmake"
"/usr/share/cmake-3.2/Modules/Platform/Linux-GNU.cmake"
"/usr/share/cmake-3.2/Modules/Platform/Linux.cmake"
"/usr/share/cmake-3.2/Modules/Platform/UnixPaths.cmake"
)
# The corresponding makefile is:
set(CMAKE_MAKEFILE_OUTPUTS
"Makefile"
"CMakeFiles/cmake.check_cache"
)
# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
"CMakeFiles/CMakeDirectoryInformation.cmake"
"libcuckoo/CMakeFiles/CMakeDirectoryInformation.cmake"
"libcuckoo-c/CMakeFiles/CMakeDirectoryInformation.cmake"
"examples/CMakeFiles/CMakeDirectoryInformation.cmake"
"tests/CMakeFiles/CMakeDirectoryInformation.cmake"
"tests/pcg/CMakeFiles/CMakeDirectoryInformation.cmake"
"tests/Catch/CMakeFiles/CMakeDirectoryInformation.cmake"
"tests/unit-tests/CMakeFiles/CMakeDirectoryInformation.cmake"
"tests/stress-tests/CMakeFiles/CMakeDirectoryInformation.cmake"
"tests/universal-benchmark/CMakeFiles/CMakeDirectoryInformation.cmake"
)
# Dependency information for all targets:
set(CMAKE_DEPEND_INFO_FILES
"examples/CMakeFiles/c_hash.dir/DependInfo.cmake"
"examples/CMakeFiles/count_freq.dir/DependInfo.cmake"
"examples/CMakeFiles/nested_table.dir/DependInfo.cmake"
"examples/CMakeFiles/hellohash.dir/DependInfo.cmake"
"examples/CMakeFiles/int_str_table.dir/DependInfo.cmake"
"examples/CMakeFiles/blob_blob_table.dir/DependInfo.cmake"
"tests/unit-tests/CMakeFiles/int_int_table.dir/DependInfo.cmake"
"tests/unit-tests/CMakeFiles/unit_tests.dir/DependInfo.cmake"
"tests/stress-tests/CMakeFiles/stress_checked.dir/DependInfo.cmake"
"tests/stress-tests/CMakeFiles/stress_unchecked.dir/DependInfo.cmake"
"tests/universal-benchmark/CMakeFiles/universal_benchmark.dir/DependInfo.cmake"
)
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/tests/universal-benchmark/CMakeFiles/universal_benchmark.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/tests/stress-tests/CMakeFiles/stress_checked.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/c_hash.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/tests/stress-tests/CMakeFiles/stress_unchecked.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/count_freq.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/nested_table.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/hellohash.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/int_str_table.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/blob_blob_table.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/tests/unit-tests/CMakeFiles/int_int_table.dir
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/tests/unit-tests/CMakeFiles/unit_tests.dir
# This file is generated by cmake for dependency checking of the CMakeCache.txt file
No preview for this file type
const char features[] = {""
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404
"1"
#else
"0"
#endif
"c_function_prototypes\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
"1"
#else
"0"
#endif
"c_restrict\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L
"1"
#else
"0"
#endif
"c_static_assert\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
"1"
#else
"0"
#endif
"c_variadic_macros\n"
};
int main(int argc, char** argv) { (void)argv; return features[argc]; }
cmake_minimum_required(VERSION 3.1.0)
project(libcuckoo LANGUAGES C CXX)
set(libcuckoo_VERSION_MAJOR 0)
set(libcuckoo_VERSION_MINOR 2)
# Add the libcuckoo interface target
add_subdirectory(libcuckoo)
# Add C interface target
add_subdirectory(libcuckoo-c)
# Build examples
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
# Build tests -- this only builds tests that were specified
enable_testing()
add_subdirectory(tests)
# CMake generated Testfile for
# Source directory: /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# Build directory: /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
#
# This file includes the relevant testing commands required for
# testing this directory and lists subdirectories to be tested as well.
subdirs(libcuckoo)
subdirs(libcuckoo-c)
subdirs(examples)
subdirs(tests)
Copyright (C) 2013, Carnegie Mellon University and Intel Corporation
Licensed 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.
---------------------------
The third-party libraries have their own licenses, as detailed in their source
files.
libcuckoo
=========
libcuckoo provides a high-performance, compact hash table that allows
multiple concurrent reader and writer threads.
The Doxygen-generated documentation is available at the
[project page](http://efficient.github.io/libcuckoo/).
Authors: Manu Goyal, Bin Fan, Xiaozhou Li, David G. Andersen, and Michael Kaminsky
For details about this algorithm and citations, please refer to
our papers in [NSDI 2013][1] and [EuroSys 2014][2]. Some of the details of the hashing
algorithm have been improved since that work (e.g., the previous algorithm
in [1] serializes all writer threads, while our current
implementation supports multiple concurrent writers), however, and this source
code is now the definitive reference.
[1]: http://www.cs.cmu.edu/~dga/papers/memc3-nsdi2013.pdf "MemC3: Compact and Concurrent Memcache with Dumber Caching and Smarter Hashing"
[2]: http://www.cs.princeton.edu/~mfreed/docs/cuckoo-eurosys14.pdf "Algorithmic Improvements for Fast Concurrent Cuckoo Hashing"
Requirements
================
This library has been tested on Mac OSX >= 10.8 and Ubuntu >= 12.04.
It compiles with clang++ >= 3.3 and g++ >= 4.7, however we strongly suggest
using the latest versions of both compilers, as they have greatly improved
support for atomic operations. Building the library requires CMake version >=
3.1.0. To install it on Ubuntu
$ sudo apt-get update && sudo apt-get install cmake
Building
==========
We suggest you build out of source, in a separate `build` directory:
$ mkdir build
$ cd build
There are numerous flags you can pass to `CMake` to set which parts of the
repository it builds.
`-DCMAKE_INSTALL_PREFIX`
: set the location where the libcuckoo header files are installed
`-DCMAKE_BUILD_TYPE`
: enable different types of build flags for different purposes
`-DBUILD_EXAMPLES=1`
: tell `CMake` to build the `examples` directory
`-DBUILD_TESTS=1`
: build all tests in the `tests` directory
`-DBUILD_STRESS_TESTS=1`
: build all tests in the `tests/stress-tests` directory
`-DBUILD_UNIT_TESTS=1`
: build all tests in the `tests/unit-tests` directory
`-DBUILD_UNIVERSAL_BENCHMARK=1`
: build the universal benchmark in the `tests/universal-benchmark` directory.
This benchmark allows you to test a variety of operations in arbitrary
percentages, with specific keys and values. Consult the `README` in the
benchmark directory for more details.
So, if, for example, we want to build all examples and all tests into a local
installation directory, we'd run the following command from the `build`
directory.
$ cmake -DCMAKE_INSTALL_PREFIX=../install -DBUILD_EXAMPLES=1 -DBUILD_TESTS=1 ..
$ make all
$ make install
Usage
==========
When compiling your own files with `libcuckoo`, always remember to enable C++11
features on your compiler. On `g++`, this would be `-std=c++11`, and on
`clang++`, this would be `-std=c++11 -stdlib=libc++`.
Once you have installed the header files and the install location has been added
to your search path, you can include `<libcuckoo/cuckoohash_map.hh>`, and any of
the other headers you installed, into your source file.
There is also a C wrapper around the table that can be leveraged to use
`libcuckoo` in a C program. The interface consists of a template header and
implementation file that can be used to generate instances of the hashtable for
different key-value types.
See the `examples` directory for a demonstration of all of these features.
Tests
==========
The `tests` directory contains a number of tests and benchmarks of the hash
table, which also can serve as useful examples of how to use the table's various
features. Make sure to enable the tests you want to build with the corresponding
`CMake` flags. The test suite can be run with the `make test` command. The test
executables can be run individually as well.
Issue Report
============
To let us know your questions or issues, we recommend you
[report an issue](https://github.com/efficient/libcuckoo/issues) on
github. You can also email us at
[libcuckoo-dev@googlegroups.com](mailto:libcuckoo-dev@googlegroups.com).
Licence
===========
Copyright (C) 2013, Carnegie Mellon University and Intel Corporation
Licensed 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.
---------------------------
The third-party libraries have their own licenses, as detailed in their source
files.
# Install script for directory: /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/install")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
if(BUILD_TYPE)
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
else()
set(CMAKE_INSTALL_CONFIG_NAME "")
endif()
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
endif()
# Set the component getting installed.
if(NOT CMAKE_INSTALL_COMPONENT)
if(COMPONENT)
message(STATUS "Install component: \"${COMPONENT}\"")
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
else()
set(CMAKE_INSTALL_COMPONENT)
endif()
endif()
# Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
set(CMAKE_INSTALL_SO_NO_EXE "1")
endif()
if(NOT CMAKE_INSTALL_LOCAL_ONLY)
# Include the install script for each subdirectory.
include("/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/libcuckoo/cmake_install.cmake")
include("/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/libcuckoo-c/cmake_install.cmake")
include("/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/cmake_install.cmake")
include("/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/tests/cmake_install.cmake")
endif()
if(CMAKE_INSTALL_COMPONENT)
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
else()
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
endif()
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
"${CMAKE_INSTALL_MANIFEST_FILES}")
file(WRITE "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/${CMAKE_INSTALL_MANIFEST}"
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# Relative path conversion top directories.
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo")
# Force unix paths in dependencies.
set(CMAKE_FORCE_UNIX_PATHS 1)
# The C and CXX include file regular expressions for this directory.
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.cc
blob_blob_table.h
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.h
cstring
-
functional
-
libcuckoo-c/cuckoo_table_template.cc
-
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.h
libcuckoo-c/cuckoo_table_template.h
-
libcuckoo-c/cuckoo_table_template.cc
cerrno
-
cstdio
-
memory
-
utility
-
libcuckoo/cuckoohash_map.hh
-
libcuckoo-c/cuckoo_table_template.h
stdbool.h
-
stddef.h
-
stdio.h
-
libcuckoo/cuckoohash_config.hh
cstddef
-
limits
-
libcuckoo/cuckoohash_map.hh
algorithm
-
array
-
atomic
-
bitset
-
cassert
-
cstdint
-
cstdlib
-
functional
-
iostream
-
iterator
-
limits
-
list
-
memory
-
mutex
-
stdexcept
-
thread
-
type_traits
-
utility
-
vector
-
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
libcuckoo_bucket_container.hh
libcuckoo/libcuckoo_bucket_container.hh
libcuckoo/cuckoohash_util.hh
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
exception
-
thread
-
utility
-
vector
-
libcuckoo/libcuckoo_bucket_container.hh
array
-
atomic
-
cassert
-
cstddef
-
iostream
-
memory
-
type_traits
-
utility
-
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.cc" "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o"
)
set(CMAKE_CXX_COMPILER_ID "GNU")
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# The include file search paths:
set(CMAKE_C_TARGET_INCLUDE_PATH
"."
)
set(CMAKE_CXX_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_Fortran_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_ASM_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# Include any dependencies generated for this target.
include examples/CMakeFiles/blob_blob_table.dir/depend.make
# Include the progress variables for this target.
include examples/CMakeFiles/blob_blob_table.dir/progress.make
# Include the compile flags for this target's objects.
include examples/CMakeFiles/blob_blob_table.dir/flags.make
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: examples/CMakeFiles/blob_blob_table.dir/flags.make
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: examples/blob_blob_table.cc
$(CMAKE_COMMAND) -E cmake_progress_report /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles $(CMAKE_PROGRESS_1)
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building CXX object examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -o CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o -c /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.cc
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.i"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -E /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.cc > CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.i
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.s"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -S /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.cc -o CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.s
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o.requires:
.PHONY : examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o.requires
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o.provides: examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o.requires
$(MAKE) -f examples/CMakeFiles/blob_blob_table.dir/build.make examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o.provides.build
.PHONY : examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o.provides
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o.provides.build: examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o
# Object files for target blob_blob_table
blob_blob_table_OBJECTS = \
"CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o"
# External object files for target blob_blob_table
blob_blob_table_EXTERNAL_OBJECTS =
examples/libblob_blob_table.a: examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o
examples/libblob_blob_table.a: examples/CMakeFiles/blob_blob_table.dir/build.make
examples/libblob_blob_table.a: examples/CMakeFiles/blob_blob_table.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking CXX static library libblob_blob_table.a"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -P CMakeFiles/blob_blob_table.dir/cmake_clean_target.cmake
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/blob_blob_table.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
examples/CMakeFiles/blob_blob_table.dir/build: examples/libblob_blob_table.a
.PHONY : examples/CMakeFiles/blob_blob_table.dir/build
examples/CMakeFiles/blob_blob_table.dir/requires: examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o.requires
.PHONY : examples/CMakeFiles/blob_blob_table.dir/requires
examples/CMakeFiles/blob_blob_table.dir/clean:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -P CMakeFiles/blob_blob_table.dir/cmake_clean.cmake
.PHONY : examples/CMakeFiles/blob_blob_table.dir/clean
examples/CMakeFiles/blob_blob_table.dir/depend:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/blob_blob_table.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : examples/CMakeFiles/blob_blob_table.dir/depend
file(REMOVE_RECURSE
"CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o"
"libblob_blob_table.pdb"
"libblob_blob_table.a"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/blob_blob_table.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.cc
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.h
libcuckoo-c/cuckoo_table_template.cc
libcuckoo-c/cuckoo_table_template.h
libcuckoo/cuckoohash_config.hh
libcuckoo/cuckoohash_map.hh
libcuckoo/cuckoohash_util.hh
libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: examples/blob_blob_table.cc
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: examples/blob_blob_table.h
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: libcuckoo-c/cuckoo_table_template.cc
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: libcuckoo-c/cuckoo_table_template.h
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: libcuckoo/cuckoohash_config.hh
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: libcuckoo/cuckoohash_map.hh
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: libcuckoo/cuckoohash_util.hh
examples/CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o: libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# compile CXX with /usr/bin/c++
CXX_FLAGS = -I/home/amir/git/ipgallery/common/cpp/3party/libcuckoo -std=gnu++11 -pthread
CXX_DEFINES =
/usr/bin/ar cq libblob_blob_table.a CMakeFiles/blob_blob_table.dir/blob_blob_table.cc.o
/usr/bin/ranlib libblob_blob_table.a
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.h
libcuckoo-c/cuckoo_table_template.h
-
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/c_hash.c
stdio.h
-
stdlib.h
-
string.h
-
int_str_table.h
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.h
blob_blob_table.h
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.h
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.h
libcuckoo-c/cuckoo_table_template.h
-
libcuckoo-c/cuckoo_table_template.h
stdbool.h
-
stddef.h
-
stdio.h
-
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"C"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_C
"/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/c_hash.c" "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/c_hash.dir/c_hash.c.o"
)
set(CMAKE_C_COMPILER_ID "GNU")
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
"/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/int_str_table.dir/DependInfo.cmake"
"/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/blob_blob_table.dir/DependInfo.cmake"
)
# The include file search paths:
set(CMAKE_C_TARGET_INCLUDE_PATH
"."
)
set(CMAKE_CXX_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_Fortran_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_ASM_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# Include any dependencies generated for this target.
include examples/CMakeFiles/c_hash.dir/depend.make
# Include the progress variables for this target.
include examples/CMakeFiles/c_hash.dir/progress.make
# Include the compile flags for this target's objects.
include examples/CMakeFiles/c_hash.dir/flags.make
examples/CMakeFiles/c_hash.dir/c_hash.c.o: examples/CMakeFiles/c_hash.dir/flags.make
examples/CMakeFiles/c_hash.dir/c_hash.c.o: examples/c_hash.c
$(CMAKE_COMMAND) -E cmake_progress_report /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles $(CMAKE_PROGRESS_1)
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building C object examples/CMakeFiles/c_hash.dir/c_hash.c.o"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/cc $(C_DEFINES) $(C_FLAGS) -o CMakeFiles/c_hash.dir/c_hash.c.o -c /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/c_hash.c
examples/CMakeFiles/c_hash.dir/c_hash.c.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/c_hash.dir/c_hash.c.i"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/cc $(C_DEFINES) $(C_FLAGS) -E /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/c_hash.c > CMakeFiles/c_hash.dir/c_hash.c.i
examples/CMakeFiles/c_hash.dir/c_hash.c.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/c_hash.dir/c_hash.c.s"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/cc $(C_DEFINES) $(C_FLAGS) -S /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/c_hash.c -o CMakeFiles/c_hash.dir/c_hash.c.s
examples/CMakeFiles/c_hash.dir/c_hash.c.o.requires:
.PHONY : examples/CMakeFiles/c_hash.dir/c_hash.c.o.requires
examples/CMakeFiles/c_hash.dir/c_hash.c.o.provides: examples/CMakeFiles/c_hash.dir/c_hash.c.o.requires
$(MAKE) -f examples/CMakeFiles/c_hash.dir/build.make examples/CMakeFiles/c_hash.dir/c_hash.c.o.provides.build
.PHONY : examples/CMakeFiles/c_hash.dir/c_hash.c.o.provides
examples/CMakeFiles/c_hash.dir/c_hash.c.o.provides.build: examples/CMakeFiles/c_hash.dir/c_hash.c.o
# Object files for target c_hash
c_hash_OBJECTS = \
"CMakeFiles/c_hash.dir/c_hash.c.o"
# External object files for target c_hash
c_hash_EXTERNAL_OBJECTS =
examples/c_hash: examples/CMakeFiles/c_hash.dir/c_hash.c.o
examples/c_hash: examples/CMakeFiles/c_hash.dir/build.make
examples/c_hash: examples/libint_str_table.a
examples/c_hash: examples/libblob_blob_table.a
examples/c_hash: examples/CMakeFiles/c_hash.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking CXX executable c_hash"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/c_hash.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
examples/CMakeFiles/c_hash.dir/build: examples/c_hash
.PHONY : examples/CMakeFiles/c_hash.dir/build
examples/CMakeFiles/c_hash.dir/requires: examples/CMakeFiles/c_hash.dir/c_hash.c.o.requires
.PHONY : examples/CMakeFiles/c_hash.dir/requires
examples/CMakeFiles/c_hash.dir/clean:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -P CMakeFiles/c_hash.dir/cmake_clean.cmake
.PHONY : examples/CMakeFiles/c_hash.dir/clean
examples/CMakeFiles/c_hash.dir/depend:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/c_hash.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : examples/CMakeFiles/c_hash.dir/depend
file(REMOVE_RECURSE
"CMakeFiles/c_hash.dir/c_hash.c.o"
"c_hash.pdb"
"c_hash"
)
# Per-language clean rules from dependency scanning.
foreach(lang C)
include(CMakeFiles/c_hash.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/c_hash.dir/c_hash.c.o
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/blob_blob_table.h
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/c_hash.c
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.h
libcuckoo-c/cuckoo_table_template.h
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/c_hash.dir/c_hash.c.o: examples/blob_blob_table.h
examples/CMakeFiles/c_hash.dir/c_hash.c.o: examples/c_hash.c
examples/CMakeFiles/c_hash.dir/c_hash.c.o: examples/int_str_table.h
examples/CMakeFiles/c_hash.dir/c_hash.c.o: libcuckoo-c/cuckoo_table_template.h
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# compile C with /usr/bin/cc
C_FLAGS = -I/home/amir/git/ipgallery/common/cpp/3party/libcuckoo -std=gnu99
C_DEFINES =
/usr/bin/c++ CMakeFiles/c_hash.dir/c_hash.c.o -o c_hash -rdynamic libint_str_table.a libblob_blob_table.a -pthread
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/count_freq.cc
algorithm
-
chrono
-
cstdint
-
iostream
-
limits
-
random
-
thread
-
utility
-
vector
-
libcuckoo/cuckoohash_map.hh
-
libcuckoo/cuckoohash_config.hh
cstddef
-
limits
-
libcuckoo/cuckoohash_map.hh
algorithm
-
array
-
atomic
-
bitset
-
cassert
-
cstdint
-
cstdlib
-
functional
-
iostream
-
iterator
-
limits
-
list
-
memory
-
mutex
-
stdexcept
-
thread
-
type_traits
-
utility
-
vector
-
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
libcuckoo_bucket_container.hh
libcuckoo/libcuckoo_bucket_container.hh
libcuckoo/cuckoohash_util.hh
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
exception
-
thread
-
utility
-
vector
-
libcuckoo/libcuckoo_bucket_container.hh
array
-
atomic
-
cassert
-
cstddef
-
iostream
-
memory
-
type_traits
-
utility
-
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/count_freq.cc" "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/count_freq.dir/count_freq.cc.o"
)
set(CMAKE_CXX_COMPILER_ID "GNU")
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# The include file search paths:
set(CMAKE_C_TARGET_INCLUDE_PATH
"."
)
set(CMAKE_CXX_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_Fortran_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_ASM_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# Include any dependencies generated for this target.
include examples/CMakeFiles/count_freq.dir/depend.make
# Include the progress variables for this target.
include examples/CMakeFiles/count_freq.dir/progress.make
# Include the compile flags for this target's objects.
include examples/CMakeFiles/count_freq.dir/flags.make
examples/CMakeFiles/count_freq.dir/count_freq.cc.o: examples/CMakeFiles/count_freq.dir/flags.make
examples/CMakeFiles/count_freq.dir/count_freq.cc.o: examples/count_freq.cc
$(CMAKE_COMMAND) -E cmake_progress_report /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles $(CMAKE_PROGRESS_1)
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building CXX object examples/CMakeFiles/count_freq.dir/count_freq.cc.o"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -o CMakeFiles/count_freq.dir/count_freq.cc.o -c /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/count_freq.cc
examples/CMakeFiles/count_freq.dir/count_freq.cc.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/count_freq.dir/count_freq.cc.i"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -E /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/count_freq.cc > CMakeFiles/count_freq.dir/count_freq.cc.i
examples/CMakeFiles/count_freq.dir/count_freq.cc.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/count_freq.dir/count_freq.cc.s"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -S /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/count_freq.cc -o CMakeFiles/count_freq.dir/count_freq.cc.s
examples/CMakeFiles/count_freq.dir/count_freq.cc.o.requires:
.PHONY : examples/CMakeFiles/count_freq.dir/count_freq.cc.o.requires
examples/CMakeFiles/count_freq.dir/count_freq.cc.o.provides: examples/CMakeFiles/count_freq.dir/count_freq.cc.o.requires
$(MAKE) -f examples/CMakeFiles/count_freq.dir/build.make examples/CMakeFiles/count_freq.dir/count_freq.cc.o.provides.build
.PHONY : examples/CMakeFiles/count_freq.dir/count_freq.cc.o.provides
examples/CMakeFiles/count_freq.dir/count_freq.cc.o.provides.build: examples/CMakeFiles/count_freq.dir/count_freq.cc.o
# Object files for target count_freq
count_freq_OBJECTS = \
"CMakeFiles/count_freq.dir/count_freq.cc.o"
# External object files for target count_freq
count_freq_EXTERNAL_OBJECTS =
examples/count_freq: examples/CMakeFiles/count_freq.dir/count_freq.cc.o
examples/count_freq: examples/CMakeFiles/count_freq.dir/build.make
examples/count_freq: examples/CMakeFiles/count_freq.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking CXX executable count_freq"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/count_freq.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
examples/CMakeFiles/count_freq.dir/build: examples/count_freq
.PHONY : examples/CMakeFiles/count_freq.dir/build
examples/CMakeFiles/count_freq.dir/requires: examples/CMakeFiles/count_freq.dir/count_freq.cc.o.requires
.PHONY : examples/CMakeFiles/count_freq.dir/requires
examples/CMakeFiles/count_freq.dir/clean:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -P CMakeFiles/count_freq.dir/cmake_clean.cmake
.PHONY : examples/CMakeFiles/count_freq.dir/clean
examples/CMakeFiles/count_freq.dir/depend:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/count_freq.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : examples/CMakeFiles/count_freq.dir/depend
file(REMOVE_RECURSE
"CMakeFiles/count_freq.dir/count_freq.cc.o"
"count_freq.pdb"
"count_freq"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/count_freq.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/count_freq.dir/count_freq.cc.o
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/count_freq.cc
libcuckoo/cuckoohash_config.hh
libcuckoo/cuckoohash_map.hh
libcuckoo/cuckoohash_util.hh
libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/count_freq.dir/count_freq.cc.o: examples/count_freq.cc
examples/CMakeFiles/count_freq.dir/count_freq.cc.o: libcuckoo/cuckoohash_config.hh
examples/CMakeFiles/count_freq.dir/count_freq.cc.o: libcuckoo/cuckoohash_map.hh
examples/CMakeFiles/count_freq.dir/count_freq.cc.o: libcuckoo/cuckoohash_util.hh
examples/CMakeFiles/count_freq.dir/count_freq.cc.o: libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# compile CXX with /usr/bin/c++
CXX_FLAGS = -I/home/amir/git/ipgallery/common/cpp/3party/libcuckoo -std=gnu++11 -pthread
CXX_DEFINES =
/usr/bin/c++ CMakeFiles/count_freq.dir/count_freq.cc.o -o count_freq -rdynamic -pthread
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/hellohash.cc
iostream
-
string
-
libcuckoo/cuckoohash_map.hh
-
libcuckoo/cuckoohash_config.hh
cstddef
-
limits
-
libcuckoo/cuckoohash_map.hh
algorithm
-
array
-
atomic
-
bitset
-
cassert
-
cstdint
-
cstdlib
-
functional
-
iostream
-
iterator
-
limits
-
list
-
memory
-
mutex
-
stdexcept
-
thread
-
type_traits
-
utility
-
vector
-
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
libcuckoo_bucket_container.hh
libcuckoo/libcuckoo_bucket_container.hh
libcuckoo/cuckoohash_util.hh
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
exception
-
thread
-
utility
-
vector
-
libcuckoo/libcuckoo_bucket_container.hh
array
-
atomic
-
cassert
-
cstddef
-
iostream
-
memory
-
type_traits
-
utility
-
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/hellohash.cc" "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/hellohash.dir/hellohash.cc.o"
)
set(CMAKE_CXX_COMPILER_ID "GNU")
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# The include file search paths:
set(CMAKE_C_TARGET_INCLUDE_PATH
"."
)
set(CMAKE_CXX_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_Fortran_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_ASM_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# Include any dependencies generated for this target.
include examples/CMakeFiles/hellohash.dir/depend.make
# Include the progress variables for this target.
include examples/CMakeFiles/hellohash.dir/progress.make
# Include the compile flags for this target's objects.
include examples/CMakeFiles/hellohash.dir/flags.make
examples/CMakeFiles/hellohash.dir/hellohash.cc.o: examples/CMakeFiles/hellohash.dir/flags.make
examples/CMakeFiles/hellohash.dir/hellohash.cc.o: examples/hellohash.cc
$(CMAKE_COMMAND) -E cmake_progress_report /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles $(CMAKE_PROGRESS_1)
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building CXX object examples/CMakeFiles/hellohash.dir/hellohash.cc.o"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -o CMakeFiles/hellohash.dir/hellohash.cc.o -c /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/hellohash.cc
examples/CMakeFiles/hellohash.dir/hellohash.cc.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/hellohash.dir/hellohash.cc.i"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -E /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/hellohash.cc > CMakeFiles/hellohash.dir/hellohash.cc.i
examples/CMakeFiles/hellohash.dir/hellohash.cc.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/hellohash.dir/hellohash.cc.s"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -S /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/hellohash.cc -o CMakeFiles/hellohash.dir/hellohash.cc.s
examples/CMakeFiles/hellohash.dir/hellohash.cc.o.requires:
.PHONY : examples/CMakeFiles/hellohash.dir/hellohash.cc.o.requires
examples/CMakeFiles/hellohash.dir/hellohash.cc.o.provides: examples/CMakeFiles/hellohash.dir/hellohash.cc.o.requires
$(MAKE) -f examples/CMakeFiles/hellohash.dir/build.make examples/CMakeFiles/hellohash.dir/hellohash.cc.o.provides.build
.PHONY : examples/CMakeFiles/hellohash.dir/hellohash.cc.o.provides
examples/CMakeFiles/hellohash.dir/hellohash.cc.o.provides.build: examples/CMakeFiles/hellohash.dir/hellohash.cc.o
# Object files for target hellohash
hellohash_OBJECTS = \
"CMakeFiles/hellohash.dir/hellohash.cc.o"
# External object files for target hellohash
hellohash_EXTERNAL_OBJECTS =
examples/hellohash: examples/CMakeFiles/hellohash.dir/hellohash.cc.o
examples/hellohash: examples/CMakeFiles/hellohash.dir/build.make
examples/hellohash: examples/CMakeFiles/hellohash.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking CXX executable hellohash"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/hellohash.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
examples/CMakeFiles/hellohash.dir/build: examples/hellohash
.PHONY : examples/CMakeFiles/hellohash.dir/build
examples/CMakeFiles/hellohash.dir/requires: examples/CMakeFiles/hellohash.dir/hellohash.cc.o.requires
.PHONY : examples/CMakeFiles/hellohash.dir/requires
examples/CMakeFiles/hellohash.dir/clean:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -P CMakeFiles/hellohash.dir/cmake_clean.cmake
.PHONY : examples/CMakeFiles/hellohash.dir/clean
examples/CMakeFiles/hellohash.dir/depend:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/hellohash.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : examples/CMakeFiles/hellohash.dir/depend
file(REMOVE_RECURSE
"CMakeFiles/hellohash.dir/hellohash.cc.o"
"hellohash.pdb"
"hellohash"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/hellohash.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/hellohash.dir/hellohash.cc.o
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/hellohash.cc
libcuckoo/cuckoohash_config.hh
libcuckoo/cuckoohash_map.hh
libcuckoo/cuckoohash_util.hh
libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/hellohash.dir/hellohash.cc.o: examples/hellohash.cc
examples/CMakeFiles/hellohash.dir/hellohash.cc.o: libcuckoo/cuckoohash_config.hh
examples/CMakeFiles/hellohash.dir/hellohash.cc.o: libcuckoo/cuckoohash_map.hh
examples/CMakeFiles/hellohash.dir/hellohash.cc.o: libcuckoo/cuckoohash_util.hh
examples/CMakeFiles/hellohash.dir/hellohash.cc.o: libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# compile CXX with /usr/bin/c++
CXX_FLAGS = -I/home/amir/git/ipgallery/common/cpp/3party/libcuckoo -std=gnu++11 -pthread
CXX_DEFINES =
/usr/bin/c++ CMakeFiles/hellohash.dir/hellohash.cc.o -o hellohash -rdynamic -pthread
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.cc
int_str_table.h
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.h
libcuckoo-c/cuckoo_table_template.cc
-
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.h
libcuckoo-c/cuckoo_table_template.h
-
libcuckoo-c/cuckoo_table_template.cc
cerrno
-
cstdio
-
memory
-
utility
-
libcuckoo/cuckoohash_map.hh
-
libcuckoo-c/cuckoo_table_template.h
stdbool.h
-
stddef.h
-
stdio.h
-
libcuckoo/cuckoohash_config.hh
cstddef
-
limits
-
libcuckoo/cuckoohash_map.hh
algorithm
-
array
-
atomic
-
bitset
-
cassert
-
cstdint
-
cstdlib
-
functional
-
iostream
-
iterator
-
limits
-
list
-
memory
-
mutex
-
stdexcept
-
thread
-
type_traits
-
utility
-
vector
-
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
libcuckoo_bucket_container.hh
libcuckoo/libcuckoo_bucket_container.hh
libcuckoo/cuckoohash_util.hh
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
exception
-
thread
-
utility
-
vector
-
libcuckoo/libcuckoo_bucket_container.hh
array
-
atomic
-
cassert
-
cstddef
-
iostream
-
memory
-
type_traits
-
utility
-
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.cc" "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o"
)
set(CMAKE_CXX_COMPILER_ID "GNU")
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# The include file search paths:
set(CMAKE_C_TARGET_INCLUDE_PATH
"."
)
set(CMAKE_CXX_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_Fortran_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_ASM_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# Include any dependencies generated for this target.
include examples/CMakeFiles/int_str_table.dir/depend.make
# Include the progress variables for this target.
include examples/CMakeFiles/int_str_table.dir/progress.make
# Include the compile flags for this target's objects.
include examples/CMakeFiles/int_str_table.dir/flags.make
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: examples/CMakeFiles/int_str_table.dir/flags.make
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: examples/int_str_table.cc
$(CMAKE_COMMAND) -E cmake_progress_report /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles $(CMAKE_PROGRESS_1)
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building CXX object examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -o CMakeFiles/int_str_table.dir/int_str_table.cc.o -c /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.cc
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/int_str_table.dir/int_str_table.cc.i"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -E /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.cc > CMakeFiles/int_str_table.dir/int_str_table.cc.i
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/int_str_table.dir/int_str_table.cc.s"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -S /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.cc -o CMakeFiles/int_str_table.dir/int_str_table.cc.s
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o.requires:
.PHONY : examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o.requires
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o.provides: examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o.requires
$(MAKE) -f examples/CMakeFiles/int_str_table.dir/build.make examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o.provides.build
.PHONY : examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o.provides
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o.provides.build: examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o
# Object files for target int_str_table
int_str_table_OBJECTS = \
"CMakeFiles/int_str_table.dir/int_str_table.cc.o"
# External object files for target int_str_table
int_str_table_EXTERNAL_OBJECTS =
examples/libint_str_table.a: examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o
examples/libint_str_table.a: examples/CMakeFiles/int_str_table.dir/build.make
examples/libint_str_table.a: examples/CMakeFiles/int_str_table.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking CXX static library libint_str_table.a"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -P CMakeFiles/int_str_table.dir/cmake_clean_target.cmake
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/int_str_table.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
examples/CMakeFiles/int_str_table.dir/build: examples/libint_str_table.a
.PHONY : examples/CMakeFiles/int_str_table.dir/build
examples/CMakeFiles/int_str_table.dir/requires: examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o.requires
.PHONY : examples/CMakeFiles/int_str_table.dir/requires
examples/CMakeFiles/int_str_table.dir/clean:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -P CMakeFiles/int_str_table.dir/cmake_clean.cmake
.PHONY : examples/CMakeFiles/int_str_table.dir/clean
examples/CMakeFiles/int_str_table.dir/depend:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/int_str_table.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : examples/CMakeFiles/int_str_table.dir/depend
file(REMOVE_RECURSE
"CMakeFiles/int_str_table.dir/int_str_table.cc.o"
"libint_str_table.pdb"
"libint_str_table.a"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/int_str_table.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.cc
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/int_str_table.h
libcuckoo-c/cuckoo_table_template.cc
libcuckoo-c/cuckoo_table_template.h
libcuckoo/cuckoohash_config.hh
libcuckoo/cuckoohash_map.hh
libcuckoo/cuckoohash_util.hh
libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: examples/int_str_table.cc
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: examples/int_str_table.h
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: libcuckoo-c/cuckoo_table_template.cc
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: libcuckoo-c/cuckoo_table_template.h
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: libcuckoo/cuckoohash_config.hh
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: libcuckoo/cuckoohash_map.hh
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: libcuckoo/cuckoohash_util.hh
examples/CMakeFiles/int_str_table.dir/int_str_table.cc.o: libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# compile CXX with /usr/bin/c++
CXX_FLAGS = -I/home/amir/git/ipgallery/common/cpp/3party/libcuckoo -std=gnu++11 -pthread
CXX_DEFINES =
/usr/bin/ar cq libint_str_table.a CMakeFiles/int_str_table.dir/int_str_table.cc.o
/usr/bin/ranlib libint_str_table.a
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/nested_table.cc
iostream
-
memory
-
string
-
utility
-
libcuckoo/cuckoohash_map.hh
-
libcuckoo/cuckoohash_config.hh
cstddef
-
limits
-
libcuckoo/cuckoohash_map.hh
algorithm
-
array
-
atomic
-
bitset
-
cassert
-
cstdint
-
cstdlib
-
functional
-
iostream
-
iterator
-
limits
-
list
-
memory
-
mutex
-
stdexcept
-
thread
-
type_traits
-
utility
-
vector
-
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
libcuckoo_bucket_container.hh
libcuckoo/libcuckoo_bucket_container.hh
libcuckoo/cuckoohash_util.hh
cuckoohash_config.hh
libcuckoo/cuckoohash_config.hh
exception
-
thread
-
utility
-
vector
-
libcuckoo/libcuckoo_bucket_container.hh
array
-
atomic
-
cassert
-
cstddef
-
iostream
-
memory
-
type_traits
-
utility
-
cuckoohash_util.hh
libcuckoo/cuckoohash_util.hh
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/nested_table.cc" "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/nested_table.dir/nested_table.cc.o"
)
set(CMAKE_CXX_COMPILER_ID "GNU")
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# The include file search paths:
set(CMAKE_C_TARGET_INCLUDE_PATH
"."
)
set(CMAKE_CXX_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_Fortran_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
set(CMAKE_ASM_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/amir/git/ipgallery/common/cpp/3party/libcuckoo
# Include any dependencies generated for this target.
include examples/CMakeFiles/nested_table.dir/depend.make
# Include the progress variables for this target.
include examples/CMakeFiles/nested_table.dir/progress.make
# Include the compile flags for this target's objects.
include examples/CMakeFiles/nested_table.dir/flags.make
examples/CMakeFiles/nested_table.dir/nested_table.cc.o: examples/CMakeFiles/nested_table.dir/flags.make
examples/CMakeFiles/nested_table.dir/nested_table.cc.o: examples/nested_table.cc
$(CMAKE_COMMAND) -E cmake_progress_report /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/CMakeFiles $(CMAKE_PROGRESS_1)
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building CXX object examples/CMakeFiles/nested_table.dir/nested_table.cc.o"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -o CMakeFiles/nested_table.dir/nested_table.cc.o -c /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/nested_table.cc
examples/CMakeFiles/nested_table.dir/nested_table.cc.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/nested_table.dir/nested_table.cc.i"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -E /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/nested_table.cc > CMakeFiles/nested_table.dir/nested_table.cc.i
examples/CMakeFiles/nested_table.dir/nested_table.cc.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/nested_table.dir/nested_table.cc.s"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -S /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/nested_table.cc -o CMakeFiles/nested_table.dir/nested_table.cc.s
examples/CMakeFiles/nested_table.dir/nested_table.cc.o.requires:
.PHONY : examples/CMakeFiles/nested_table.dir/nested_table.cc.o.requires
examples/CMakeFiles/nested_table.dir/nested_table.cc.o.provides: examples/CMakeFiles/nested_table.dir/nested_table.cc.o.requires
$(MAKE) -f examples/CMakeFiles/nested_table.dir/build.make examples/CMakeFiles/nested_table.dir/nested_table.cc.o.provides.build
.PHONY : examples/CMakeFiles/nested_table.dir/nested_table.cc.o.provides
examples/CMakeFiles/nested_table.dir/nested_table.cc.o.provides.build: examples/CMakeFiles/nested_table.dir/nested_table.cc.o
# Object files for target nested_table
nested_table_OBJECTS = \
"CMakeFiles/nested_table.dir/nested_table.cc.o"
# External object files for target nested_table
nested_table_EXTERNAL_OBJECTS =
examples/nested_table: examples/CMakeFiles/nested_table.dir/nested_table.cc.o
examples/nested_table: examples/CMakeFiles/nested_table.dir/build.make
examples/nested_table: examples/CMakeFiles/nested_table.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking CXX executable nested_table"
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/nested_table.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
examples/CMakeFiles/nested_table.dir/build: examples/nested_table
.PHONY : examples/CMakeFiles/nested_table.dir/build
examples/CMakeFiles/nested_table.dir/requires: examples/CMakeFiles/nested_table.dir/nested_table.cc.o.requires
.PHONY : examples/CMakeFiles/nested_table.dir/requires
examples/CMakeFiles/nested_table.dir/clean:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples && $(CMAKE_COMMAND) -P CMakeFiles/nested_table.dir/cmake_clean.cmake
.PHONY : examples/CMakeFiles/nested_table.dir/clean
examples/CMakeFiles/nested_table.dir/depend:
cd /home/amir/git/ipgallery/common/cpp/3party/libcuckoo && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/CMakeFiles/nested_table.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : examples/CMakeFiles/nested_table.dir/depend
file(REMOVE_RECURSE
"CMakeFiles/nested_table.dir/nested_table.cc.o"
"nested_table.pdb"
"nested_table"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/nested_table.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/nested_table.dir/nested_table.cc.o
/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples/nested_table.cc
libcuckoo/cuckoohash_config.hh
libcuckoo/cuckoohash_map.hh
libcuckoo/cuckoohash_util.hh
libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
examples/CMakeFiles/nested_table.dir/nested_table.cc.o: examples/nested_table.cc
examples/CMakeFiles/nested_table.dir/nested_table.cc.o: libcuckoo/cuckoohash_config.hh
examples/CMakeFiles/nested_table.dir/nested_table.cc.o: libcuckoo/cuckoohash_map.hh
examples/CMakeFiles/nested_table.dir/nested_table.cc.o: libcuckoo/cuckoohash_util.hh
examples/CMakeFiles/nested_table.dir/nested_table.cc.o: libcuckoo/libcuckoo_bucket_container.hh
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.2
# compile CXX with /usr/bin/c++
CXX_FLAGS = -I/home/amir/git/ipgallery/common/cpp/3party/libcuckoo -std=gnu++11 -pthread
CXX_DEFINES =
/usr/bin/c++ CMakeFiles/nested_table.dir/nested_table.cc.o -o nested_table -rdynamic -pthread
add_executable(nested_table nested_table.cc)
target_link_libraries(nested_table libcuckoo)
add_executable(hellohash hellohash.cc)
target_link_libraries(hellohash libcuckoo)
add_executable(count_freq count_freq.cc)
target_link_libraries(count_freq libcuckoo)
add_library(int_str_table STATIC int_str_table.h int_str_table.cc)
target_link_libraries(int_str_table
PUBLIC libcuckoo-c-intf
PRIVATE libcuckoo-c-impl
)
add_library(blob_blob_table STATIC blob_blob_table.h blob_blob_table.cc)
target_link_libraries(blob_blob_table
PUBLIC libcuckoo-c-intf
PRIVATE libcuckoo-c-impl
)
add_executable(c_hash c_hash.c)
target_link_libraries(c_hash
PRIVATE int_str_table
PRIVATE blob_blob_table
)
set_property(TARGET c_hash PROPERTY C_STANDARD 99)
// This table was created to illustrate usage of the table with untyped blobs.
// See `int_str_table.cc` for more comments regarding the semantics of creating
// implementation files for use with C programs.
extern "C" {
#include "blob_blob_table.h"
}
// The hashtable uses the generic std::hash template wrapper as the hash
// function and std::equal_to as the equality function for key hashing and
// comparison. Since neither of these templates are specialized for our custom
// key_blob type, we must create our own specializations.
#include <cstring>
#include <functional>
namespace std {
template <> struct hash<key_blob> {
size_t operator()(const key_blob &kb) const { return *(size_t *)kb.blob; }
};
template <> struct equal_to<key_blob> {
bool operator()(const key_blob &lhs, const key_blob &rhs) const {
return memcmp(lhs.blob, rhs.blob, sizeof(lhs.blob)) == 0;
}
};
}
#include <libcuckoo-c/cuckoo_table_template.cc>
// This table was created to illustrate usage of the table with untyped blobs.
// See `int_str_table.h` for more comments regarding the semantics of creating
// header files for use with C programs.
#ifndef BLOB_BLOB_TABLE_H
#define BLOB_BLOB_TABLE_H
// In C, assignment is not defined for raw arrays, but it is defined for all
// structs, including those containing arrays. Thus, since the hashtable
// requires that assignment is defined for key and mapped types, we wrap the
// blobs in a struct.
typedef struct { char blob[8]; } key_blob;
typedef struct { char blob[255]; } mapped_blob;
#define CUCKOO_TABLE_NAME blob_blob_table
#define CUCKOO_KEY_TYPE key_blob
#define CUCKOO_MAPPED_TYPE mapped_blob
#include <libcuckoo-c/cuckoo_table_template.h>
#endif // BLOB_BLOB_TABLE_H
No preview for this file type
// This is a C program which uses some basic features of the C wrapper around
// libcuckoo. The C wrapper includes nearly all the features of the C++
// version, and most of the C functions have direct equivalents to C++ methods.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Includes the interface for the int->string table
#include "int_str_table.h"
// Includes the interface for the key_blob->mapped_blob table. Since both
// interface files define the same three macros, we must first undefine them
// before including the next interface. This undefining will have no effect on
// the names generated by the interface templates.
#undef CUCKOO_TABLE_NAME
#undef CUCKOO_KEY_TYPE
#undef CUCKOO_MAPPED_TYPE
#include "blob_blob_table.h"
int main() {
// Allocate a new int->str table, which must be freed at the end of the
// program
int_str_table *tbl = int_str_table_init(0);
// Since the insert function only accepts a pointer to the key and mapped
// values, we must make sure they exist as lvalues
const char *insert_item = "hello";
for (int i = 0; i < 10; i++) {
int_str_table_insert(tbl, &i, &insert_item);
}
// This loop will search for keys 1-10 (of which 10 will not be found), and
// print out what it finds
printf("int -> str table:\n");
for (int i = 0; i < 11; i++) {
// We need to store the found value in some variable
const char *find_item;
// The find function will return true if the key was found, and false
// otherwise
if (int_str_table_find(tbl, &i, &find_item)) {
printf("%d %s\n", i, find_item);
} else {
printf("%d NOT FOUND\n", i);
}
}
// Allocate a new blob->blob table, which must be freed at the end of the
// program
blob_blob_table *tbl2 = blob_blob_table_init(0);
// The table functions as a fully-functional single-threaded hashtable in
// locked_table mode, so we lock the table now in order to showcase some of
// that functionality.
blob_blob_table_locked_table *ltbl = blob_blob_table_lock_table(tbl2);
key_blob k;
mapped_blob v;
for (int i = 0; i < 10; ++i) {
// The key we store is a binary representation of the integer
memcpy(k.blob, &i, sizeof(i));
// The mapped value we store is the integer converted to ascii characters
int num = i;
int j = 0;
if (num == 0) {
v.blob[j++] = '0';
} else {
while (num > 0) {
v.blob[j++] = (num % 10) + '0';
num /= 10;
}
}
v.blob[j] = '\0';
// To insert into a locked_table, we pass the table, address of key and
// value, and, optionally, an iterator, which will be set to the location
// of the inserted key-value pair. We pass NULL here, indicating we don't
// have an iterator to set to the insert location.
blob_blob_table_locked_table_insert(ltbl, &k, &v, NULL);
}
// We must allocate iterator objects for the beginning and end of the table
// to iterate through it. Since we are not modifying the elements of the
// table, we use const_iterators, though regular iterators would also work
// here.
blob_blob_table_const_iterator *it =
blob_blob_table_locked_table_cbegin(ltbl);
blob_blob_table_const_iterator *end = blob_blob_table_locked_table_cend(ltbl);
// This loop walks through the table and prints out each key-value pair.
// Since `it` is already set to the beginning, there is no need for an
// initialization statement. The condition tests whether `it` equals `end`,
// which, when it does, will mean we've moved past the end of the table. The
// step statement advances `it` forward to the next key-value pair.
printf("blob -> blob table:\n");
for (; !blob_blob_table_const_iterator_equal(it, end);
blob_blob_table_const_iterator_increment(it)) {
// Here we dereference the key and mapped values from the iterator and
// store them into our previously-declared key_blob and mapped_blob
// variables.
k = *blob_blob_table_const_iterator_key(it);
v = *blob_blob_table_const_iterator_mapped(it);
printf("%d -> %s\n", *(int *)k.blob, v.blob);
}
// We must free all the allocated objects, which are the iterators, locked
// table, and two table objects.
blob_blob_table_const_iterator_free(end);
blob_blob_table_const_iterator_free(it);
blob_blob_table_locked_table_free(ltbl);
blob_blob_table_free(tbl2);
int_str_table_free(tbl);
}
# Install script for directory: /home/amir/git/ipgallery/common/cpp/3party/libcuckoo/examples
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/home/amir/git/ipgallery/common/cpp/3party/libcuckoo/install")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
if(BUILD_TYPE)
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
else()
set(CMAKE_INSTALL_CONFIG_NAME "")
endif()
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
endif()
# Set the component getting installed.
if(NOT CMAKE_INSTALL_COMPONENT)
if(COMPONENT)
message(STATUS "Install component: \"${COMPONENT}\"")
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
else()
set(CMAKE_INSTALL_COMPONENT)
endif()
endif()
# Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
set(CMAKE_INSTALL_SO_NO_EXE "1")
endif()
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment