From f2eba4267c595d6f74e576c9f2319eda38346658 Mon Sep 17 00:00:00 2001 From: arphaman Date: Fri, 12 Jul 2013 16:22:17 +0100 Subject: getting started --- .gitignore | 25 ++++++++++++++++++ CMakeLists.txt | 42 +++++++++++++++++++++++++++++ LICENSE.TXT | 63 ++++++++++++++++++++++++++++++++++++++++++++ README.txt | 5 ++++ include/CMakeLists.txt | 1 + include/Core/Core.h | 0 lib/CMakeLists.txt | 4 +++ lib/Core/CMakeLists.txt | 2 ++ lib/Core/Core.cpp | 0 lib/IO/CMakeLists.txt | 1 + lib/Libflang.cpp | 0 lib/Numerical/CMakeLists.txt | 1 + lib/Strings/CMakeLists.txt | 1 + 13 files changed, 145 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 LICENSE.TXT create mode 100644 README.txt create mode 100644 include/CMakeLists.txt create mode 100644 include/Core/Core.h create mode 100644 lib/CMakeLists.txt create mode 100644 lib/Core/CMakeLists.txt create mode 100644 lib/Core/Core.cpp create mode 100644 lib/IO/CMakeLists.txt create mode 100644 lib/Libflang.cpp create mode 100644 lib/Numerical/CMakeLists.txt create mode 100644 lib/Strings/CMakeLists.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ddd6638 --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +#==============================================================================# +# This file specifies intentionally untracked files that git should ignore. +# See: http://www.kernel.org/pub/software/scm/git/docs/gitignore.html +# +# This file is intentionally different from the output of `git svn show-ignore`, +# as most of those are useless. +#==============================================================================# + +#==============================================================================# +# File extensions to be ignored anywhere in the tree. +#==============================================================================# +# Temp files created by most text editors. +*~ +# Merge files created by git. +*.orig +# Byte compiled python modules. +*.pyc +# vim swap files +.*.swp + +#==============================================================================# +# Explicit files to ignore (only matches one). +#==============================================================================# +cscope.files +cscope.out diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..2770e61 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,42 @@ +project(Libflang) +cmake_minimum_required(VERSION 2.8) + +# Enable C++ 11 +if(NOT MSVC) + add_definitions(-std=c++11) +endif() + +macro(add_libflang_library name) + set(srcs ${ARGN}) + + if (MODULE) + set(libkind MODULE) + elseif (SHARED_LIBRARY) + set(libkind SHARED) + else() + set(libkind) + endif() + + add_library( ${name} ${libkind} ${srcs} ) + set_target_properties(${name} PROPERTIES FOLDER "Libflang libraries") + + list(APPEND libflang_libraries ${name}) +endmacro(add_libflang_library) + +add_subdirectory(include) +add_subdirectory(lib) + +if (MODULE) + set(libkind MODULE) +elseif (SHARED_LIBRARY) + set(libkind SHARED) +else() + set(libkind) +endif() + +add_library(libflang ${libkind} lib/Libflang.cpp) +target_link_libraries(libflang ${libflang_libraries}) + +set(BUG_REPORT_URL "http://llvm.org/bugs/" CACHE STRING + "Default URL where bug reports are to be submitted.") + diff --git a/LICENSE.TXT b/LICENSE.TXT new file mode 100644 index 0000000..90ca2e9 --- /dev/null +++ b/LICENSE.TXT @@ -0,0 +1,63 @@ +============================================================================== +LLVM Release License +============================================================================== +University of Illinois/NCSA +Open Source License + +Copyright (c) 2011 University of Illinois at Urbana-Champaign. +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== +The LLVM software contains code written by third parties. Such software will +have its own individual LICENSE.TXT file in the directory in which it appears. +This file will describe the copyrights, license, and restrictions which apply +to that code. + +The disclaimer of warranty in the University of Illinois Open Source License +applies to all code in the LLVM Distribution, and nothing in any of the +other licenses gives permission to use the names of the LLVM Team or the +University of Illinois to endorse or promote products derived from this +Software. + +The following pieces of software have additional or alternate copyrights, +licenses, and/or restrictions: + +Program Directory +------- --------- + + diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..749bb44 --- /dev/null +++ b/README.txt @@ -0,0 +1,5 @@ +Libflang +================================ + +Runtime library for the fortran programming language used by +the flang compiler. diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/include/CMakeLists.txt @@ -0,0 +1 @@ + diff --git a/include/Core/Core.h b/include/Core/Core.h new file mode 100644 index 0000000..e69de29 diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 0000000..34c0fd8 --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,4 @@ +add_subdirectory(Core) +add_subdirectory(Numerical) +add_subdirectory(Strings) +add_subdirectory(IO) diff --git a/lib/Core/CMakeLists.txt b/lib/Core/CMakeLists.txt new file mode 100644 index 0000000..9978300 --- /dev/null +++ b/lib/Core/CMakeLists.txt @@ -0,0 +1,2 @@ +add_libflang_library(libflangCore + Core.cpp) diff --git a/lib/Core/Core.cpp b/lib/Core/Core.cpp new file mode 100644 index 0000000..e69de29 diff --git a/lib/IO/CMakeLists.txt b/lib/IO/CMakeLists.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lib/IO/CMakeLists.txt @@ -0,0 +1 @@ + diff --git a/lib/Libflang.cpp b/lib/Libflang.cpp new file mode 100644 index 0000000..e69de29 diff --git a/lib/Numerical/CMakeLists.txt b/lib/Numerical/CMakeLists.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lib/Numerical/CMakeLists.txt @@ -0,0 +1 @@ + diff --git a/lib/Strings/CMakeLists.txt b/lib/Strings/CMakeLists.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lib/Strings/CMakeLists.txt @@ -0,0 +1 @@ + -- cgit v1.2.1