Added sunrise suport

This commit is contained in:
IMback
2017-08-14 21:07:08 +02:00
parent d0ca835df2
commit b4d1844b68
65 changed files with 6409 additions and 24 deletions

329
CMakeCache.txt Normal file
View File

@ -0,0 +1,329 @@
# This is the CMakeCache file.
# For build in directory: /home/philipp/Programming/RGBcontroller
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//Path to a program.
AR_AVRDUDE:FILEPATH=/usr/bin/avrdude
//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar
//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=
//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON
//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release builds for minimum
// size.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during release builds with debug info.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
//C compiler
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release builds for minimum
// size.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds.
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during release builds with debug info.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local
//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld
//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm
//Path to a program.
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=rgbcontroller
//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO
//Flags used by the linker during the creation of static libraries.
CMAKE_STATIC_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//Additional Compiler Flags
COMPILE_FLAGS:STRING=
//Speed of the CPU
CPU_SPEED:STRING=16000000
//Processor Type
MCU:STRING=atmega328p
//USB Port
PORT:STRING=/dev/ttyUSB0
//Serial Port Speed
PORT_SPEED:STRING=57600
//Programmer Type
PROGRAMMER:STRING=stk500v1
//Value Computed by CMake
rgbcontroller_BINARY_DIR:STATIC=/home/philipp/Programming/RGBcontroller
//Value Computed by CMake
rgbcontroller_SOURCE_DIR:STATIC=/home/philipp/Programming/RGBcontroller
########################
# INTERNAL cache entries
########################
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/home/philipp/Programming/RGBcontroller
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=2
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/usr/bin/ccmake
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/home/philipp/Programming/RGBcontroller
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=0
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.8
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1

View File

@ -0,0 +1,68 @@
set(CMAKE_C_COMPILER "/usr/bin/cc")
set(CMAKE_C_COMPILER_ARG1 "")
set(CMAKE_C_COMPILER_ID "GNU")
set(CMAKE_C_COMPILER_VERSION "6.3.1")
set(CMAKE_C_COMPILER_WRAPPER "")
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11")
set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert")
set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
set(CMAKE_C11_COMPILE_FEATURES "c_std_11;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 "")
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 "")
endif()
set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "c")
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1;/usr/lib;/lib")
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")

View File

@ -0,0 +1,70 @@
set(CMAKE_CXX_COMPILER "/usr/bin/c++")
set(CMAKE_CXX_COMPILER_ARG1 "")
set(CMAKE_CXX_COMPILER_ID "GNU")
set(CMAKE_CXX_COMPILER_VERSION "6.3.1")
set(CMAKE_CXX_COMPILER_WRAPPER "")
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14")
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;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_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17")
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;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_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
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 "")
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 "")
endif()
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;c")
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1;/usr/lib;/lib")
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,15 @@
set(CMAKE_HOST_SYSTEM "Linux-4.10.13-1-ARCH")
set(CMAKE_HOST_SYSTEM_NAME "Linux")
set(CMAKE_HOST_SYSTEM_VERSION "4.10.13-1-ARCH")
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_SYSTEM "Linux-4.10.13-1-ARCH")
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_VERSION "4.10.13-1-ARCH")
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)

View File

@ -0,0 +1,567 @@
#ifdef __cplusplus
# error "A C++ compiler has been selected for C."
#endif
#if defined(__18CXX)
# define ID_VOID_MAIN
#endif
#if defined(__CLASSIC_C__)
/* cv-qualifiers did not exist in K&R C */
# define const
# define volatile
#endif
/* Version number components: V=Version, R=Revision, P=Patch
Version date components: YYYY=Year, MM=Month, DD=Day */
#if defined(__INTEL_COMPILER) || defined(__ICC)
# define COMPILER_ID "Intel"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
/* __INTEL_COMPILER = VRP */
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
# if defined(__INTEL_COMPILER_UPDATE)
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
# else
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
# endif
# if defined(__INTEL_COMPILER_BUILD_DATE)
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
# endif
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
#elif defined(__PATHCC__)
# define COMPILER_ID "PathScale"
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
# if defined(__PATHCC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
# endif
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
# define COMPILER_ID "Embarcadero"
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
#elif defined(__BORLANDC__)
# define COMPILER_ID "Borland"
/* __BORLANDC__ = 0xVRR */
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
# define COMPILER_ID "Watcom"
/* __WATCOMC__ = VVRR */
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__WATCOMC__)
# define COMPILER_ID "OpenWatcom"
/* __WATCOMC__ = VVRP + 1100 */
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__SUNPRO_C)
# define COMPILER_ID "SunPro"
# if __SUNPRO_C >= 0x5100
/* __SUNPRO_C = 0xVRRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
# else
/* __SUNPRO_CC = 0xVRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
# endif
#elif defined(__HP_cc)
# define COMPILER_ID "HP"
/* __HP_cc = VVRRPP */
# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
#elif defined(__DECC)
# define COMPILER_ID "Compaq"
/* __DECC_VER = VVRRTPPPP */
# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
#elif defined(__IBMC__) && defined(__COMPILER_VER__)
# define COMPILER_ID "zOS"
/* __IBMC__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
# define COMPILER_ID "XL"
/* __IBMC__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
# define COMPILER_ID "VisualAge"
/* __IBMC__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
#elif defined(__PGI)
# define COMPILER_ID "PGI"
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
# if defined(__PGIC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
# endif
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
#elif defined(__TI_COMPILER_VERSION__)
# define COMPILER_ID "TI"
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
# define COMPILER_ID "Fujitsu"
#elif defined(__TINYC__)
# define COMPILER_ID "TinyCC"
#elif defined(__BCC__)
# define COMPILER_ID "Bruce"
#elif defined(__SCO_VERSION__)
# define COMPILER_ID "SCO"
#elif defined(__clang__) && defined(__apple_build_version__)
# define COMPILER_ID "AppleClang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
#elif defined(__clang__)
# define COMPILER_ID "Clang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
#elif defined(__GNUC__)
# define COMPILER_ID "GNU"
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
# if defined(__GNUC_MINOR__)
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
# endif
# if defined(__GNUC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
# endif
#elif defined(_MSC_VER)
# define COMPILER_ID "MSVC"
/* _MSC_VER = VVRR */
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
# if defined(_MSC_FULL_VER)
# if _MSC_VER >= 1400
/* _MSC_FULL_VER = VVRRPPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
# else
/* _MSC_FULL_VER = VVRRPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
# endif
# endif
# if defined(_MSC_BUILD)
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
# endif
#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
# define COMPILER_ID "ADSP"
#if defined(__VISUALDSPVERSION__)
/* __VISUALDSPVERSION__ = 0xVVRRPP00 */
# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
#endif
#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
# define COMPILER_ID "IAR"
#elif defined(__ARMCC_VERSION)
# define COMPILER_ID "ARMCC"
#if __ARMCC_VERSION >= 1000000
/* __ARMCC_VERSION = VRRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#else
/* __ARMCC_VERSION = VRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#endif
#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)
# define COMPILER_ID "SDCC"
# if defined(__SDCC_VERSION_MAJOR)
# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR)
# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR)
# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH)
# else
/* SDCC = VRP */
# define COMPILER_VERSION_MAJOR DEC(SDCC/100)
# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
# define COMPILER_VERSION_PATCH DEC(SDCC % 10)
# endif
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro"
# if defined(_SGI_COMPILER_VERSION)
/* _SGI_COMPILER_VERSION = VRP */
# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
# else
/* _COMPILER_VERSION = VRP */
# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
# endif
/* These compilers are either not known or too old to define an
identification macro. Try to identify the platform and guess that
it is the native compiler. */
#elif defined(__sgi)
# define COMPILER_ID "MIPSpro"
#elif defined(__hpux) || defined(__hpua)
# define COMPILER_ID "HP"
#else /* unknown compiler */
# define COMPILER_ID ""
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
#ifdef SIMULATE_ID
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
#endif
#ifdef __QNXNTO__
char const* qnxnto = "INFO" ":" "qnxnto[]";
#endif
#if defined(__CRAYXE) || defined(__CRAYXC)
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
#endif
#define STRINGIFY_HELPER(X) #X
#define STRINGIFY(X) STRINGIFY_HELPER(X)
/* Identify known platforms by name. */
#if defined(__linux) || defined(__linux__) || defined(linux)
# define PLATFORM_ID "Linux"
#elif defined(__CYGWIN__)
# define PLATFORM_ID "Cygwin"
#elif defined(__MINGW32__)
# define PLATFORM_ID "MinGW"
#elif defined(__APPLE__)
# define PLATFORM_ID "Darwin"
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
# define PLATFORM_ID "Windows"
#elif defined(__FreeBSD__) || defined(__FreeBSD)
# define PLATFORM_ID "FreeBSD"
#elif defined(__NetBSD__) || defined(__NetBSD)
# define PLATFORM_ID "NetBSD"
#elif defined(__OpenBSD__) || defined(__OPENBSD)
# define PLATFORM_ID "OpenBSD"
#elif defined(__sun) || defined(sun)
# define PLATFORM_ID "SunOS"
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
# define PLATFORM_ID "AIX"
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
# define PLATFORM_ID "IRIX"
#elif defined(__hpux) || defined(__hpux__)
# define PLATFORM_ID "HP-UX"
#elif defined(__HAIKU__)
# define PLATFORM_ID "Haiku"
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
# define PLATFORM_ID "BeOS"
#elif defined(__QNX__) || defined(__QNXNTO__)
# define PLATFORM_ID "QNX"
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
# define PLATFORM_ID "Tru64"
#elif defined(__riscos) || defined(__riscos__)
# define PLATFORM_ID "RISCos"
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
# define PLATFORM_ID "SINIX"
#elif defined(__UNIX_SV__)
# define PLATFORM_ID "UNIX_SV"
#elif defined(__bsdos__)
# define PLATFORM_ID "BSDOS"
#elif defined(_MPRAS) || defined(MPRAS)
# define PLATFORM_ID "MP-RAS"
#elif defined(__osf) || defined(__osf__)
# define PLATFORM_ID "OSF1"
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
# define PLATFORM_ID "SCO_SV"
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
# define PLATFORM_ID "ULTRIX"
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
# define PLATFORM_ID "Xenix"
#elif defined(__WATCOMC__)
# if defined(__LINUX__)
# define PLATFORM_ID "Linux"
# elif defined(__DOS__)
# define PLATFORM_ID "DOS"
# elif defined(__OS2__)
# define PLATFORM_ID "OS2"
# elif defined(__WINDOWS__)
# define PLATFORM_ID "Windows3x"
# else /* unknown platform */
# define PLATFORM_ID
# endif
#else /* unknown platform */
# define PLATFORM_ID
#endif
/* For windows compilers MSVC and Intel we can determine
the architecture of the compiler being used. This is because
the compilers do not have flags that can change the architecture,
but rather depend on which compiler is being used
*/
#if defined(_WIN32) && defined(_MSC_VER)
# if defined(_M_IA64)
# define ARCHITECTURE_ID "IA64"
# elif defined(_M_X64) || defined(_M_AMD64)
# define ARCHITECTURE_ID "x64"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# elif defined(_M_ARM)
# if _M_ARM == 4
# define ARCHITECTURE_ID "ARMV4I"
# elif _M_ARM == 5
# define ARCHITECTURE_ID "ARMV5I"
# else
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
# endif
# elif defined(_M_MIPS)
# define ARCHITECTURE_ID "MIPS"
# elif defined(_M_SH)
# define ARCHITECTURE_ID "SHx"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__WATCOMC__)
# if defined(_M_I86)
# define ARCHITECTURE_ID "I86"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#else
# define ARCHITECTURE_ID
#endif
/* Convert integer to decimal digit literals. */
#define DEC(n) \
('0' + (((n) / 10000000)%10)), \
('0' + (((n) / 1000000)%10)), \
('0' + (((n) / 100000)%10)), \
('0' + (((n) / 10000)%10)), \
('0' + (((n) / 1000)%10)), \
('0' + (((n) / 100)%10)), \
('0' + (((n) / 10)%10)), \
('0' + ((n) % 10))
/* Convert integer to hex digit literals. */
#define HEX(n) \
('0' + ((n)>>28 & 0xF)), \
('0' + ((n)>>24 & 0xF)), \
('0' + ((n)>>20 & 0xF)), \
('0' + ((n)>>16 & 0xF)), \
('0' + ((n)>>12 & 0xF)), \
('0' + ((n)>>8 & 0xF)), \
('0' + ((n)>>4 & 0xF)), \
('0' + ((n) & 0xF))
/* Construct a string literal encoding the version number components. */
#ifdef COMPILER_VERSION_MAJOR
char const info_version[] = {
'I', 'N', 'F', 'O', ':',
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
COMPILER_VERSION_MAJOR,
# ifdef COMPILER_VERSION_MINOR
'.', COMPILER_VERSION_MINOR,
# ifdef COMPILER_VERSION_PATCH
'.', COMPILER_VERSION_PATCH,
# ifdef COMPILER_VERSION_TWEAK
'.', COMPILER_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct a string literal encoding the version number components. */
#ifdef SIMULATE_VERSION_MAJOR
char const info_simulate_version[] = {
'I', 'N', 'F', 'O', ':',
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
SIMULATE_VERSION_MAJOR,
# ifdef SIMULATE_VERSION_MINOR
'.', SIMULATE_VERSION_MINOR,
# ifdef SIMULATE_VERSION_PATCH
'.', SIMULATE_VERSION_PATCH,
# ifdef SIMULATE_VERSION_TWEAK
'.', SIMULATE_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
#if !defined(__STDC__)
# if defined(_MSC_VER) && !defined(__clang__)
# define C_DIALECT "90"
# else
# define C_DIALECT
# endif
#elif __STDC_VERSION__ >= 201000L
# define C_DIALECT "11"
#elif __STDC_VERSION__ >= 199901L
# define C_DIALECT "99"
#else
# define C_DIALECT "90"
#endif
const char* info_language_dialect_default =
"INFO" ":" "dialect_default[" C_DIALECT "]";
/*--------------------------------------------------------------------------*/
#ifdef ID_VOID_MAIN
void main() {}
#else
# if defined(__CLASSIC_C__)
int main(argc, argv) int argc; char *argv[];
# else
int main(int argc, char* argv[])
# endif
{
int require = 0;
require += info_compiler[argc];
require += info_platform[argc];
require += info_arch[argc];
#ifdef COMPILER_VERSION_MAJOR
require += info_version[argc];
#endif
#ifdef SIMULATE_ID
require += info_simulate[argc];
#endif
#ifdef SIMULATE_VERSION_MAJOR
require += info_simulate_version[argc];
#endif
#if defined(__CRAYXE) || defined(__CRAYXC)
require += info_cray[argc];
#endif
require += info_language_dialect_default[argc];
(void)argv;
return require;
}
#endif

Binary file not shown.

View File

@ -0,0 +1,539 @@
/* This source file must have a .cpp extension so that all C++ compilers
recognize the extension without flags. Borland does not know .cxx for
example. */
#ifndef __cplusplus
# error "A C compiler has been selected for C++."
#endif
/* Version number components: V=Version, R=Revision, P=Patch
Version date components: YYYY=Year, MM=Month, DD=Day */
#if defined(__COMO__)
# define COMPILER_ID "Comeau"
/* __COMO_VERSION__ = VRR */
# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
#elif defined(__INTEL_COMPILER) || defined(__ICC)
# define COMPILER_ID "Intel"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
/* __INTEL_COMPILER = VRP */
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
# if defined(__INTEL_COMPILER_UPDATE)
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
# else
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
# endif
# if defined(__INTEL_COMPILER_BUILD_DATE)
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
# endif
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
#elif defined(__PATHCC__)
# define COMPILER_ID "PathScale"
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
# if defined(__PATHCC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
# endif
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
# define COMPILER_ID "Embarcadero"
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
#elif defined(__BORLANDC__)
# define COMPILER_ID "Borland"
/* __BORLANDC__ = 0xVRR */
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
# define COMPILER_ID "Watcom"
/* __WATCOMC__ = VVRR */
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__WATCOMC__)
# define COMPILER_ID "OpenWatcom"
/* __WATCOMC__ = VVRP + 1100 */
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__SUNPRO_CC)
# define COMPILER_ID "SunPro"
# if __SUNPRO_CC >= 0x5100
/* __SUNPRO_CC = 0xVRRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
# else
/* __SUNPRO_CC = 0xVRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
# endif
#elif defined(__HP_aCC)
# define COMPILER_ID "HP"
/* __HP_aCC = VVRRPP */
# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
#elif defined(__DECCXX)
# define COMPILER_ID "Compaq"
/* __DECCXX_VER = VVRRTPPPP */
# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
# define COMPILER_ID "zOS"
/* __IBMCPP__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
# define COMPILER_ID "XL"
/* __IBMCPP__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
# define COMPILER_ID "VisualAge"
/* __IBMCPP__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
#elif defined(__PGI)
# define COMPILER_ID "PGI"
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
# if defined(__PGIC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
# endif
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
#elif defined(__TI_COMPILER_VERSION__)
# define COMPILER_ID "TI"
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
# define COMPILER_ID "Fujitsu"
#elif defined(__SCO_VERSION__)
# define COMPILER_ID "SCO"
#elif defined(__clang__) && defined(__apple_build_version__)
# define COMPILER_ID "AppleClang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
#elif defined(__clang__)
# define COMPILER_ID "Clang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
#elif defined(__GNUC__) || defined(__GNUG__)
# define COMPILER_ID "GNU"
# if defined(__GNUC__)
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
# else
# define COMPILER_VERSION_MAJOR DEC(__GNUG__)
# endif
# if defined(__GNUC_MINOR__)
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
# endif
# if defined(__GNUC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
# endif
#elif defined(_MSC_VER)
# define COMPILER_ID "MSVC"
/* _MSC_VER = VVRR */
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
# if defined(_MSC_FULL_VER)
# if _MSC_VER >= 1400
/* _MSC_FULL_VER = VVRRPPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
# else
/* _MSC_FULL_VER = VVRRPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
# endif
# endif
# if defined(_MSC_BUILD)
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
# endif
#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
# define COMPILER_ID "ADSP"
#if defined(__VISUALDSPVERSION__)
/* __VISUALDSPVERSION__ = 0xVVRRPP00 */
# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
#endif
#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
# define COMPILER_ID "IAR"
#elif defined(__ARMCC_VERSION)
# define COMPILER_ID "ARMCC"
#if __ARMCC_VERSION >= 1000000
/* __ARMCC_VERSION = VRRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#else
/* __ARMCC_VERSION = VRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#endif
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro"
# if defined(_SGI_COMPILER_VERSION)
/* _SGI_COMPILER_VERSION = VRP */
# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
# else
/* _COMPILER_VERSION = VRP */
# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
# endif
/* These compilers are either not known or too old to define an
identification macro. Try to identify the platform and guess that
it is the native compiler. */
#elif defined(__sgi)
# define COMPILER_ID "MIPSpro"
#elif defined(__hpux) || defined(__hpua)
# define COMPILER_ID "HP"
#else /* unknown compiler */
# define COMPILER_ID ""
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
#ifdef SIMULATE_ID
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
#endif
#ifdef __QNXNTO__
char const* qnxnto = "INFO" ":" "qnxnto[]";
#endif
#if defined(__CRAYXE) || defined(__CRAYXC)
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
#endif
#define STRINGIFY_HELPER(X) #X
#define STRINGIFY(X) STRINGIFY_HELPER(X)
/* Identify known platforms by name. */
#if defined(__linux) || defined(__linux__) || defined(linux)
# define PLATFORM_ID "Linux"
#elif defined(__CYGWIN__)
# define PLATFORM_ID "Cygwin"
#elif defined(__MINGW32__)
# define PLATFORM_ID "MinGW"
#elif defined(__APPLE__)
# define PLATFORM_ID "Darwin"
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
# define PLATFORM_ID "Windows"
#elif defined(__FreeBSD__) || defined(__FreeBSD)
# define PLATFORM_ID "FreeBSD"
#elif defined(__NetBSD__) || defined(__NetBSD)
# define PLATFORM_ID "NetBSD"
#elif defined(__OpenBSD__) || defined(__OPENBSD)
# define PLATFORM_ID "OpenBSD"
#elif defined(__sun) || defined(sun)
# define PLATFORM_ID "SunOS"
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
# define PLATFORM_ID "AIX"
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
# define PLATFORM_ID "IRIX"
#elif defined(__hpux) || defined(__hpux__)
# define PLATFORM_ID "HP-UX"
#elif defined(__HAIKU__)
# define PLATFORM_ID "Haiku"
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
# define PLATFORM_ID "BeOS"
#elif defined(__QNX__) || defined(__QNXNTO__)
# define PLATFORM_ID "QNX"
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
# define PLATFORM_ID "Tru64"
#elif defined(__riscos) || defined(__riscos__)
# define PLATFORM_ID "RISCos"
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
# define PLATFORM_ID "SINIX"
#elif defined(__UNIX_SV__)
# define PLATFORM_ID "UNIX_SV"
#elif defined(__bsdos__)
# define PLATFORM_ID "BSDOS"
#elif defined(_MPRAS) || defined(MPRAS)
# define PLATFORM_ID "MP-RAS"
#elif defined(__osf) || defined(__osf__)
# define PLATFORM_ID "OSF1"
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
# define PLATFORM_ID "SCO_SV"
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
# define PLATFORM_ID "ULTRIX"
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
# define PLATFORM_ID "Xenix"
#elif defined(__WATCOMC__)
# if defined(__LINUX__)
# define PLATFORM_ID "Linux"
# elif defined(__DOS__)
# define PLATFORM_ID "DOS"
# elif defined(__OS2__)
# define PLATFORM_ID "OS2"
# elif defined(__WINDOWS__)
# define PLATFORM_ID "Windows3x"
# else /* unknown platform */
# define PLATFORM_ID
# endif
#else /* unknown platform */
# define PLATFORM_ID
#endif
/* For windows compilers MSVC and Intel we can determine
the architecture of the compiler being used. This is because
the compilers do not have flags that can change the architecture,
but rather depend on which compiler is being used
*/
#if defined(_WIN32) && defined(_MSC_VER)
# if defined(_M_IA64)
# define ARCHITECTURE_ID "IA64"
# elif defined(_M_X64) || defined(_M_AMD64)
# define ARCHITECTURE_ID "x64"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# elif defined(_M_ARM)
# if _M_ARM == 4
# define ARCHITECTURE_ID "ARMV4I"
# elif _M_ARM == 5
# define ARCHITECTURE_ID "ARMV5I"
# else
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
# endif
# elif defined(_M_MIPS)
# define ARCHITECTURE_ID "MIPS"
# elif defined(_M_SH)
# define ARCHITECTURE_ID "SHx"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__WATCOMC__)
# if defined(_M_I86)
# define ARCHITECTURE_ID "I86"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#else
# define ARCHITECTURE_ID
#endif
/* Convert integer to decimal digit literals. */
#define DEC(n) \
('0' + (((n) / 10000000)%10)), \
('0' + (((n) / 1000000)%10)), \
('0' + (((n) / 100000)%10)), \
('0' + (((n) / 10000)%10)), \
('0' + (((n) / 1000)%10)), \
('0' + (((n) / 100)%10)), \
('0' + (((n) / 10)%10)), \
('0' + ((n) % 10))
/* Convert integer to hex digit literals. */
#define HEX(n) \
('0' + ((n)>>28 & 0xF)), \
('0' + ((n)>>24 & 0xF)), \
('0' + ((n)>>20 & 0xF)), \
('0' + ((n)>>16 & 0xF)), \
('0' + ((n)>>12 & 0xF)), \
('0' + ((n)>>8 & 0xF)), \
('0' + ((n)>>4 & 0xF)), \
('0' + ((n) & 0xF))
/* Construct a string literal encoding the version number components. */
#ifdef COMPILER_VERSION_MAJOR
char const info_version[] = {
'I', 'N', 'F', 'O', ':',
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
COMPILER_VERSION_MAJOR,
# ifdef COMPILER_VERSION_MINOR
'.', COMPILER_VERSION_MINOR,
# ifdef COMPILER_VERSION_PATCH
'.', COMPILER_VERSION_PATCH,
# ifdef COMPILER_VERSION_TWEAK
'.', COMPILER_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct a string literal encoding the version number components. */
#ifdef SIMULATE_VERSION_MAJOR
char const info_simulate_version[] = {
'I', 'N', 'F', 'O', ':',
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
SIMULATE_VERSION_MAJOR,
# ifdef SIMULATE_VERSION_MINOR
'.', SIMULATE_VERSION_MINOR,
# ifdef SIMULATE_VERSION_PATCH
'.', SIMULATE_VERSION_PATCH,
# ifdef SIMULATE_VERSION_TWEAK
'.', SIMULATE_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
const char* info_language_dialect_default = "INFO" ":" "dialect_default["
#if __cplusplus > 201402L
"17"
#elif __cplusplus >= 201402L
"14"
#elif __cplusplus >= 201103L
"11"
#else
"98"
#endif
"]";
/*--------------------------------------------------------------------------*/
int main(int argc, char* argv[])
{
int require = 0;
require += info_compiler[argc];
require += info_platform[argc];
#ifdef COMPILER_VERSION_MAJOR
require += info_version[argc];
#endif
#ifdef SIMULATE_ID
require += info_simulate[argc];
#endif
#ifdef SIMULATE_VERSION_MAJOR
require += info_simulate_version[argc];
#endif
#if defined(__CRAYXE) || defined(__CRAYXC)
require += info_cray[argc];
#endif
require += info_language_dialect_default[argc];
(void)argv;
return require;
}

Binary file not shown.

View File

@ -0,0 +1,68 @@
set(CMAKE_C_COMPILER "/usr/bin/cc")
set(CMAKE_C_COMPILER_ARG1 "")
set(CMAKE_C_COMPILER_ID "GNU")
set(CMAKE_C_COMPILER_VERSION "7.1.1")
set(CMAKE_C_COMPILER_WRAPPER "")
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11")
set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert")
set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
set(CMAKE_C11_COMPILE_FEATURES "c_std_11;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 "")
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 "")
endif()
set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "c")
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1;/usr/lib;/lib")
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")

View File

@ -0,0 +1,70 @@
set(CMAKE_CXX_COMPILER "/usr/bin/c++")
set(CMAKE_CXX_COMPILER_ARG1 "")
set(CMAKE_CXX_COMPILER_ID "GNU")
set(CMAKE_CXX_COMPILER_VERSION "7.1.1")
set(CMAKE_CXX_COMPILER_WRAPPER "")
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14")
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;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_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17")
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;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_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
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 "")
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 "")
endif()
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;c")
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1;/usr/lib;/lib")
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,15 @@
set(CMAKE_HOST_SYSTEM "Linux-4.11.2-1-ARCH")
set(CMAKE_HOST_SYSTEM_NAME "Linux")
set(CMAKE_HOST_SYSTEM_VERSION "4.11.2-1-ARCH")
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_SYSTEM "Linux-4.11.2-1-ARCH")
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_VERSION "4.11.2-1-ARCH")
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)

