summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarphaman <arphaman@gmail.com>2013-07-12 16:22:17 +0100
committerarphaman <arphaman@gmail.com>2013-07-12 16:22:17 +0100
commitf2eba4267c595d6f74e576c9f2319eda38346658 (patch)
tree43574f8c0ff2728bff7b09e08c269e1a5023f7c4
downloadlibflangrt-f2eba4267c595d6f74e576c9f2319eda38346658.tar.gz
getting started
-rw-r--r--.gitignore25
-rw-r--r--CMakeLists.txt42
-rw-r--r--LICENSE.TXT63
-rw-r--r--README.txt5
-rw-r--r--include/CMakeLists.txt1
-rw-r--r--include/Core/Core.h0
-rw-r--r--lib/CMakeLists.txt4
-rw-r--r--lib/Core/CMakeLists.txt2
-rw-r--r--lib/Core/Core.cpp0
-rw-r--r--lib/IO/CMakeLists.txt1
-rw-r--r--lib/Libflang.cpp0
-rw-r--r--lib/Numerical/CMakeLists.txt1
-rw-r--r--lib/Strings/CMakeLists.txt1
13 files changed, 145 insertions, 0 deletions
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
+------- ---------
+<none yet>
+
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
--- /dev/null
+++ b/include/Core/Core.h
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
--- /dev/null
+++ b/lib/Core/Core.cpp
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
--- /dev/null
+++ b/lib/Libflang.cpp
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 @@
+