View File

@ -0,0 +1,567 @@
#ifdef __cplusplus
# error "A C++ compiler has been selected for C."
#endif
#if defined(__18CXX)
# define ID_VOID_MAIN
#endif
#if defined(__CLASSIC_C__)
/* cv-qualifiers did not exist in K&R C */
# define const
# define volatile
#endif
/* Version number components: V=Version, R=Revision, P=Patch
Version date components: YYYY=Year, MM=Month, DD=Day */
#if defined(__INTEL_COMPILER) || defined(__ICC)
# define COMPILER_ID "Intel"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
/* __INTEL_COMPILER = VRP */
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
# if defined(__INTEL_COMPILER_UPDATE)
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
# else
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
# endif
# if defined(__INTEL_COMPILER_BUILD_DATE)
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
# endif
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
#elif defined(__PATHCC__)
# define COMPILER_ID "PathScale"
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
# if defined(__PATHCC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
# endif
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
# define COMPILER_ID "Embarcadero"
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
#elif defined(__BORLANDC__)
# define COMPILER_ID "Borland"
/* __BORLANDC__ = 0xVRR */
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
# define COMPILER_ID "Watcom"
/* __WATCOMC__ = VVRR */
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__WATCOMC__)
# define COMPILER_ID "OpenWatcom"
/* __WATCOMC__ = VVRP + 1100 */
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__SUNPRO_C)
# define COMPILER_ID "SunPro"
# if __SUNPRO_C >= 0x5100
/* __SUNPRO_C = 0xVRRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
# else
/* __SUNPRO_CC = 0xVRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
# endif
#elif defined(__HP_cc)
# define COMPILER_ID "HP"
/* __HP_cc = VVRRPP */
# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
#elif defined(__DECC)
# define COMPILER_ID "Compaq"
/* __DECC_VER = VVRRTPPPP */
# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
#elif defined(__IBMC__) && defined(__COMPILER_VER__)
# define COMPILER_ID "zOS"
/* __IBMC__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
# define COMPILER_ID "XL"
/* __IBMC__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
# define COMPILER_ID "VisualAge"
/* __IBMC__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
#elif defined(__PGI)
# define COMPILER_ID "PGI"
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
# if defined(__PGIC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
# endif
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
#elif defined(__TI_COMPILER_VERSION__)
# define COMPILER_ID "TI"
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
# define COMPILER_ID "Fujitsu"
#elif defined(__TINYC__)
# define COMPILER_ID "TinyCC"
#elif defined(__BCC__)
# define COMPILER_ID "Bruce"
#elif defined(__SCO_VERSION__)
# define COMPILER_ID "SCO"
#elif defined(__clang__) && defined(__apple_build_version__)
# define COMPILER_ID "AppleClang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
#elif defined(__clang__)
# define COMPILER_ID "Clang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
#elif defined(__GNUC__)
# define COMPILER_ID "GNU"
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
# if defined(__GNUC_MINOR__)
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
# endif
# if defined(__GNUC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
# endif
#elif defined(_MSC_VER)
# define COMPILER_ID "MSVC"
/* _MSC_VER = VVRR */
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
# if defined(_MSC_FULL_VER)
# if _MSC_VER >= 1400
/* _MSC_FULL_VER = VVRRPPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
# else
/* _MSC_FULL_VER = VVRRPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
# endif
# endif
# if defined(_MSC_BUILD)
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
# endif
#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
# define COMPILER_ID "ADSP"
#if defined(__VISUALDSPVERSION__)
/* __VISUALDSPVERSION__ = 0xVVRRPP00 */
# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
#endif
#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
# define COMPILER_ID "IAR"
#elif defined(__ARMCC_VERSION)
# define COMPILER_ID "ARMCC"
#if __ARMCC_VERSION >= 1000000
/* __ARMCC_VERSION = VRRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#else
/* __ARMCC_VERSION = VRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#endif
#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)
# define COMPILER_ID "SDCC"
# if defined(__SDCC_VERSION_MAJOR)
# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR)
# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR)
# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH)
# else
/* SDCC = VRP */
# define COMPILER_VERSION_MAJOR DEC(SDCC/100)
# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
# define COMPILER_VERSION_PATCH DEC(SDCC % 10)
# endif
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro"
# if defined(_SGI_COMPILER_VERSION)
/* _SGI_COMPILER_VERSION = VRP */
# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
# else
/* _COMPILER_VERSION = VRP */
# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
# endif
/* These compilers are either not known or too old to define an
identification macro. Try to identify the platform and guess that
it is the native compiler. */
#elif defined(__sgi)
# define COMPILER_ID "MIPSpro"
#elif defined(__hpux) || defined(__hpua)
# define COMPILER_ID "HP"
#else /* unknown compiler */
# define COMPILER_ID ""
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
#ifdef SIMULATE_ID
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
#endif
#ifdef __QNXNTO__
char const* qnxnto = "INFO" ":" "qnxnto[]";
#endif
#if defined(__CRAYXE) || defined(__CRAYXC)
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
#endif
#define STRINGIFY_HELPER(X) #X
#define STRINGIFY(X) STRINGIFY_HELPER(X)
/* Identify known platforms by name. */
#if defined(__linux) || defined(__linux__) || defined(linux)
# define PLATFORM_ID "Linux"
#elif defined(__CYGWIN__)
# define PLATFORM_ID "Cygwin"
#elif defined(__MINGW32__)
# define PLATFORM_ID "MinGW"
#elif defined(__APPLE__)
# define PLATFORM_ID "Darwin"
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
# define PLATFORM_ID "Windows"
#elif defined(__FreeBSD__) || defined(__FreeBSD)
# define PLATFORM_ID "FreeBSD"
#elif defined(__NetBSD__) || defined(__NetBSD)
# define PLATFORM_ID "NetBSD"
#elif defined(__OpenBSD__) || defined(__OPENBSD)
# define PLATFORM_ID "OpenBSD"
#elif defined(__sun) || defined(sun)
# define PLATFORM_ID "SunOS"
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
# define PLATFORM_ID "AIX"
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
# define PLATFORM_ID "IRIX"
#elif defined(__hpux) || defined(__hpux__)
# define PLATFORM_ID "HP-UX"
#elif defined(__HAIKU__)
# define PLATFORM_ID "Haiku"
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
# define PLATFORM_ID "BeOS"
#elif defined(__QNX__) || defined(__QNXNTO__)
# define PLATFORM_ID "QNX"
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
# define PLATFORM_ID "Tru64"
#elif defined(__riscos) || defined(__riscos__)
# define PLATFORM_ID "RISCos"
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
# define PLATFORM_ID "SINIX"
#elif defined(__UNIX_SV__)
# define PLATFORM_ID "UNIX_SV"
#elif defined(__bsdos__)
# define PLATFORM_ID "BSDOS"
#elif defined(_MPRAS) || defined(MPRAS)
# define PLATFORM_ID "MP-RAS"
#elif defined(__osf) || defined(__osf__)
# define PLATFORM_ID "OSF1"
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
# define PLATFORM_ID "SCO_SV"
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
# define PLATFORM_ID "ULTRIX"
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
# define PLATFORM_ID "Xenix"
#elif defined(__WATCOMC__)
# if defined(__LINUX__)
# define PLATFORM_ID "Linux"
# elif defined(__DOS__)
# define PLATFORM_ID "DOS"
# elif defined(__OS2__)
# define PLATFORM_ID "OS2"
# elif defined(__WINDOWS__)
# define PLATFORM_ID "Windows3x"
# else /* unknown platform */
# define PLATFORM_ID
# endif
#else /* unknown platform */
# define PLATFORM_ID
#endif
/* For windows compilers MSVC and Intel we can determine
the architecture of the compiler being used. This is because
the compilers do not have flags that can change the architecture,
but rather depend on which compiler is being used
*/
#if defined(_WIN32) && defined(_MSC_VER)
# if defined(_M_IA64)
# define ARCHITECTURE_ID "IA64"
# elif defined(_M_X64) || defined(_M_AMD64)
# define ARCHITECTURE_ID "x64"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# elif defined(_M_ARM)
# if _M_ARM == 4
# define ARCHITECTURE_ID "ARMV4I"
# elif _M_ARM == 5
# define ARCHITECTURE_ID "ARMV5I"
# else
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
# endif
# elif defined(_M_MIPS)
# define ARCHITECTURE_ID "MIPS"
# elif defined(_M_SH)
# define ARCHITECTURE_ID "SHx"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__WATCOMC__)
# if defined(_M_I86)
# define ARCHITECTURE_ID "I86"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#else
# define ARCHITECTURE_ID
#endif
/* Convert integer to decimal digit literals. */
#define DEC(n) \
('0' + (((n) / 10000000)%10)), \
('0' + (((n) / 1000000)%10)), \
('0' + (((n) / 100000)%10)), \
('0' + (((n) / 10000)%10)), \
('0' + (((n) / 1000)%10)), \
('0' + (((n) / 100)%10)), \
('0' + (((n) / 10)%10)), \
('0' + ((n) % 10))
/* Convert integer to hex digit literals. */
#define HEX(n) \
('0' + ((n)>>28 & 0xF)), \
('0' + ((n)>>24 & 0xF)), \
('0' + ((n)>>20 & 0xF)), \
('0' + ((n)>>16 & 0xF)), \
('0' + ((n)>>12 & 0xF)), \
('0' + ((n)>>8 & 0xF)), \
('0' + ((n)>>4 & 0xF)), \
('0' + ((n) & 0xF))
/* Construct a string literal encoding the version number components. */
#ifdef COMPILER_VERSION_MAJOR
char const info_version[] = {
'I', 'N', 'F', 'O', ':',
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
COMPILER_VERSION_MAJOR,
# ifdef COMPILER_VERSION_MINOR
'.', COMPILER_VERSION_MINOR,
# ifdef COMPILER_VERSION_PATCH
'.', COMPILER_VERSION_PATCH,
# ifdef COMPILER_VERSION_TWEAK
'.', COMPILER_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct a string literal encoding the version number components. */
#ifdef SIMULATE_VERSION_MAJOR
char const info_simulate_version[] = {
'I', 'N', 'F', 'O', ':',
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
SIMULATE_VERSION_MAJOR,
# ifdef SIMULATE_VERSION_MINOR
'.', SIMULATE_VERSION_MINOR,
# ifdef SIMULATE_VERSION_PATCH
'.', SIMULATE_VERSION_PATCH,
# ifdef SIMULATE_VERSION_TWEAK
'.', SIMULATE_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
#if !defined(__STDC__)
# if defined(_MSC_VER) && !defined(__clang__)
# define C_DIALECT "90"
# else
# define C_DIALECT
# endif
#elif __STDC_VERSION__ >= 201000L
# define C_DIALECT "11"
#elif __STDC_VERSION__ >= 199901L
# define C_DIALECT "99"
#else
# define C_DIALECT "90"
#endif
const char* info_language_dialect_default =
"INFO" ":" "dialect_default[" C_DIALECT "]";
/*--------------------------------------------------------------------------*/
#ifdef ID_VOID_MAIN
void main() {}
#else
# if defined(__CLASSIC_C__)
int main(argc, argv) int argc; char *argv[];
# else
int main(int argc, char* argv[])
# endif
{
int require = 0;
require += info_compiler[argc];
require += info_platform[argc];
require += info_arch[argc];
#ifdef COMPILER_VERSION_MAJOR
require += info_version[argc];
#endif
#ifdef SIMULATE_ID
require += info_simulate[argc];
#endif
#ifdef SIMULATE_VERSION_MAJOR
require += info_simulate_version[argc];
#endif
#if defined(__CRAYXE) || defined(__CRAYXC)
require += info_cray[argc];
#endif
require += info_language_dialect_default[argc];
(void)argv;
return require;
}
#endif

Binary file not shown.

View File

@ -0,0 +1,539 @@
/* This source file must have a .cpp extension so that all C++ compilers
recognize the extension without flags. Borland does not know .cxx for
example. */
#ifndef __cplusplus
# error "A C compiler has been selected for C++."
#endif
/* Version number components: V=Version, R=Revision, P=Patch
Version date components: YYYY=Year, MM=Month, DD=Day */
#if defined(__COMO__)
# define COMPILER_ID "Comeau"
/* __COMO_VERSION__ = VRR */
# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
#elif defined(__INTEL_COMPILER) || defined(__ICC)
# define COMPILER_ID "Intel"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
/* __INTEL_COMPILER = VRP */
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
# if defined(__INTEL_COMPILER_UPDATE)
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
# else
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
# endif
# if defined(__INTEL_COMPILER_BUILD_DATE)
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
# endif
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
#elif defined(__PATHCC__)
# define COMPILER_ID "PathScale"
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
# if defined(__PATHCC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
# endif
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
# define COMPILER_ID "Embarcadero"
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
#elif defined(__BORLANDC__)
# define COMPILER_ID "Borland"
/* __BORLANDC__ = 0xVRR */
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
# define COMPILER_ID "Watcom"
/* __WATCOMC__ = VVRR */
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__WATCOMC__)
# define COMPILER_ID "OpenWatcom"
/* __WATCOMC__ = VVRP + 1100 */
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
# if (__WATCOMC__ % 10) > 0
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
# endif
#elif defined(__SUNPRO_CC)
# define COMPILER_ID "SunPro"
# if __SUNPRO_CC >= 0x5100
/* __SUNPRO_CC = 0xVRRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
# else
/* __SUNPRO_CC = 0xVRP */
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
# endif
#elif defined(__HP_aCC)
# define COMPILER_ID "HP"
/* __HP_aCC = VVRRPP */
# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
#elif defined(__DECCXX)
# define COMPILER_ID "Compaq"
/* __DECCXX_VER = VVRRTPPPP */
# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
# define COMPILER_ID "zOS"
/* __IBMCPP__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
# define COMPILER_ID "XL"
/* __IBMCPP__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
# define COMPILER_ID "VisualAge"
/* __IBMCPP__ = VRP */
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
#elif defined(__PGI)
# define COMPILER_ID "PGI"
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
# if defined(__PGIC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
# endif
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
#elif defined(__TI_COMPILER_VERSION__)
# define COMPILER_ID "TI"
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
# define COMPILER_ID "Fujitsu"
#elif defined(__SCO_VERSION__)
# define COMPILER_ID "SCO"
#elif defined(__clang__) && defined(__apple_build_version__)
# define COMPILER_ID "AppleClang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
#elif defined(__clang__)
# define COMPILER_ID "Clang"
# if defined(_MSC_VER)
# define SIMULATE_ID "MSVC"
# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
# if defined(_MSC_VER)
/* _MSC_VER = VVRR */
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
# endif
#elif defined(__GNUC__) || defined(__GNUG__)
# define COMPILER_ID "GNU"
# if defined(__GNUC__)
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
# else
# define COMPILER_VERSION_MAJOR DEC(__GNUG__)
# endif
# if defined(__GNUC_MINOR__)
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
# endif
# if defined(__GNUC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
# endif
#elif defined(_MSC_VER)
# define COMPILER_ID "MSVC"
/* _MSC_VER = VVRR */
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
# if defined(_MSC_FULL_VER)
# if _MSC_VER >= 1400
/* _MSC_FULL_VER = VVRRPPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
# else
/* _MSC_FULL_VER = VVRRPPPP */
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
# endif
# endif
# if defined(_MSC_BUILD)
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
# endif
#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
# define COMPILER_ID "ADSP"
#if defined(__VISUALDSPVERSION__)
/* __VISUALDSPVERSION__ = 0xVVRRPP00 */
# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
#endif
#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
# define COMPILER_ID "IAR"
#elif defined(__ARMCC_VERSION)
# define COMPILER_ID "ARMCC"
#if __ARMCC_VERSION >= 1000000
/* __ARMCC_VERSION = VRRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#else
/* __ARMCC_VERSION = VRPPPP */
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
#endif
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro"
# if defined(_SGI_COMPILER_VERSION)
/* _SGI_COMPILER_VERSION = VRP */
# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
# else
/* _COMPILER_VERSION = VRP */
# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
# endif
/* These compilers are either not known or too old to define an
identification macro. Try to identify the platform and guess that
it is the native compiler. */
#elif defined(__sgi)
# define COMPILER_ID "MIPSpro"
#elif defined(__hpux) || defined(__hpua)
# define COMPILER_ID "HP"
#else /* unknown compiler */
# define COMPILER_ID ""
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
#ifdef SIMULATE_ID
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
#endif
#ifdef __QNXNTO__
char const* qnxnto = "INFO" ":" "qnxnto[]";
#endif
#if defined(__CRAYXE) || defined(__CRAYXC)
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
#endif
#define STRINGIFY_HELPER(X) #X
#define STRINGIFY(X) STRINGIFY_HELPER(X)
/* Identify known platforms by name. */
#if defined(__linux) || defined(__linux__) || defined(linux)
# define PLATFORM_ID "Linux"
#elif defined(__CYGWIN__)
# define PLATFORM_ID "Cygwin"
#elif defined(__MINGW32__)
# define PLATFORM_ID "MinGW"
#elif defined(__APPLE__)
# define PLATFORM_ID "Darwin"
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
# define PLATFORM_ID "Windows"
#elif defined(__FreeBSD__) || defined(__FreeBSD)
# define PLATFORM_ID "FreeBSD"
#elif defined(__NetBSD__) || defined(__NetBSD)
# define PLATFORM_ID "NetBSD"
#elif defined(__OpenBSD__) || defined(__OPENBSD)
# define PLATFORM_ID "OpenBSD"
#elif defined(__sun) || defined(sun)
# define PLATFORM_ID "SunOS"
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
# define PLATFORM_ID "AIX"
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
# define PLATFORM_ID "IRIX"
#elif defined(__hpux) || defined(__hpux__)
# define PLATFORM_ID "HP-UX"
#elif defined(__HAIKU__)
# define PLATFORM_ID "Haiku"
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
# define PLATFORM_ID "BeOS"
#elif defined(__QNX__) || defined(__QNXNTO__)
# define PLATFORM_ID "QNX"
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
# define PLATFORM_ID "Tru64"
#elif defined(__riscos) || defined(__riscos__)
# define PLATFORM_ID "RISCos"
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
# define PLATFORM_ID "SINIX"
#elif defined(__UNIX_SV__)
# define PLATFORM_ID "UNIX_SV"
#elif defined(__bsdos__)
# define PLATFORM_ID "BSDOS"
#elif defined(_MPRAS) || defined(MPRAS)
# define PLATFORM_ID "MP-RAS"
#elif defined(__osf) || defined(__osf__)
# define PLATFORM_ID "OSF1"
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
# define PLATFORM_ID "SCO_SV"
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
# define PLATFORM_ID "ULTRIX"
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
# define PLATFORM_ID "Xenix"
#elif defined(__WATCOMC__)
# if defined(__LINUX__)
# define PLATFORM_ID "Linux"
# elif defined(__DOS__)
# define PLATFORM_ID "DOS"
# elif defined(__OS2__)
# define PLATFORM_ID "OS2"
# elif defined(__WINDOWS__)
# define PLATFORM_ID "Windows3x"
# else /* unknown platform */
# define PLATFORM_ID
# endif
#else /* unknown platform */
# define PLATFORM_ID
#endif
/* For windows compilers MSVC and Intel we can determine
the architecture of the compiler being used. This is because
the compilers do not have flags that can change the architecture,
but rather depend on which compiler is being used
*/
#if defined(_WIN32) && defined(_MSC_VER)
# if defined(_M_IA64)
# define ARCHITECTURE_ID "IA64"
# elif defined(_M_X64) || defined(_M_AMD64)
# define ARCHITECTURE_ID "x64"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# elif defined(_M_ARM)
# if _M_ARM == 4
# define ARCHITECTURE_ID "ARMV4I"
# elif _M_ARM == 5
# define ARCHITECTURE_ID "ARMV5I"
# else
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
# endif
# elif defined(_M_MIPS)
# define ARCHITECTURE_ID "MIPS"
# elif defined(_M_SH)
# define ARCHITECTURE_ID "SHx"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#elif defined(__WATCOMC__)
# if defined(_M_I86)
# define ARCHITECTURE_ID "I86"
# elif defined(_M_IX86)
# define ARCHITECTURE_ID "X86"
# else /* unknown architecture */
# define ARCHITECTURE_ID ""
# endif
#else
# define ARCHITECTURE_ID
#endif
/* Convert integer to decimal digit literals. */
#define DEC(n) \
('0' + (((n) / 10000000)%10)), \
('0' + (((n) / 1000000)%10)), \
('0' + (((n) / 100000)%10)), \
('0' + (((n) / 10000)%10)), \
('0' + (((n) / 1000)%10)), \
('0' + (((n) / 100)%10)), \
('0' + (((n) / 10)%10)), \
('0' + ((n) % 10))
/* Convert integer to hex digit literals. */
#define HEX(n) \
('0' + ((n)>>28 & 0xF)), \
('0' + ((n)>>24 & 0xF)), \
('0' + ((n)>>20 & 0xF)), \
('0' + ((n)>>16 & 0xF)), \
('0' + ((n)>>12 & 0xF)), \
('0' + ((n)>>8 & 0xF)), \
('0' + ((n)>>4 & 0xF)), \
('0' + ((n) & 0xF))
/* Construct a string literal encoding the version number components. */
#ifdef COMPILER_VERSION_MAJOR
char const info_version[] = {
'I', 'N', 'F', 'O', ':',
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
COMPILER_VERSION_MAJOR,
# ifdef COMPILER_VERSION_MINOR
'.', COMPILER_VERSION_MINOR,
# ifdef COMPILER_VERSION_PATCH
'.', COMPILER_VERSION_PATCH,
# ifdef COMPILER_VERSION_TWEAK
'.', COMPILER_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct a string literal encoding the version number components. */
#ifdef SIMULATE_VERSION_MAJOR
char const info_simulate_version[] = {
'I', 'N', 'F', 'O', ':',
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
SIMULATE_VERSION_MAJOR,
# ifdef SIMULATE_VERSION_MINOR
'.', SIMULATE_VERSION_MINOR,
# ifdef SIMULATE_VERSION_PATCH
'.', SIMULATE_VERSION_PATCH,
# ifdef SIMULATE_VERSION_TWEAK
'.', SIMULATE_VERSION_TWEAK,
# endif
# endif
# endif
']','\0'};
#endif
/* Construct the string literal in pieces to prevent the source from
getting matched. Store it in a pointer rather than an array
because some compilers will just produce instructions to fill the
array rather than assigning a pointer to a static array. */
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
const char* info_language_dialect_default = "INFO" ":" "dialect_default["
#if __cplusplus > 201402L
"17"
#elif __cplusplus >= 201402L
"14"
#elif __cplusplus >= 201103L
"11"
#else
"98"
#endif
"]";
/*--------------------------------------------------------------------------*/
int main(int argc, char* argv[])
{
int require = 0;
require += info_compiler[argc];
require += info_platform[argc];
#ifdef COMPILER_VERSION_MAJOR
require += info_version[argc];
#endif
#ifdef SIMULATE_ID
require += info_simulate[argc];
#endif
#ifdef SIMULATE_VERSION_MAJOR
require += info_simulate_version[argc];
#endif
#if defined(__CRAYXE) || defined(__CRAYXC)
require += info_cray[argc];
#endif
require += info_language_dialect_default[argc];
(void)argv;
return require;
}

Binary file not shown.

View File

@ -0,0 +1,16 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
# Relative path conversion top directories.
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/philipp/Programming/RGBcontroller")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/philipp/Programming/RGBcontroller")
# 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})

1248
CMakeFiles/CMakeOutput.log Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
# Hashes of file build rules.
aa03d64cd4c9416a27f828fb4cf74086 CMakeFiles/download
648b3a8e98a0ad5222e1905ef8f64f30 CMakeFiles/export

47
CMakeFiles/Makefile.cmake Normal file
View File

@ -0,0 +1,47 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
# 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.8.2/CMakeCCompiler.cmake"
"CMakeFiles/3.8.2/CMakeCXXCompiler.cmake"
"CMakeFiles/3.8.2/CMakeSystem.cmake"
"CMakeLists.txt"
"/usr/share/cmake-3.8/Modules/CMakeCInformation.cmake"
"/usr/share/cmake-3.8/Modules/CMakeCXXInformation.cmake"
"/usr/share/cmake-3.8/Modules/CMakeCommonLanguageInclude.cmake"
"/usr/share/cmake-3.8/Modules/CMakeGenericSystem.cmake"
"/usr/share/cmake-3.8/Modules/CMakeLanguageInformation.cmake"
"/usr/share/cmake-3.8/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/share/cmake-3.8/Modules/CMakeSystemSpecificInitialize.cmake"
"/usr/share/cmake-3.8/Modules/Compiler/GNU-C.cmake"
"/usr/share/cmake-3.8/Modules/Compiler/GNU-CXX.cmake"
"/usr/share/cmake-3.8/Modules/Compiler/GNU.cmake"
"/usr/share/cmake-3.8/Modules/Platform/Linux-GNU-C.cmake"
"/usr/share/cmake-3.8/Modules/Platform/Linux-GNU-CXX.cmake"
"/usr/share/cmake-3.8/Modules/Platform/Linux-GNU.cmake"
"/usr/share/cmake-3.8/Modules/Platform/Linux.cmake"
"/usr/share/cmake-3.8/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"
)
# Dependency information for all targets:
set(CMAKE_DEPEND_INFO_FILES
"CMakeFiles/export.dir/DependInfo.cmake"
"CMakeFiles/rgbcontroller.dir/DependInfo.cmake"
"CMakeFiles/download.dir/DependInfo.cmake"
)

172
CMakeFiles/Makefile2 Normal file
View File

@ -0,0 +1,172 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# The main recursive all target
all:
.PHONY : all
# The main recursive preinstall target
preinstall:
.PHONY : preinstall
#=============================================================================
# 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/philipp/Programming/RGBcontroller
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/philipp/Programming/RGBcontroller
#=============================================================================
# Target rules for target CMakeFiles/export.dir
# All Build rule for target.
CMakeFiles/export.dir/all: CMakeFiles/rgbcontroller.dir/all
$(MAKE) -f CMakeFiles/export.dir/build.make CMakeFiles/export.dir/depend
$(MAKE) -f CMakeFiles/export.dir/build.make CMakeFiles/export.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/philipp/Programming/RGBcontroller/CMakeFiles --progress-num= "Built target export"
.PHONY : CMakeFiles/export.dir/all
# Build rule for subdir invocation for target.
CMakeFiles/export.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/philipp/Programming/RGBcontroller/CMakeFiles 6
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/export.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/philipp/Programming/RGBcontroller/CMakeFiles 0
.PHONY : CMakeFiles/export.dir/rule
# Convenience name for target.
export: CMakeFiles/export.dir/rule
.PHONY : export
# clean rule for target.
CMakeFiles/export.dir/clean:
$(MAKE) -f CMakeFiles/export.dir/build.make CMakeFiles/export.dir/clean
.PHONY : CMakeFiles/export.dir/clean
# clean rule for target.
clean: CMakeFiles/export.dir/clean
.PHONY : clean
#=============================================================================
# Target rules for target CMakeFiles/rgbcontroller.dir
# All Build rule for target.
CMakeFiles/rgbcontroller.dir/all:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/depend
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/philipp/Programming/RGBcontroller/CMakeFiles --progress-num=1,2,3,4,5,6 "Built target rgbcontroller"
.PHONY : CMakeFiles/rgbcontroller.dir/all
# Include target in all.
all: CMakeFiles/rgbcontroller.dir/all
.PHONY : all
# Build rule for subdir invocation for target.
CMakeFiles/rgbcontroller.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/philipp/Programming/RGBcontroller/CMakeFiles 6
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/rgbcontroller.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/philipp/Programming/RGBcontroller/CMakeFiles 0
.PHONY : CMakeFiles/rgbcontroller.dir/rule
# Convenience name for target.
rgbcontroller: CMakeFiles/rgbcontroller.dir/rule
.PHONY : rgbcontroller
# clean rule for target.
CMakeFiles/rgbcontroller.dir/clean:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/clean
.PHONY : CMakeFiles/rgbcontroller.dir/clean
# clean rule for target.
clean: CMakeFiles/rgbcontroller.dir/clean
.PHONY : clean
#=============================================================================
# Target rules for target CMakeFiles/download.dir
# All Build rule for target.
CMakeFiles/download.dir/all: CMakeFiles/rgbcontroller.dir/all
$(MAKE) -f CMakeFiles/download.dir/build.make CMakeFiles/download.dir/depend
$(MAKE) -f CMakeFiles/download.dir/build.make CMakeFiles/download.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/philipp/Programming/RGBcontroller/CMakeFiles --progress-num= "Built target download"
.PHONY : CMakeFiles/download.dir/all
# Build rule for subdir invocation for target.
CMakeFiles/download.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/philipp/Programming/RGBcontroller/CMakeFiles 6
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/download.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/philipp/Programming/RGBcontroller/CMakeFiles 0
.PHONY : CMakeFiles/download.dir/rule
# Convenience name for target.
download: CMakeFiles/download.dir/rule
.PHONY : download
# clean rule for target.
CMakeFiles/download.dir/clean:
$(MAKE) -f CMakeFiles/download.dir/build.make CMakeFiles/download.dir/clean
.PHONY : CMakeFiles/download.dir/clean
# clean rule for target.
clean: CMakeFiles/download.dir/clean
.PHONY : clean
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system

View File

@ -0,0 +1,5 @@
/home/philipp/Programming/RGBcontroller/CMakeFiles/rebuild_cache.dir
/home/philipp/Programming/RGBcontroller/CMakeFiles/edit_cache.dir
/home/philipp/Programming/RGBcontroller/CMakeFiles/export.dir
/home/philipp/Programming/RGBcontroller/CMakeFiles/rgbcontroller.dir
/home/philipp/Programming/RGBcontroller/CMakeFiles/download.dir

View File

@ -0,0 +1 @@
# This file is generated by cmake for dependency checking of the CMakeCache.txt file

View File

@ -0,0 +1,11 @@
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
)
# The set of files for implicit dependencies of each language:
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# Fortran module output directory.
set(CMAKE_Fortran_TARGET_MODULE_DIR "")

View File

@ -0,0 +1,77 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# 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/philipp/Programming/RGBcontroller
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/philipp/Programming/RGBcontroller
# Utility rule file for download.
# Include the progress variables for this target.
include CMakeFiles/download.dir/progress.make
CMakeFiles/download: rgbcontroller
/usr/bin/avr-objcopy -j .text -j .data -O ihex rgbcontroller rgbcontroller.hex
/usr/bin/avrdude -v -p atmega328p -c stk500v1 -P /dev/ttyUSB0 -b 57600 -D -U flash:w:rgbcontroller.hex
download: CMakeFiles/download
download: CMakeFiles/download.dir/build.make
.PHONY : download
# Rule to build all files generated by this target.
CMakeFiles/download.dir/build: download
.PHONY : CMakeFiles/download.dir/build
CMakeFiles/download.dir/clean:
$(CMAKE_COMMAND) -P CMakeFiles/download.dir/cmake_clean.cmake
.PHONY : CMakeFiles/download.dir/clean
CMakeFiles/download.dir/depend:
cd /home/philipp/Programming/RGBcontroller && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller/CMakeFiles/download.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/download.dir/depend

View File

@ -0,0 +1,8 @@
file(REMOVE_RECURSE
"CMakeFiles/download"
)
# Per-language clean rules from dependency scanning.
foreach(lang )
include(CMakeFiles/download.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()

View File

@ -0,0 +1,3 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8

View File

@ -0,0 +1,3 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,11 @@
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
)
# The set of files for implicit dependencies of each language:
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# Fortran module output directory.
set(CMAKE_Fortran_TARGET_MODULE_DIR "")

View File

@ -0,0 +1,76 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# 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/philipp/Programming/RGBcontroller
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/philipp/Programming/RGBcontroller
# Utility rule file for export.
# Include the progress variables for this target.
include CMakeFiles/export.dir/progress.make
CMakeFiles/export: rgbcontroller
/usr/bin/avr-objcopy -j .text -j .data -O ihex rgbcontroller rgbcontroller.hex
export: CMakeFiles/export
export: CMakeFiles/export.dir/build.make
.PHONY : export
# Rule to build all files generated by this target.
CMakeFiles/export.dir/build: export
.PHONY : CMakeFiles/export.dir/build
CMakeFiles/export.dir/clean:
$(CMAKE_COMMAND) -P CMakeFiles/export.dir/cmake_clean.cmake
.PHONY : CMakeFiles/export.dir/clean
CMakeFiles/export.dir/depend:
cd /home/philipp/Programming/RGBcontroller && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller/CMakeFiles/export.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/export.dir/depend

View File

@ -0,0 +1,8 @@
file(REMOVE_RECURSE
"CMakeFiles/export"
)
# Per-language clean rules from dependency scanning.
foreach(lang )
include(CMakeFiles/export.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()

View File

@ -0,0 +1,3 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8

View File

@ -0,0 +1,3 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8

View File

@ -0,0 +1 @@

BIN
CMakeFiles/feature_tests.bin Executable file

Binary file not shown.

View File

@ -0,0 +1,34 @@
const char features[] = {"\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304
"1"
#else
"0"
#endif
"c_function_prototypes\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && 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__) >= 304 && 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]; }

View File

@ -0,0 +1,405 @@
const char features[] = {"\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L
"1"
#else
"0"
#endif
"cxx_aggregate_default_initializers\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_alias_templates\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_alignas\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_alignof\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_attributes\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_attribute_deprecated\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_auto_type\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_binary_literals\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_constexpr\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_contextual_conversions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_decltype\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_decltype_auto\n"
"CXX_FEATURE:"
#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_decltype_incomplete_return_types\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_default_function_template_args\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_defaulted_functions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_defaulted_move_initializers\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_delegating_constructors\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_deleted_functions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_digit_separators\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_enum_forward_declarations\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_explicit_conversions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_extended_friend_declarations\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_extern_templates\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_final\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_func_identifier\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_generalized_initializers\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_generic_lambdas\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_inheriting_constructors\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_inline_namespaces\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_lambdas\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_lambda_init_captures\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_local_type_template_args\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_long_long_type\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_noexcept\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_nonstatic_member_init\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_nullptr\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_override\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_range_for\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_raw_string_literals\n"
"CXX_FEATURE:"
#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_reference_qualified_functions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L
"1"
#else
"0"
#endif
"cxx_relaxed_constexpr\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_return_type_deduction\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_right_angle_brackets\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_rvalue_references\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_sizeof_member\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_static_assert\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_strong_enums\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus
"1"
#else
"0"
#endif
"cxx_template_template_parameters\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_thread_local\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_trailing_return_types\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_unicode_literals\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_uniform_initialization\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_unrestricted_unions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_user_literals\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L
"1"
#else
"0"
#endif
"cxx_variable_templates\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_variadic_macros\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_variadic_templates\n"
};
int main(int argc, char** argv) { (void)argv; return features[argc]; }

View File

@ -0,0 +1 @@
6

View File

@ -0,0 +1,76 @@
#IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/philipp/Programming/RGBcontroller/WirelessRelay.cpp
WirelessRelay.h
/home/philipp/Programming/RGBcontroller/WirelessRelay.h
/home/philipp/Programming/RGBcontroller/WirelessRelay.h
util/delay.h
-
writepin.h
/home/philipp/Programming/RGBcontroller/writepin.h
/home/philipp/Programming/RGBcontroller/eeprom.h
/home/philipp/Programming/RGBcontroller/main.cpp
avr/io.h
-
stdio.h
-
stdlib.h
-
serial.h
/home/philipp/Programming/RGBcontroller/serial.h
writepin.h
/home/philipp/Programming/RGBcontroller/writepin.h
WirelessRelay.h
/home/philipp/Programming/RGBcontroller/WirelessRelay.h
pwm.h
/home/philipp/Programming/RGBcontroller/pwm.h
rgbled.h
/home/philipp/Programming/RGBcontroller/rgbled.h
eeprom.h
/home/philipp/Programming/RGBcontroller/eeprom.h
/home/philipp/Programming/RGBcontroller/pwm.cpp
pwm.h
/home/philipp/Programming/RGBcontroller/pwm.h
/home/philipp/Programming/RGBcontroller/pwm.h
avr/io.h
-
/home/philipp/Programming/RGBcontroller/rgbled.cpp
rgbled.h
/home/philipp/Programming/RGBcontroller/rgbled.h
/home/philipp/Programming/RGBcontroller/rgbled.h
util/delay.h
-
pwm.h
/home/philipp/Programming/RGBcontroller/pwm.h
/home/philipp/Programming/RGBcontroller/serial.cpp
serial.h
/home/philipp/Programming/RGBcontroller/serial.h
/home/philipp/Programming/RGBcontroller/serial.h
util/setbaud.h
-
avr/io.h
-
avr/interrupt.h
-
string.h
-
/home/philipp/Programming/RGBcontroller/writepin.h
avr/io.h
-

View File

@ -0,0 +1,29 @@
# 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/philipp/Programming/RGBcontroller/WirelessRelay.cpp" "/home/philipp/Programming/RGBcontroller/CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o"
"/home/philipp/Programming/RGBcontroller/main.cpp" "/home/philipp/Programming/RGBcontroller/CMakeFiles/rgbcontroller.dir/main.cpp.o"
"/home/philipp/Programming/RGBcontroller/pwm.cpp" "/home/philipp/Programming/RGBcontroller/CMakeFiles/rgbcontroller.dir/pwm.cpp.o"
"/home/philipp/Programming/RGBcontroller/rgbled.cpp" "/home/philipp/Programming/RGBcontroller/CMakeFiles/rgbcontroller.dir/rgbled.cpp.o"
"/home/philipp/Programming/RGBcontroller/serial.cpp" "/home/philipp/Programming/RGBcontroller/CMakeFiles/rgbcontroller.dir/serial.cpp.o"
)
set(CMAKE_CXX_COMPILER_ID "GNU")
# Preprocessor definitions for this target.
set(CMAKE_TARGET_DEFINITIONS_CXX
"F_CPU=16000000"
)
# The include file search paths:
set(CMAKE_CXX_TARGET_INCLUDE_PATH
)
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# Fortran module output directory.
set(CMAKE_Fortran_TARGET_MODULE_DIR "")

Binary file not shown.

View File

@ -0,0 +1,221 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# 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/philipp/Programming/RGBcontroller
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/philipp/Programming/RGBcontroller
# Include any dependencies generated for this target.
include CMakeFiles/rgbcontroller.dir/depend.make
# Include the progress variables for this target.
include CMakeFiles/rgbcontroller.dir/progress.make
# Include the compile flags for this target's objects.
include CMakeFiles/rgbcontroller.dir/flags.make
CMakeFiles/rgbcontroller.dir/main.cpp.o: CMakeFiles/rgbcontroller.dir/flags.make
CMakeFiles/rgbcontroller.dir/main.cpp.o: main.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/philipp/Programming/RGBcontroller/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/rgbcontroller.dir/main.cpp.o"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/rgbcontroller.dir/main.cpp.o -c /home/philipp/Programming/RGBcontroller/main.cpp
CMakeFiles/rgbcontroller.dir/main.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/rgbcontroller.dir/main.cpp.i"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/philipp/Programming/RGBcontroller/main.cpp > CMakeFiles/rgbcontroller.dir/main.cpp.i
CMakeFiles/rgbcontroller.dir/main.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/rgbcontroller.dir/main.cpp.s"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/philipp/Programming/RGBcontroller/main.cpp -o CMakeFiles/rgbcontroller.dir/main.cpp.s
CMakeFiles/rgbcontroller.dir/main.cpp.o.requires:
.PHONY : CMakeFiles/rgbcontroller.dir/main.cpp.o.requires
CMakeFiles/rgbcontroller.dir/main.cpp.o.provides: CMakeFiles/rgbcontroller.dir/main.cpp.o.requires
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/main.cpp.o.provides.build
.PHONY : CMakeFiles/rgbcontroller.dir/main.cpp.o.provides
CMakeFiles/rgbcontroller.dir/main.cpp.o.provides.build: CMakeFiles/rgbcontroller.dir/main.cpp.o
CMakeFiles/rgbcontroller.dir/serial.cpp.o: CMakeFiles/rgbcontroller.dir/flags.make
CMakeFiles/rgbcontroller.dir/serial.cpp.o: serial.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/philipp/Programming/RGBcontroller/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/rgbcontroller.dir/serial.cpp.o"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/rgbcontroller.dir/serial.cpp.o -c /home/philipp/Programming/RGBcontroller/serial.cpp
CMakeFiles/rgbcontroller.dir/serial.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/rgbcontroller.dir/serial.cpp.i"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/philipp/Programming/RGBcontroller/serial.cpp > CMakeFiles/rgbcontroller.dir/serial.cpp.i
CMakeFiles/rgbcontroller.dir/serial.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/rgbcontroller.dir/serial.cpp.s"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/philipp/Programming/RGBcontroller/serial.cpp -o CMakeFiles/rgbcontroller.dir/serial.cpp.s
CMakeFiles/rgbcontroller.dir/serial.cpp.o.requires:
.PHONY : CMakeFiles/rgbcontroller.dir/serial.cpp.o.requires
CMakeFiles/rgbcontroller.dir/serial.cpp.o.provides: CMakeFiles/rgbcontroller.dir/serial.cpp.o.requires
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/serial.cpp.o.provides.build
.PHONY : CMakeFiles/rgbcontroller.dir/serial.cpp.o.provides
CMakeFiles/rgbcontroller.dir/serial.cpp.o.provides.build: CMakeFiles/rgbcontroller.dir/serial.cpp.o
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o: CMakeFiles/rgbcontroller.dir/flags.make
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o: WirelessRelay.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/philipp/Programming/RGBcontroller/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o -c /home/philipp/Programming/RGBcontroller/WirelessRelay.cpp
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.i"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/philipp/Programming/RGBcontroller/WirelessRelay.cpp > CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.i
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.s"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/philipp/Programming/RGBcontroller/WirelessRelay.cpp -o CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.s
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o.requires:
.PHONY : CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o.requires
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o.provides: CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o.requires
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o.provides.build
.PHONY : CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o.provides
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o.provides.build: CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o
CMakeFiles/rgbcontroller.dir/pwm.cpp.o: CMakeFiles/rgbcontroller.dir/flags.make
CMakeFiles/rgbcontroller.dir/pwm.cpp.o: pwm.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/philipp/Programming/RGBcontroller/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building CXX object CMakeFiles/rgbcontroller.dir/pwm.cpp.o"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/rgbcontroller.dir/pwm.cpp.o -c /home/philipp/Programming/RGBcontroller/pwm.cpp
CMakeFiles/rgbcontroller.dir/pwm.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/rgbcontroller.dir/pwm.cpp.i"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/philipp/Programming/RGBcontroller/pwm.cpp > CMakeFiles/rgbcontroller.dir/pwm.cpp.i
CMakeFiles/rgbcontroller.dir/pwm.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/rgbcontroller.dir/pwm.cpp.s"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/philipp/Programming/RGBcontroller/pwm.cpp -o CMakeFiles/rgbcontroller.dir/pwm.cpp.s
CMakeFiles/rgbcontroller.dir/pwm.cpp.o.requires:
.PHONY : CMakeFiles/rgbcontroller.dir/pwm.cpp.o.requires
CMakeFiles/rgbcontroller.dir/pwm.cpp.o.provides: CMakeFiles/rgbcontroller.dir/pwm.cpp.o.requires
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/pwm.cpp.o.provides.build
.PHONY : CMakeFiles/rgbcontroller.dir/pwm.cpp.o.provides
CMakeFiles/rgbcontroller.dir/pwm.cpp.o.provides.build: CMakeFiles/rgbcontroller.dir/pwm.cpp.o
CMakeFiles/rgbcontroller.dir/rgbled.cpp.o: CMakeFiles/rgbcontroller.dir/flags.make
CMakeFiles/rgbcontroller.dir/rgbled.cpp.o: rgbled.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/philipp/Programming/RGBcontroller/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building CXX object CMakeFiles/rgbcontroller.dir/rgbled.cpp.o"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/rgbcontroller.dir/rgbled.cpp.o -c /home/philipp/Programming/RGBcontroller/rgbled.cpp
CMakeFiles/rgbcontroller.dir/rgbled.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/rgbcontroller.dir/rgbled.cpp.i"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/philipp/Programming/RGBcontroller/rgbled.cpp > CMakeFiles/rgbcontroller.dir/rgbled.cpp.i
CMakeFiles/rgbcontroller.dir/rgbled.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/rgbcontroller.dir/rgbled.cpp.s"
/usr/bin/avr-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/philipp/Programming/RGBcontroller/rgbled.cpp -o CMakeFiles/rgbcontroller.dir/rgbled.cpp.s
CMakeFiles/rgbcontroller.dir/rgbled.cpp.o.requires:
.PHONY : CMakeFiles/rgbcontroller.dir/rgbled.cpp.o.requires
CMakeFiles/rgbcontroller.dir/rgbled.cpp.o.provides: CMakeFiles/rgbcontroller.dir/rgbled.cpp.o.requires
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/rgbled.cpp.o.provides.build
.PHONY : CMakeFiles/rgbcontroller.dir/rgbled.cpp.o.provides
CMakeFiles/rgbcontroller.dir/rgbled.cpp.o.provides.build: CMakeFiles/rgbcontroller.dir/rgbled.cpp.o
# Object files for target rgbcontroller
rgbcontroller_OBJECTS = \
"CMakeFiles/rgbcontroller.dir/main.cpp.o" \
"CMakeFiles/rgbcontroller.dir/serial.cpp.o" \
"CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o" \
"CMakeFiles/rgbcontroller.dir/pwm.cpp.o" \
"CMakeFiles/rgbcontroller.dir/rgbled.cpp.o"
# External object files for target rgbcontroller
rgbcontroller_EXTERNAL_OBJECTS =
rgbcontroller: CMakeFiles/rgbcontroller.dir/main.cpp.o
rgbcontroller: CMakeFiles/rgbcontroller.dir/serial.cpp.o
rgbcontroller: CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o
rgbcontroller: CMakeFiles/rgbcontroller.dir/pwm.cpp.o
rgbcontroller: CMakeFiles/rgbcontroller.dir/rgbled.cpp.o
rgbcontroller: CMakeFiles/rgbcontroller.dir/build.make
rgbcontroller: CMakeFiles/rgbcontroller.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/philipp/Programming/RGBcontroller/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Linking CXX executable rgbcontroller"
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/rgbcontroller.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
CMakeFiles/rgbcontroller.dir/build: rgbcontroller
.PHONY : CMakeFiles/rgbcontroller.dir/build
CMakeFiles/rgbcontroller.dir/requires: CMakeFiles/rgbcontroller.dir/main.cpp.o.requires
CMakeFiles/rgbcontroller.dir/requires: CMakeFiles/rgbcontroller.dir/serial.cpp.o.requires
CMakeFiles/rgbcontroller.dir/requires: CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o.requires
CMakeFiles/rgbcontroller.dir/requires: CMakeFiles/rgbcontroller.dir/pwm.cpp.o.requires
CMakeFiles/rgbcontroller.dir/requires: CMakeFiles/rgbcontroller.dir/rgbled.cpp.o.requires
.PHONY : CMakeFiles/rgbcontroller.dir/requires
CMakeFiles/rgbcontroller.dir/clean:
$(CMAKE_COMMAND) -P CMakeFiles/rgbcontroller.dir/cmake_clean.cmake
.PHONY : CMakeFiles/rgbcontroller.dir/clean
CMakeFiles/rgbcontroller.dir/depend:
cd /home/philipp/Programming/RGBcontroller && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller /home/philipp/Programming/RGBcontroller/CMakeFiles/rgbcontroller.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/rgbcontroller.dir/depend

View File

@ -0,0 +1,14 @@
file(REMOVE_RECURSE
"CMakeFiles/rgbcontroller.dir/main.cpp.o"
"CMakeFiles/rgbcontroller.dir/serial.cpp.o"
"CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o"
"CMakeFiles/rgbcontroller.dir/pwm.cpp.o"
"CMakeFiles/rgbcontroller.dir/rgbled.cpp.o"
"rgbcontroller.pdb"
"rgbcontroller"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/rgbcontroller.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()

View File

@ -0,0 +1,25 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o
/home/philipp/Programming/RGBcontroller/WirelessRelay.cpp
/home/philipp/Programming/RGBcontroller/WirelessRelay.h
/home/philipp/Programming/RGBcontroller/writepin.h
CMakeFiles/rgbcontroller.dir/main.cpp.o
/home/philipp/Programming/RGBcontroller/WirelessRelay.h
/home/philipp/Programming/RGBcontroller/eeprom.h
/home/philipp/Programming/RGBcontroller/main.cpp
/home/philipp/Programming/RGBcontroller/pwm.h
/home/philipp/Programming/RGBcontroller/rgbled.h
/home/philipp/Programming/RGBcontroller/serial.h
/home/philipp/Programming/RGBcontroller/writepin.h
CMakeFiles/rgbcontroller.dir/pwm.cpp.o
/home/philipp/Programming/RGBcontroller/pwm.cpp
/home/philipp/Programming/RGBcontroller/pwm.h
CMakeFiles/rgbcontroller.dir/rgbled.cpp.o
/home/philipp/Programming/RGBcontroller/pwm.h
/home/philipp/Programming/RGBcontroller/rgbled.cpp
/home/philipp/Programming/RGBcontroller/rgbled.h
CMakeFiles/rgbcontroller.dir/serial.cpp.o
/home/philipp/Programming/RGBcontroller/serial.cpp
/home/philipp/Programming/RGBcontroller/serial.h

View File

@ -0,0 +1,25 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o: WirelessRelay.cpp
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o: WirelessRelay.h
CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o: writepin.h
CMakeFiles/rgbcontroller.dir/main.cpp.o: WirelessRelay.h
CMakeFiles/rgbcontroller.dir/main.cpp.o: eeprom.h
CMakeFiles/rgbcontroller.dir/main.cpp.o: main.cpp
CMakeFiles/rgbcontroller.dir/main.cpp.o: pwm.h
CMakeFiles/rgbcontroller.dir/main.cpp.o: rgbled.h
CMakeFiles/rgbcontroller.dir/main.cpp.o: serial.h
CMakeFiles/rgbcontroller.dir/main.cpp.o: writepin.h
CMakeFiles/rgbcontroller.dir/pwm.cpp.o: pwm.cpp
CMakeFiles/rgbcontroller.dir/pwm.cpp.o: pwm.h
CMakeFiles/rgbcontroller.dir/rgbled.cpp.o: pwm.h
CMakeFiles/rgbcontroller.dir/rgbled.cpp.o: rgbled.cpp
CMakeFiles/rgbcontroller.dir/rgbled.cpp.o: rgbled.h
CMakeFiles/rgbcontroller.dir/serial.cpp.o: serial.cpp
CMakeFiles/rgbcontroller.dir/serial.cpp.o: serial.h

View File

@ -0,0 +1,10 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
# compile CXX with /usr/bin/avr-g++
CXX_FLAGS = -mmcu=atmega328p -c -g -Os -Wall -std=c++11 -fno-exceptions -ffunction-sections -fdata-sections
CXX_DEFINES = -DF_CPU=16000000
CXX_INCLUDES =

View File

@ -0,0 +1 @@
/usr/bin/avr-g++ -s -Os -Wl,--gc-sections -mmcu=atmega328p CMakeFiles/rgbcontroller.dir/main.cpp.o CMakeFiles/rgbcontroller.dir/serial.cpp.o CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o CMakeFiles/rgbcontroller.dir/pwm.cpp.o CMakeFiles/rgbcontroller.dir/rgbled.cpp.o -o rgbcontroller

Binary file not shown.

View File

@ -0,0 +1,7 @@
CMAKE_PROGRESS_1 = 1
CMAKE_PROGRESS_2 = 2
CMAKE_PROGRESS_3 = 3
CMAKE_PROGRESS_4 = 4
CMAKE_PROGRESS_5 = 5
CMAKE_PROGRESS_6 = 6

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -48,3 +48,8 @@ add_custom_target(download
COMMAND ${AR_AVRDUDE} -v -p ${MCU} -c ${PROGRAMMER} -P /dev/ttyUSB0 -b 57600 -D -U flash:w:${PROJECT_NAME}.hex COMMAND ${AR_AVRDUDE} -v -p ${MCU} -c ${PROGRAMMER} -P /dev/ttyUSB0 -b 57600 -D -U flash:w:${PROJECT_NAME}.hex
DEPENDS ${PROJECT_NAME} DEPENDS ${PROJECT_NAME}
) )
add_custom_target(export
COMMAND ${CMAKE_OBJCOPY} -j .text -j .data -O ihex ${PROJECT_NAME} ${PROJECT_NAME}.hex
DEPENDS ${PROJECT_NAME}
)

326
Makefile Normal file
View File

@ -0,0 +1,326 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.8
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=============================================================================
# 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/philipp/Programming/RGBcontroller
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/philipp/Programming/RGBcontroller
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
/usr/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/philipp/Programming/RGBcontroller/CMakeFiles /home/philipp/Programming/RGBcontroller/CMakeFiles/progress.marks
$(MAKE) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /home/philipp/Programming/RGBcontroller/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named export
# Build rule for target.
export: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 export
.PHONY : export
# fast build rule for target.
export/fast:
$(MAKE) -f CMakeFiles/export.dir/build.make CMakeFiles/export.dir/build
.PHONY : export/fast
#=============================================================================
# Target rules for targets named rgbcontroller
# Build rule for target.
rgbcontroller: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 rgbcontroller
.PHONY : rgbcontroller
# fast build rule for target.
rgbcontroller/fast:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/build
.PHONY : rgbcontroller/fast
#=============================================================================
# Target rules for targets named download
# Build rule for target.
download: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 download
.PHONY : download
# fast build rule for target.
download/fast:
$(MAKE) -f CMakeFiles/download.dir/build.make CMakeFiles/download.dir/build
.PHONY : download/fast
WirelessRelay.o: WirelessRelay.cpp.o
.PHONY : WirelessRelay.o
# target to build an object file
WirelessRelay.cpp.o:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.o
.PHONY : WirelessRelay.cpp.o
WirelessRelay.i: WirelessRelay.cpp.i
.PHONY : WirelessRelay.i
# target to preprocess a source file
WirelessRelay.cpp.i:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.i
.PHONY : WirelessRelay.cpp.i
WirelessRelay.s: WirelessRelay.cpp.s
.PHONY : WirelessRelay.s
# target to generate assembly for a file
WirelessRelay.cpp.s:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/WirelessRelay.cpp.s
.PHONY : WirelessRelay.cpp.s
main.o: main.cpp.o
.PHONY : main.o
# target to build an object file
main.cpp.o:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/main.cpp.o
.PHONY : main.cpp.o
main.i: main.cpp.i
.PHONY : main.i
# target to preprocess a source file
main.cpp.i:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/main.cpp.i
.PHONY : main.cpp.i
main.s: main.cpp.s
.PHONY : main.s
# target to generate assembly for a file
main.cpp.s:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/main.cpp.s
.PHONY : main.cpp.s
pwm.o: pwm.cpp.o
.PHONY : pwm.o
# target to build an object file
pwm.cpp.o:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/pwm.cpp.o
.PHONY : pwm.cpp.o
pwm.i: pwm.cpp.i
.PHONY : pwm.i
# target to preprocess a source file
pwm.cpp.i:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/pwm.cpp.i
.PHONY : pwm.cpp.i
pwm.s: pwm.cpp.s
.PHONY : pwm.s
# target to generate assembly for a file
pwm.cpp.s:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/pwm.cpp.s
.PHONY : pwm.cpp.s
rgbled.o: rgbled.cpp.o
.PHONY : rgbled.o
# target to build an object file
rgbled.cpp.o:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/rgbled.cpp.o
.PHONY : rgbled.cpp.o
rgbled.i: rgbled.cpp.i
.PHONY : rgbled.i
# target to preprocess a source file
rgbled.cpp.i:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/rgbled.cpp.i
.PHONY : rgbled.cpp.i
rgbled.s: rgbled.cpp.s
.PHONY : rgbled.s
# target to generate assembly for a file
rgbled.cpp.s:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/rgbled.cpp.s
.PHONY : rgbled.cpp.s
serial.o: serial.cpp.o
.PHONY : serial.o
# target to build an object file
serial.cpp.o:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/serial.cpp.o
.PHONY : serial.cpp.o
serial.i: serial.cpp.i
.PHONY : serial.i
# target to preprocess a source file
serial.cpp.i:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/serial.cpp.i
.PHONY : serial.cpp.i
serial.s: serial.cpp.s
.PHONY : serial.s
# target to generate assembly for a file
serial.cpp.s:
$(MAKE) -f CMakeFiles/rgbcontroller.dir/build.make CMakeFiles/rgbcontroller.dir/serial.cpp.s
.PHONY : serial.cpp.s
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... rebuild_cache"
@echo "... edit_cache"
@echo "... export"
@echo "... rgbcontroller"
@echo "... download"
@echo "... WirelessRelay.o"
@echo "... WirelessRelay.i"
@echo "... WirelessRelay.s"
@echo "... main.o"
@echo "... main.i"
@echo "... main.s"
@echo "... pwm.o"
@echo "... pwm.i"
@echo "... pwm.s"
@echo "... rgbled.o"
@echo "... rgbled.i"
@echo "... rgbled.s"
@echo "... serial.o"
@echo "... serial.i"
@echo "... serial.s"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system

44
cmake_install.cmake Normal file
View File

@ -0,0 +1,44 @@
# Install script for directory: /home/philipp/Programming/RGBcontroller
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local")
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 "0")
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/philipp/Programming/RGBcontroller/${CMAKE_INSTALL_MANIFEST}"
"${CMAKE_INSTALL_MANIFEST_CONTENT}")

View File

@ -1,8 +1,6 @@
#include <avr/io.h> #include <avr/io.h>
#include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "serial.h" #include "serial.h"
#include "writepin.h" #include "writepin.h"
#include "WirelessRelay.h" #include "WirelessRelay.h"
@ -31,7 +29,9 @@ inline static void printHelp(Serial* serial)
rgb print : Print current RGB value.\n\ rgb print : Print current RGB value.\n\
rgb set [RRR] [GGG] [BBB] : Set RGB value, pattern must be 0.\n\ rgb set [RRR] [GGG] [BBB] : Set RGB value, pattern must be 0.\n\
rgb pattern [id] : RGB pattern\n\ rgb pattern [id] : RGB pattern\n\
version : Print Version.\n\n"); rgb preset [id] : set preset color\n\
rgb fade [on/off] : turn Colorfade on or off\n\
version : Print Version.\n");
} }
void relayDispatch(WirelessRelayStore* relays, char* inBuffer, Serial* serial) void relayDispatch(WirelessRelayStore* relays, char* inBuffer, Serial* serial)
@ -47,12 +47,12 @@ void relayDispatch(WirelessRelayStore* relays, char* inBuffer, Serial* serial)
EEPROM_write_char( 0, relays->count+1 ); EEPROM_write_char( 0, relays->count+1 );
EEPROM_write_string( relays->count*2+1, (char*) &id, 2 ); EEPROM_write_string( relays->count*2+1, (char*) &id, 2 );
sprintf(buffer, "Relay saved! NUMBER: %u ID: %X\n\n", relays->count, id); sprintf(buffer, "Relay saved! NUMBER: %u ID: %X\n", relays->count, id);
serial->putString(buffer, 64); serial->putString(buffer, 64);
relays->count++; relays->count++;
} }
else serial->putString("Usage: relay add [id] [id] being a 16bit hex nummber\n\n"); else serial->putString("Usage: relay add [id] [id] being a 16bit hex nummber\n");
} }
else if( strncmp(inBuffer, "list", 4) == 0) else if( strncmp(inBuffer, "list", 4) == 0)
{ {
@ -71,7 +71,13 @@ void relayDispatch(WirelessRelayStore* relays, char* inBuffer, Serial* serial)
if (selected <= relays->count) if (selected <= relays->count)
{ {
relays->array[selected].on(); relays->array[selected].on();
char buffer[64];
sprintf(buffer, "RELAY: %u turned on\n", selected);
serial->putString(buffer, 64);
} }
else serial->putString("No sutch Relay\n");
} }
else if( strncmp(inBuffer, "off", 3) == 0 && inBuffer[3] != '\0') else if( strncmp(inBuffer, "off", 3) == 0 && inBuffer[3] != '\0')
{ {
@ -79,12 +85,17 @@ void relayDispatch(WirelessRelayStore* relays, char* inBuffer, Serial* serial)
if (selected <= relays->count) if (selected <= relays->count)
{ {
relays->array[selected].off(); relays->array[selected].off();
char buffer[64];
sprintf(buffer, "RELAY: %u turned off\n", selected);
serial->putString(buffer, 64);
} }
else serial->putString("No sutch Relay\n");
} }
else else
{ {
serial->putString(inBuffer, COMMAND_BUFFER_SIZE-5); serial->putString(inBuffer, COMMAND_BUFFER_SIZE-5);
serial->putString(" is not a valid subcommand: relay [add/list/on/off]\n\n"); serial->putString(" is not a valid subcommand: relay [add/list/on/off]\n");
} }
} }
@ -93,17 +104,17 @@ void rgbDispatch(RgbLed* rgbled, char* inBuffer, Serial* serial)
if( strncmp(inBuffer, "on", 2) == 0 ) if( strncmp(inBuffer, "on", 2) == 0 )
{ {
rgbled->on(); rgbled->on();
serial->putString("RGB lights on\n\n"); serial->putString("RGB lights on\n");
} }
else if( strncmp(inBuffer, "off", 3) == 0 ) else if( strncmp(inBuffer, "off", 3) == 0 )
{ {
rgbled->off(); rgbled->off();
serial->putString("RGB lights off\n\n"); serial->putString("RGB lights off\n");
} }
else if( strncmp(inBuffer, "print", 5) == 0 ) else if( strncmp(inBuffer, "print", 5) == 0 )
{ {
char buffer[64]; char buffer[64];
sprintf(buffer, "Current RGB values:\nR: %u G: %u B: %u\n\n", rgbled->getR(), rgbled->getG(), rgbled->getB()); sprintf(buffer, "Current RGB values:\nR: %u G: %u B: %u\n", rgbled->getR(), rgbled->getG(), rgbled->getB());
serial->putString(buffer, 64); serial->putString(buffer, 64);
} }
else if( strncmp(inBuffer, "set", 3) == 0 ) else if( strncmp(inBuffer, "set", 3) == 0 )
@ -115,22 +126,34 @@ void rgbDispatch(RgbLed* rgbled, char* inBuffer, Serial* serial)
inBuffer[7] = '\0'; inBuffer[7] = '\0';
inBuffer[11] = '\0'; inBuffer[11] = '\0';
rgbled->setSolidColor(atoi(inBuffer+4), atoi(inBuffer+8), atoi(inBuffer+12)); rgbled->setSolidColor(atoi(inBuffer+4), atoi(inBuffer+8), atoi(inBuffer+12));
serial->putString("Set RGB values\n\n"); serial->putString("Set RGB values\n");
} }
else serial->putString("Usage: rgb set [RRR] [GGG] [BBB]\n\n"); else serial->putString("Usage: rgb set [RRR] [GGG] [BBB]\n");
} }
else if( strncmp(inBuffer, "pattern", 7) == 0 ) else if( strncmp(inBuffer, "pattern", 7) == 0 )
{ {
rgbled->setPattern(atoi(inBuffer+8)); rgbled->setPattern(atoi(inBuffer+8));
serial->putString("Set Pattern\n");
} }
else if( strncmp(inBuffer, "preset", 6) == 0 ) else if( strncmp(inBuffer, "preset", 6) == 0 )
{ {
rgbled->setPreset(atoi(inBuffer+7)); rgbled->setPreset(atoi(inBuffer+7));
serial->putString("Set Preset\n");
}
else if( strncmp(inBuffer, "fade on", 7) == 0 )
{
rgbled->setFade(true);
serial->putString("Turned on Fade\n");
}
else if( strncmp(inBuffer, "fade off", 8) == 0 )
{
rgbled->setFade(false);
serial->putString("Turned off Fade\n");
} }
else else
{ {
serial->putString(inBuffer, COMMAND_BUFFER_SIZE-4); serial->putString(inBuffer, COMMAND_BUFFER_SIZE-4);
serial->putString(" is not a valid subcommand: rgb [/on/off/print/set/pattern/preset]\n\n"); serial->putString(" is not a valid subcommand: rgb [/on/off/print/set/pattern/preset]\n");
} }
} }
@ -157,7 +180,8 @@ void serialDispatch(Serial* serial , WirelessRelayStore* relays, RgbLed* rgbled)
else if(length > 4 && strncmp(buffer, "erase", 5) == 0) else if(length > 4 && strncmp(buffer, "erase", 5) == 0)
{ {
for(uint16_t i = 0; i < MAX_RELAYS*2+1; i++) EEPROM_write_char(i, 0); for(uint16_t i = 0; i < MAX_RELAYS*2+1; i++) EEPROM_write_char(i, 0);
serial->putString("EEPROM erased\n\n"); serial->putString("EEPROM erased\n");
relays->count = 0;
} }
else if(buffer[0] == '?' || ( length > 3 && strncmp(buffer, "help", 4) == 0)) else if(buffer[0] == '?' || ( length > 3 && strncmp(buffer, "help", 4) == 0))
{ {
@ -165,7 +189,7 @@ void serialDispatch(Serial* serial , WirelessRelayStore* relays, RgbLed* rgbled)
} }
else else
{ {
serial->putString("Not a valid command\n\n"); serial->putString("Not a valid command\n");
} }
} }
} }
@ -215,12 +239,16 @@ int main()
relays.count=0; relays.count=0;
restore_relays(&relays); restore_relays(&relays);
serial.putString("RGBController v0.2 starting\n\n"); serial.putString("RGBController v0.3 starting\n");
while(true) while(true)
{ {
serialDispatch(&serial, &relays, &rgbled); serialDispatch(&serial, &relays, &rgbled);
rgbled.logic(); rgbled.logic();
_delay_ms(2); _delay_ms(2);
/*
char buffer[64];
sprintf(buffer, "R: %u G: %u B: %u\n", rgbled.getR(), rgbled.getG(), rgbled.getB());
serial.putString(buffer, 64);*/
} }
return 0; //master interupt. return 0; //master interupt.

BIN
rgbcontroller Executable file

Binary file not shown.

532
rgbcontroller.hex Normal file
View File

@ -0,0 +1,532 @@
:100000000C9434000C9451000C9451000C94510049
:100010000C9451000C9451000C9451000C9451001C
:100020000C9451000C9451000C9451000C9451000C
:100030000C9451000C9451000C9451000C945100FC
:100040000C9451000C9451000C9460040C945100D9
:100050000C9451000C9451000C9451000C945100DC
:100060000C9451000C94510011241FBECFEFD8E026
:10007000DEBFCDBF16E0A0E0B1E0E0E9FBE102C0E9
:1000800005900D92A03AB107D9F727E0A0EAB6E0B3
:1000900001C01D92A432B207E1F70E94DC030C9468
:1000A000C60D0C940000F999FECF92BD81BD60BDD4
:1000B000FA9AF99A0895F999FECF92BD81BDF89AFE
:1000C00080B50895EF92FF920F931F93CF93DF9324
:1000D0008C01EB017B01E40EF51ECE15DF0539F036
:1000E0006991C8010E9453000F5F1F4FF6CFDF9147
:1000F000CF911F910F91FF90EF900895EF92FF9293
:100100000F931F93CF93DF938B01040F151FEB0108
:100110007C01E61AF70AC017D10739F0C7018C0F26
:100120009D1F0E945B008993F6CFDF91CF911F91B5
:100130000F91FF90EF9008956F927F928F929F9210
:10014000AF92BF92CF92DF92EF92FF920F931F93E5
:10015000CF93DF93CDB7DEB7C254D1090FB6F89471
:10016000DEBF0FBECDBF6C018B017A0143E050E0D2
:1001700060E071E0C8010E94910A892B09F080C0FB
:10018000F8018381882309F47BC040E150E070E0EE
:1001900060E0C80104960E94540923967FAF6EAFB9
:1001A00023976115710509F465C0860100561F4F3C
:1001B000F8015081503208F05DC09B0145E065E2D6
:1001C00070E0C601F5E05F9F800D911D11240E9433
:1001D000D006F80160816F5F90E080E00E945300DC
:1001E000F801808190E0880F991F42E050E0BE0145
:1001F0006F5B7F4F01960E94620023968FAD23971D
:100200008F9322968FAD22978F93F80180811F9252
:100210008F9384E091E09F938F939E012F5F3F4FD8
:1002200069013F932F930E94A70A40E450E0B60172
:10023000C7010E94A204F80180818F5F80830FB6FE
:10024000F894DEBF0FBECDBFCE5BDF4F0FB6F89484
:10025000DEBF0FBECDBFDF91CF911F910F91FF90F9
:10026000EF90DF90CF90BF90AF909F908F907F9056
:100270006F90089564E271E0C7010E94BE04E4CF6C
:1002800044E050E06DE571E0C8010E94910A892BBD
:10029000D1F562E671E0C7010E94BE04712C4601EF
:1002A00030EA830E911C85E0682E91E1A92E91E041
:1002B000B92E8E010F5F1F4FF40180817816F0F484
:1002C000C601769C800D911D11240E94CC069F933F
:1002D0008F931F927F92BF92AF921F930F930E94B2
:1002E000A70A40E450E0B801C7010E94A204739439
:1002F0000FB6F894DEBF0FBECDBFDECF6AE0C701F8
:100300000E949B04A1CF42E050E066E872E0C80181
:100310000E94910A892BB1F5F8018281882391F11D
:10032000C80102960E946A0AF601E056FF4F20813A
:10033000281728F18C011127960145E0849F200D94
:10034000311D1124C9010E9492061F930F938BE661
:1003500091E09F938F938E010F5F1F4F1F930F9319
:100360000E94A70A40E450E0B801C7010E94A2041D
:100370000F900F900F900F900F900F9065CF60E847
:1003800071E07ACF43E050E06EE972E0C8010E946C
:10039000910A892BF1F4F80183818823D1F0C801F7
:1003A00003960E946A0AF601E056FF4F2081281743
:1003B00030F38C011127960145E0849F200D311DFB
:1003C0001124C9010E94AF061F930F9380E991E0A9
:1003D000C0CF4BE150E0B801C7010E94A20466EA19
:1003E00071E04ACFAF92BF92CF92DF92EF92FF922D
:1003F0000F931F93CF93DF93CDB7DEB7C054D109CE
:100400000FB6F894DEBF0FBECDBF6C018B017A0131
:1004100042E050E066E872E0C8010E94910A892B30
:1004200049F4C6010E945B076BED71E0C7010E94B1
:10043000BE043FC043E050E06EE972E0C8010E9494
:10044000910A892B31F4C6010E9486076AEE71E099
:10045000EDCF45E050E06AEF71E0C8010E94910ADB
:10046000892BC9F5C6010E944909082FC6010E94BF
:100470004C09182FC6010E9447091F920F931F9223
:100480001F931F928F9380E092E09F938F938E0132
:100490000F5F1F4F1F930F930E94A70A40E450E085
:1004A000B801C7010E94A2040FB6F894DEBF0FBEC8
:1004B000CDBFC05CDF4F0FB6F894DEBF0FBECDBF1F
:1004C000DF91CF911F910F91FF90EF90DF90CF9030
:1004D000BF90AF90089543E050E061E772E0C8013B
:1004E0000E94910A892B41F5F80180E091919923AE
:1004F00021F08C3139F08F5FF9CF67E372E08F30F4
:1005000008F494CFF80117821386C8010C960E9454
:100510006A0AA82EC80108960E946A0AB82EC80165
:1005200004960E946A0A2A2D4B2D682FC6010E944C
:10053000930767E272E07ACF47E050E069E572E046
:10054000C8010E94910A892B59F4C80108960E949B
:100550006A0A682FC6010E94680761E672E066CFEA
:1005600046E050E06EE672E0C8010E94910A892BD5
:1005700059F4C80107960E946A0A682FC6010E94B2
:10058000A70765E772E052CF47E050E061E872E00C
:10059000C8010E94910A892B39F461E0C6010E94CA
:1005A000F90769E872E042CF48E050E069E972E09B
:1005B000C8010E94910A892B39F460E0C6010E94AB
:1005C000F90762EA72E032CF4CE150E0B801C701AE
:1005D0000E94A20463EB72E029CFAF92BF92CF9248
:1005E000DF92EF92FF920F931F93CF93DF93CDB7DC
:1005F000DEB7A0970FB6F894DEBF0FBECDBF8C015B
:100600006B015A010E94E204882301F140E250E0AC
:10061000BE016F5F7F4FC8010E9424057C01892BBA
:10062000A9F085E0E816F10414F145E050E067EF29
:1006300072E0CE0101960E94910A892BE1F4A80193
:10064000BE01695F7F4FC6010E949C00A0960FB655
:10065000F894DEBF0FBECDBFDF91CF911F910F91F8
:10066000FF90EF90DF90CF90BF90AF90089583E020
:10067000E816F104BCF143E050E06DEF72E0CE010A
:1006800001960E94910A892B41F4A801BE016B5F7B
:100690007F4FC5010E94F201D9CF85E0E816F10431
:1006A0000CF145E050E061E073E0CE0101960E945C
:1006B000910A892BB9F4F12CE12C60E0C7010E946A
:1006C00053008FEFE81AF80A81E4E816F104A9F75D
:1006D00067E073E0C8010E94BE04F601E056FF4FD8
:1006E0001082B4CF89818F3371F084E0E816F10471
:1006F00084F044E050E066E173E0CE0101960E9490
:10070000910A892B31F46BE173E0C8010E94BE04A9
:100710009DCF6DE676E0F9CFCF92DF92EF92FF9218
:100720000F931F93CF93DF9300D0CDB7DEB76C014B
:1007300090E080E00E945B00760190EAE90EF11CF7
:10074000F7018083813268F010E000E060E0C801CA
:100750000E9453000F5F1F4F01341105B9F7F701D5
:10076000108210E005E0F70180818117D0F0812F21
:1007700090E0880F991F42E050E0BE016F5F7F4F0D
:1007800001960E947E0029813A8145E065E270E091
:10079000C601109F800D911D11240E94D0061F5F7D
:1007A000E2CF0F900F90DF91CF911F910F91FF90AB
:1007B000EF90DF90CF900895CF93DF93CDB7DEB762
:1007C000C15CD1090FB6F894DEBF0FBECDBF82E287
:1007D00084B988E68AB915B87894CE0181549F4FC0
:1007E0000E9486041F92812CAA24A394CC24C39433
:1007F00083E0E82E08E410E027E430E045E450E030
:1008000064E470E0CE0189549F4F0E94D8061F9285
:10081000C12C95E0E92E04EB10E023EB30E041EB36
:1008200050E060EB70E0CE0181559F4F0E94D806EA
:10083000CE0189549F4F0E941D07CE0181559F4FC5
:100840000E941D07AE0141555F4FBE0169547F4FA5
:10085000CE018E559F4F0E944A078E010F5F1F4F9A
:100860006E0181EAC80ED11C0F900F907801C8016B
:100870000E94D7060B5F1F4F0C151D05C1F7F8012D
:100880001082C7010E948C0362E876E0CE01815499
:100890009F4F0E94BE04AE014E555F4FB701CE017F
:1008A00081549F4F0E94ED02CE018E559F4F0E94B2
:1008B000CD088FE39FE10197F1F700C00000EBCF77
:1008C0001F920F920FB60F9211248F939F93EF9365
:1008D000FF938091C600E091A006F091A106EF770A
:1008E000FF27EE55F94F80838091A0069091A106D5
:1008F00001969093A1068093A006FF91EF919F919E
:100900008F910F900FBE0F901F9018952AE0FC0159
:100910002083128211821092C50089E18093C40065
:1009200086E08093C200E1ECF0E088E18083808182
:100930008068808308958091C00085FFFCCF60931C
:10094000C6000895EF92FF920F931F93CF93DF930A
:100950007C01EB018B01040F151FC017D10739F083
:100960006991662321F0C7010E949B04F6CFDF91B5
:10097000CF911F910F91FF90EF900895EF92FF920A
:100980000F931F93CF93DF937C01EB018B01FE014B
:1009900001900020E9F73197EC1BFD0BC8018C1B7F
:1009A0009D0B8E179F0738F4F80161918F01C701E5
:1009B0000E949B04ECCFDF91CF911F910F91FF908C
:1009C000EF9008954091A0065091A10621E0FC010E
:1009D000818192818417950708F020E0822F089585
:1009E000FC01128211821092A1061092A006E2EA86
:1009F000F6E080E2819397E0E232F907D9F70895B3
:100A0000CF93DF93EC0189819A8181159F4718F07C
:100A1000CE010E94F00489819A812091A006309134
:100A2000A1068217930770F49C012F5F3F4F3A8312
:100A300029838F779927FC01EE55F94F8081DF914B
:100A4000CF91089580E0FBCF8F929F92AF92BF929B
:100A5000CF92DF92EF92FF920F931F93CF93DF938A
:100A60008C016B01FC0181819281D0E0C0E020917A
:100A7000A0063091A106281B390B2C173D0788F0E2
:100A8000C138D10571F0FC01EC0FFD1FEF77FF2796
:100A9000EE55F94F3081F8012081321711F021967F
:100AA000E6CF2091A0063091A106281B390BC21772
:100AB000D30710F4209739F481159F4708F043C0FD
:100AC000D0E0C0E020C04601F12CE12C5A0121E029
:100AD000A21AB108EA14FB0464F4C8010E940005DC
:100AE000F40181934F01FFEFEF1AFF0ACE15DF05E6
:100AF00089F7EC0CFD1CF7011182F80181819281CC
:100B0000019692838183F80181819281FC01EC0F2F
:100B1000FD1FEF77FF27EE55F94F3081F801208157
:100B2000321303C0019692838183CE01DF91CF916E
:100B30001F910F91FF90EF90DF90CF90BF90AF90FB
:100B40009F908F900895C8010E94F004B9CFFC01D6
:100B5000A281B3812481613009F051C06C9181E0A0
:100B600090E0AC0101C0440F2A95EAF7342F30958C
:100B700036233C932C91242B2C93A7EEB3E01197B2
:100B8000F1F700C00000A281B3814C912481BC0127
:100B900002C0660F771F2A95E2F79B012095242358
:100BA0002C93A7EBBBE01197F1F700C00000A281E6
:100BB000B3812C913481AC0101C0440F3A95EAF71E
:100BC000342F309532233C932C91242B2C93A7EE79
:100BD000B3E01197F1F700C00000A281B3812C911E
:100BE000348101C0880F3A95EAF7809582238C936F
:100BF00087EB9BE00197F1F700C0000008956C912E
:100C000081E090E0AC0101C0440F2A95EAF7342F4F
:100C1000309536233C932C91242B2C93A7EBBBE0EF
:100C20001197F1F700C00000A281B3814C9124819B
:100C3000BC0102C0660F771F2A95E2F79B01209541
:100C400024232C93A7EEB3E01197F1F7AECFEF92E8
:100C5000FF920F931F93CF93DF93EC01EA81FB8107
:100C600020813C8181E090E0AC0101C0440F3A95C5
:100C7000EAF7342F3095322330832081242B2083D0
:100C8000E7EEF3E03197F1F700C00000EA81FB8165
:100C900020813C8101C0880F3A95EAF78095822334
:100CA000808387EB9BE00197F1F700C000000FE025
:100CB00010E0EE24E394F12C28813981C701002E45
:100CC00002C0880F991F0A94E2F78223932361E000
:100CD000892B09F460E0CE010E94A705015011099B
:100CE0000530110549F7DF91CF911F910F91FF90CA
:100CF000EF900895DC011296ED91FC9113972081FD
:100D000014963C9181E090E001C0880F3A95EAF793
:100D100080958223808387E199E70197F1F700C0EE
:100D2000000008950F931F93CF93DF93EC010AE027
:100D300010E0CE010E94270661E0CE010E94A705C7
:100D400060E0CE010E94A705CE010E947A06015004
:100D5000110979F7DF91CF911F910F9108950F93AA
:100D60001F93CF93DF93EC010AE010E0CE010E94C5
:100D7000270660E0CE010E94A70561E0CE010E9437
:100D8000A705CE010E947A060150110979F7DF917B
:100D9000CF911F910F910895FC0180819181089559
:100DA000FC01738362833183208344830895089513
:100DB000AF92CF92EF920F931F93CF93DF93CDB764
:100DC000DEB7FC0171836083338322831583048340
:100DD000C682A782DB011C92DA011C9286818823DD
:100DE00031F020813181D9018C9180688C93878189
:100DF000882331F020813181D9018C9180628C93DC
:100E000020813181D9018C9183608C93DA018C919E
:100E1000BE2DB770EB2EE82ADA01EC92A281B381E5
:100E20001C920480F581E02D1082DF91CF911F91FB
:100E30000F91EF90CF90AF900895DC01ED91FC9170
:100E40008081837080830895CF93DF93EC010E94AB
:100E50001D078E81882329F0E881F98180818068CF
:100E600080838F81882329F0E881F98180818062E5
:100E70008083DF91CF910895DC011296ED91FC9172
:100E8000139760830895DC011496ED91FC911597FA
:100E900060830895FC0171836083538342831482CD
:100EA00016821582178210861186128681E083874A
:100EB00087E084870895CF93DF93EC01888199813F
:100EC0000E9424078A819B81DF91CF910C94240793
:100ED000CF93DF93EC016C836623A9F060E08881F7
:100EE00099810E94430760E0888199810E943C07B4
:100EF00060E08A819B810E944307CE010E945B07CC
:100F00001F821E821D82DF91CF910895CF93DF93C0
:100F1000EC01888199810E941D078A819B81DF9164
:100F2000CF910C941D07FC011482608741872287B2
:100F3000338531110AC0620F7727771F460F572F6D
:100F4000511D452B11F40C9486070C945B076150DE
:100F5000603108F04BC0E62FF0E0EF54F84F0C94EE
:100F60004E09C107C607CA07CE07D207D507D8075B
:100F7000DB07DE07DB07E207E607EA07EE07F20713
:100F8000F40720E54FEF60EA0C94930724E14FEF5C
:100F900068ECFACF2CE84FEF64EBF6CF20E040E0AE
:100FA0006FEFF2CF2AE04CE3FBCF2EE14EE1F8CF1A
:100FB00020E04BE9F5CF20E04FEF0AC02AE04FEFE9
:100FC00067E3E2CF27E040E568E0DECF2FEF40E0C7
:100FD00060E0DACF2FEF4FEF62E3D6CF26E940E5AE
:100FE0006AE0D2CF2CEDE8CF20E0D1CF24E14DE272
:100FF000D7CFFC0163870895CF93DF93EC018C81F9
:10100000813041F58D819E812F8121111CC0019677
:101010009E838D836D817E816F3F7105B1F481E088
:101020008F83888199810E9443076D8160958881B3
:1010300099810E943C076D8160548A819B81DF9178
:10104000CF910C9443070197E3CF6115710549F7E0
:101050001F82E7CF823021F58D819E812F81211162
:1010600018C001969E838D836D817E816E3F21E045
:10107000720789F481E08F837695679588819981DD
:101080000E94430760E0888199810E943C0760E0EC
:10109000D4CF0197E7CF6115710571F71F82ECCFAF
:1010A000833069F58D819E812F81211121C00196A8
:1010B0009E838D836D817E8161158FEF7807D1F4DA
:1010C00081E08F8336E0769567953A95E1F78881E0
:1010D00099810E9443076E81888199810E943C0713
:1010E0006D817E8143E0769567954A95E1F7A5CFBE
:1010F0000197DECF6115710529F71F82E3CF843098
:10110000E9F56D817E8188819981611520E2720700
:10111000C0F526E0769567952A95E1F70E9443078A
:101120006D817E81613084E0780750F0705286E0F6
:10113000769567958A95E1F7888199810E943C07A9
:101140008D819E81813020E2920730F0692F669573
:101150008A819B810E9443078D819E818A3F2FEF68
:101160009207A8F401969E838D838FEF90EE20E086
:10117000815090402040E1F700C00000DF91CF9106
:101180000895672F6695669566956058C7CF6CE899
:101190008A819B810E944307E8CFCF93DF93EC01C4
:1011A0000E94FC078C8181116FC08B85882309F414
:1011B0005FC08D819E8101969E838D839C8501C039
:1011C000880F9A95EAF781115FC098B588858917CD
:1011D000B1F068B528B5281B330B81E090E01216FA
:1011E000130614F090E080E0232F221F2227221FF5
:1011F000821B9109681B888199810E94430797B5DA
:1012000089858917B1F067B527B5281B330B81E0B5
:1012100090E01216130614F090E080E0232F221FB6
:101220002227221F821B9109681B888199810E94B5
:101230003C079091B4008A85891731F16091B40020
:101240002091B400281B330B81E090E012161306A6
:1012500014F090E080E0232F221F2227221F821B00
:101260009109681B8A819B81DF91CF910C94430780
:101270006985888199810E943C0768858881998168
:101280000E9443076A85EECFDF91CF91089588B51C
:1012900008958091B400089587B50895EE0FFF1F5B
:1012A0000590F491E02D0994A0E0B0E0EAE5F9E0C2
:1012B0000C94810D5C016B017A016115710519F0C7
:1012C000FB0191838083E114F10429F0C7010297A7
:1012D000839708F0E5C0E5012196F5011081812F83
:1012E00090E00E94880A892B11F05E01F4CF1D3234
:1012F00029F42196F501118101E007C01B3221F488
:10130000E5012296F501118100E0E114F10409F1F3
:10131000F0E1EF16F10429F43FC010E3E114F10409
:1013200021F128E0E216F10401F154F4E2E0EE16B6
:10133000F10421F5812C912CA12CB0E4BB2E3EC0F0
:10134000FAE0EF16F10439F020E1E216F104B1F40D
:1013500030C0103319F1FAE0EF2EF12CACEC8A2EEC
:10136000982CA82CACE0BA2E29C078E0E72EF12CFE
:10137000812C912CA12CE0E1BE2E20C060E070E019
:1013800080E090E897010F2C000C440B550B0E9455
:10139000530D49015A0112C0103359F488818F7DD1
:1013A000883509F0BACF19812296026080E1E82ED3
:1013B000F12C812C912CA12C68E0B62E40E060E04D
:1013C00070E0CB0127010F2C000C66087708FE01A6
:1013D00050ED352E310E29E0231570F42FEB210F3F
:1013E0002A3118F439EC332E06C02FE9210F2A31A7
:1013F00018F529EA322E310E232D30E02E153F0547
:10140000DCF447FD16C086169706A806B90670F0EC
:10141000A30192010E94430D630D711D811D911D59
:1014200061307105810520E8920710F04FEF01C08F
:1014300041E021961081CBCF202F2170C114D1041F
:1014400071F0442329F02197F601D183C08307C0AE
:1014500001FF19C02297F601D183C08314C047FF52
:1014600012C0222329F060E070E080E090E804C020
:101470006FEF7FEF8FEF9FE722E230E0309323079B
:101480002093220709C0222381F0909580957095C2
:1014900061957F4F8F4F9F4F462F372F282F12C0B8
:1014A00040E030E020E090E00DC097FFF5CF82E211
:1014B00090E090932307809322076FEF7FEF8FEFE9
:1014C0009FE7EACF642F732F822FCDB7DEB7E1E11C
:1014D0000C949D0DFC0188279927E89421912032D6
:1014E000E9F3293010F02E30C8F32B3241F02D32C1
:1014F00039F4689404C00E949F0A820F911D2191C3
:1015000020532A30C0F31EF4909581959F4F089583
:1015100091110C949C0C803219F089508550C8F7B9
:101520000895FB01DC014150504030F08D91019055
:10153000801919F40020B9F7881B990B08957AE0F7
:10154000979F902D879F802D910D11240895AEE0D7
:10155000B0E0EDEAFAE00C948E0D0D891E8986E06C
:101560008C831A8309838FEF9FE79E838D83AE015F
:10157000475E5F4F6F89788DCE0101960E94C90A40
:10158000EF81F885E00FF11F10822E96E4E00C94B5
:10159000AA0DACE0B0E0EFECFAE00C94800D6C0129
:1015A0007B018A01FC0117821682838181FFBEC103
:1015B000CE0101964C01F6019381F70193FD8591CF
:1015C00093FF81917F01882309F4ACC1853239F4FE
:1015D00093FD859193FF81917F01853229F4B601B6
:1015E00090E00E94B50CE7CF512C312C20E0203246
:1015F000A0F48B3269F030F4803259F0833269F410
:1016000020612CC08D3239F0803339F4216026C03E
:101610002260246023C0286021C027FD27C030ED50
:10162000380F3A3078F426FF06C0FAE05F9E300D9E
:101630001124532E13C08AE0389E300D1124332E0E
:1016400020620CC08E3221F426FD6CC1206406C0DD
:101650008C3611F4206802C0883641F4F70193FDFE
:10166000859193FF81917F018111C1CF982F9F7D3B
:101670009554933028F40C5F1F4F9FE399830DC05E
:10168000833631F0833771F0833509F05BC022C0B7
:10169000F801808189830E5F1F4F44244394512CAD
:1016A000540115C03801F2E06F0E711CF801A080E2
:1016B000B18026FF03C0652D70E002C06FEF7FEFA1
:1016C000C5012C870E94AA0C2C0183012C852F7741
:1016D000222E17C03801F2E06F0E711CF801A080B5
:1016E000B18026FF03C0652D70E002C06FEF7FEF71
:1016F000C5012C870E949F0C2C012C852068222E6E
:10170000830123FC1BC0832D90E048165906B0F4DA
:10171000B60180E290E00E94B50C3A94F4CFF50156
:1017200027FC859127FE81915F01B60190E00E9420
:10173000B50C31103A94F1E04F1A5108411451049C
:1017400071F7E6C0843611F0893639F5F80127FFC4
:1017500007C060817181828193810C5F1F4F08C037
:1017600060817181072E000C880B990B0E5F1F4F53
:101770002F76722E97FF09C0909580957095619590
:101780007F4F8F4F9F4F2068722E2AE030E0A401D8
:101790000E94E50CA82EA81844C0853729F42F7E96
:1017A000B22E2AE030E025C0F22FF97FBF2E8F360F
:1017B000C1F018F4883579F0B5C0803719F0883752
:1017C00021F0B0C02F2F2061B22EB4FE0DC08B2DA2
:1017D0008460B82E09C024FF0AC09F2F9660B92EDE
:1017E00006C028E030E005C020E130E002C020E182
:1017F00032E0F801B7FE07C0608171818281938178
:101800000C5F1F4F06C06081718180E090E00E5F29
:101810001F4FA4010E94E50CA82EA818FB2DFF77EE
:101820007F2E76FE0BC0372D3E7FA51450F474FE3C
:101830000AC072FC08C0372D3E7E05C0BA2C372D79
:1018400003C0BA2C01C0B52C34FF0DC0FE01EA0D57
:10185000F11D8081803311F4397E09C032FF06C04A
:10186000B394B39404C0832F867809F0B39433FD06
:1018700013C030FF06C0B31498F43A0C532C5B1815
:1018800010C0B31470F4B60180E290E03C870E946F
:10189000B50CB3943C85F5CFB31418F43B1802C0D3
:1018A0005A2C312C34FF12C0B60180E390E03C8703
:1018B0000E94B50C3C8532FF17C031FD03C088E79C
:1018C00090E002C088E590E0B6010CC0832F8678D6
:1018D00059F031FF02C08BE201C080E237FD8DE29A
:1018E000B60190E00E94B50CA51438F4B60180E36F
:1018F00090E00E94B50C5A94F7CFAA94F401EA0D37
:10190000F11D8081B60190E00E94B50CA110F5CFC9
:10191000332009F450CEB60180E290E00E94B50C6D
:101920003A94F6CFF6018681978102C08FEF9FEF40
:101930002C96E2E10C949C0D992788270895FC01D0
:101940000590615070400110D8F7809590958E0FEA
:101950009F1F0895FC016150704001900110D8F75D
:10196000809590958E0F9F1F08950F931F93CF938F
:10197000DF93182F092FEB018B8181FD03C08FEFBF
:101980009FEF1EC082FF0FC02E813F818C819D8101
:101990002817390774F4E881F981CF0101969983FA
:1019A0008883108306C0E885F985812F0995892BE6
:1019B00031F78E819F8101969F838E83812F902F97
:1019C000DF91CF911F910F910895FA01AA27283036
:1019D00051F1203181F1E8946F936E7F6E5F7F4FFC
:1019E0008F4F9F4FAF4FB1E03ED0B4E03CD0670F78
:1019F000781F891F9A1FA11D680F791F8A1F911DCB
:101A0000A11D6A0F711D811D911DA11D20D009F41A
:101A100068943F912AE0269F11243019305D31935C
:101A2000DEF6CF010895462F4770405D4193B3E045
:101A30000FD0C9F7F6CF462F4F70405D4A3318F0EC
:101A4000495D31FD4052419302D0A9F7EACFB4E09D
:101A5000A6959795879577956795BA95C9F7009755
:101A60006105710508959B01AC010A2E06945795F6
:101A7000479537952795BA95C9F7620F731F841F4D
:101A8000951FA01D0895DB018F939F930E94750DF4
:101A9000BF91AF91A29F800D911DA39F900DB29F0A
:101AA000900D11240895A1E21A2EAA1BBB1BFD0163
:101AB0000DC0AA1FBB1FEE1FFF1FA217B307E4072D
:101AC000F50720F0A21BB30BE40BF50B661F771F85
:101AD000881F991F1A9469F7609570958095909565
:101AE0009B01AC01BD01CF0108950E94B70DA59FD8
:101AF000900DB49F900DA49F800D911D1124089509
:101B00002F923F924F925F926F927F928F929F920D
:101B1000AF92BF92CF92DF92EF92FF920F931F93FB
:101B2000CF93DF93CDB7DEB7CA1BDB0B0FB6F894AC
:101B3000DEBF0FBECDBF09942A88398848885F84EC
:101B40006E847D848C849B84AA84B984C884DF805D
:101B5000EE80FD800C811B81AA81B981CE0FD11D41
:101B60000FB6F894DEBF0FBECDBFED010895A29F62
:101B7000B001B39FC001A39F700D811D1124911D61
:101B8000B29F700D811D1124911D0895F894FFCF0F
:101B90006164640052656C617920736176656421CB
:101BA000204E554D4245523A2025752049443A2051
:101BB00025580A0055736167653A2072656C617932
:101BC00020616464205B69645D202020205B69647F
:101BD0005D206265696E672061203136626974201C
:101BE000686578206E756D6D6265720A006C697348
:101BF000740052656C6179733A0A0052454C415940
:101C00003A202575207475726E6564206F6E0A0027
:101C10004E6F2073757463682052656C61790A0099
:101C200052454C41593A202575207475726E656491
:101C3000206F66660A00206973206E6F7420612031
:101C400076616C696420737562636F6D6D616E643B
:101C50003A2072656C6179205B6164642F6C6973F2
:101C6000742F6F6E2F6F66665D0A00524742206CBC
:101C70006967687473206F6E0A00524742206C696E
:101C800067687473206F66660A007072696E74000C
:101C900043757272656E74205247422076616C758E
:101CA00065733A0A523A20257520473A2025752057
:101CB000423A2025750A0053657420524742207627
:101CC000616C7565730A0055736167653A207267C8
:101CD0006220736574205B5252525D205B47474718
:101CE0005D205B4242425D0A007061747465726EF1
:101CF00000536574205061747465726E0A007072CE
:101D00006573657400536574205072657365740A59
:101D10000066616465206F6E005475726E656420A4
:101D20006F6E20466164650A0066616465206F66B7
:101D300066005475726E6564206F66662046616445
:101D4000650A00206973206E6F7420612076616CD3
:101D5000696420737562636F6D6D616E643A2072A1
:101D60006762205B2F6F6E2F6F66662F7072696ED1
:101D7000742F7365742F7061747465726E2F707236
:101D8000657365745D0A0072656C617900726762E3
:101D900000657261736500454550524F4D20657274
:101DA000617365640A0068656C7000417661696CF6
:101DB00061626C6520436F6D6D616E64733A200AD9
:101DC0002020202020202020202020202020202013
:101DD00068656C70202020202020202020202020DA
:101DE00020202020202020202020203A202053685E
:101DF0006F7720746869732070726F6D7074200A39
:101E000020202020202020202020202020202020D2
:101E100072656C617920616464205B69645D202077
:101E200020202020202020202020203A2020416433
:101E30006420576972656C6573732052656C6179B3
:101E40000A202020202020202020202020202020A8
:101E50002072656C6179206C6973742020202020C9
:101E60002020202020202020202020203A20205028
:101E700072696E74206C697374206F66207361766A
:101E8000656420576972656C6573732052656C6177
:101E90007973200A202020202020202020202020AC
:101EA0002020202072656C6179205B6F6E2F6F6639
:101EB000665D205B6E6E5D20202020202020203A71
:101EC00020205475726E206F6E2F6F6666206E74C0
:101ED000682072656C61790A202020202020202053
:101EE0002020202020202020657261736520202082
:101EF00020202020202020202020202020202020E2
:101F00002020203A20204572617365206570707230
:101F10006F6D0A202020202020202020202020203B
:101F2000202020726762205B6F6E2F6F66665D20D7
:101F300020202020202020202020202020203A2087
:101F4000205475726E206F6E2F6F66662052474266
:101F5000206C6564732061742063757272656E74A1
:101F60002076616C75652E0A2020202020202020FC
:101F70002020202020202020726762207072696E4D
:101F800074202020202020202020202020202020FD
:101F90002020203A20205072696E7420637572727E
:101FA000656E74205247422076616C75652E0A205A
:101FB00020202020202020202020202020202072CF
:101FC000676220736574205B5252525D205B474705
:101FD000475D205B4242425D20203A2020536574D9
:101FE000205247422076616C75652C2070617474B4
:101FF00065726E206D75737420626520302E0A2024
:10200000202020202020202020202020202020727E
:102010006762207061747465726E205B69645D2014
:10202000202020202020202020203A20205247421B
:10203000207061747465726E0A2020202020202098
:1020400020202020202020202072676220707265CE
:10205000736574205B69645D20202020202020208F
:10206000202020203A2020736574207072657365EB
:102070007420636F6C6F720A2020202020202020A3
:102080002020202020202020726762206661646565
:10209000205B6F6E2F6F66665D2020202020202041
:1020A0002020203A20207475726E20436F6C6F726E
:1020B00066616465206F6E206F72206F66660A200D
:1020C00020202020202020202020202020202076BA
:1020D000657273696F6E2020202020202020202030
:1020E000202020202020202020203A20205072690B
:1020F0006E742056657273696F6E2E0A004E6F748F
:1021000020612076616C696420636F6D6D616E641F
:102110000A00524742436F6E74726F6C6C65722096
:1021200076302E33207374617274696E670A000012
:00000001FF

View File

@ -5,10 +5,10 @@ RgbLed::RgbLed( Pwm8b* pwmA, Pwm8b* pwmB ): _pwmA(pwmA), _pwmB(pwmB) {}
void RgbLed::setSolidColor( const uint8_t r, const uint8_t g, const uint8_t b) void RgbLed::setSolidColor( const uint8_t r, const uint8_t g, const uint8_t b)
{ {
_pattern=0; _pattern=0;
_pwmA->setDutyA(g); _targetR = r;
_pwmA->setDutyB(r); _targetG = g;
_pwmB->setDutyB(b); _targetB = b;
r+b+g == 0 ? off() : on(); (!_fade && r+b+g == 0) ? off() : on();
} }
void RgbLed::setPreset( const uint8_t preset) void RgbLed::setPreset( const uint8_t preset)
@ -79,6 +79,9 @@ void RgbLed::setPattern(const uint8_t id)
_pattern=id; _pattern=id;
if( id != 0 ) if( id != 0 )
{ {
_pwmA->setDutyB(0);
_pwmA->setDutyA(0);
_pwmB->setDutyB(0);
on(); on();
_stroke = false; _stroke = false;
_counter = 0; _counter = 0;
@ -97,6 +100,11 @@ void RgbLed::off()
_pwmB->off(); _pwmB->off();
} }
void RgbLed::setFade(bool fade)
{
_fade=fade;
}
void RgbLed::patternStep() void RgbLed::patternStep()
{ {
if(_pattern == 1) if(_pattern == 1)
@ -123,28 +131,65 @@ void RgbLed::patternStep()
{ {
if(!_stroke)_counter++; if(!_stroke)_counter++;
else _counter --; else _counter --;
if(_counter == 255 << 8) _stroke = true; if(_counter == (uint8_t) 255 << 8) _stroke = true;
else if(_counter == 0) _stroke = false; else if(_counter == 0) _stroke = false;
_pwmA->setDutyB(_counter >> 6); _pwmA->setDutyB(_counter >> 6);
_pwmA->setDutyA(_counter >> 8); _pwmA->setDutyA(_counter >> 8);
_pwmB->setDutyB(_counter >> 3); _pwmB->setDutyB(_counter >> 3);
} }
else if(_pattern == 4)
{
( _counter < 8192 ) ? _pwmA->setDutyB(_counter >> 6) : _pwmA->setDutyB( 128 + (_counter >> 11));
if( _counter > 1024 ) ( 8192 < _counter < 16384 ) ? _pwmA->setDutyA(_counter-8192 >> 6) : _pwmA->setDutyA( 128 + (_counter >> 9 ));
if( _counter > 8192 ) _pwmB->setDutyB(_counter >> 9);
if(_counter<65530) _counter++;
else _pwmB->setDutyB(140);
_delay_ms(18); //honey dose this make me look slow?
}
} }
void RgbLed::logic() void RgbLed::logic()
{ {
patternStep(); patternStep();
if(_pattern == 0 && _fade)
{
_counter++;
if( uint8_t(_counter << _fadeSpeed) == 0)
{
if( getR() != _targetR)
{
_pwmA->setDutyB(getR() - sgn(getR() - _targetR));
}
if( getG() != _targetG)
{
_pwmA->setDutyA(getG() - sgn(getG() - _targetG));
}
if( getB() != _targetB)
{
_pwmB->setDutyB(getB() - sgn(getB() - _targetB));
}
}
}
else if(_pattern == 0)
{
_pwmA->setDutyA(_targetG);
_pwmA->setDutyB(_targetR);
_pwmB->setDutyB(_targetB);
}
} }
uint8_t RgbLed::getR() uint8_t RgbLed::getR()
{ {
return OCR0A; return OCR0B;
} }
uint8_t RgbLed::getB() uint8_t RgbLed::getB()
{ {
return OCR0B; return OCR2B;
} }
uint8_t RgbLed::getG() uint8_t RgbLed::getG()
{ {
return OCR2B; return OCR0A;
} }

View File

@ -1,3 +1,4 @@
#include <util/delay.h>
#include "pwm.h" #include "pwm.h"
class RgbLed class RgbLed
@ -11,6 +12,11 @@ private:
uint16_t _counter = 0; uint16_t _counter = 0;
bool _stroke = false; bool _stroke = false;
uint8_t _targetR = 0;
uint8_t _targetG = 0;
uint8_t _targetB = 0;
bool _fade = true;
uint8_t _fadeSpeed = 7;
void patternStep(); void patternStep();
@ -24,9 +30,16 @@ public:
void on(); void on();
void off(); void off();
void setFade(bool fade = true);
void logic(); void logic();
uint8_t getR(); uint8_t getR();
uint8_t getB(); uint8_t getB();
uint8_t getG(); uint8_t getG();
}; };
template <typename T> T sgn(T val)
{
return (T(0) < val) - (val < T(0));
}