about summary refs log tree commit diff homepage
path: root/runtime/FreeStanding
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/FreeStanding')
-rw-r--r--runtime/FreeStanding/CMakeLists.txt21
-rw-r--r--runtime/FreeStanding/Makefile.cmake.bitcode15
2 files changed, 21 insertions, 15 deletions
diff --git a/runtime/FreeStanding/CMakeLists.txt b/runtime/FreeStanding/CMakeLists.txt
new file mode 100644
index 00000000..cf558a7d
--- /dev/null
+++ b/runtime/FreeStanding/CMakeLists.txt
@@ -0,0 +1,21 @@
+#===------------------------------------------------------------------------===#
+#
+#                     The KLEE Symbolic Virtual Machine
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+#===------------------------------------------------------------------------===#
+
+set(LIB_PREFIX "RuntimeFreeStanding")
+set(SRC_FILES
+        memcmp.c
+        memcpy.c
+        memmove.c
+        memset.c
+        )
+
+# Build it
+include("${CMAKE_SOURCE_DIR}/cmake/compile_bitcode_library.cmake")
+prefix_with_path("${SRC_FILES}" "${CMAKE_CURRENT_SOURCE_DIR}/" prefixed_files)
+add_bitcode_library_targets("${LIB_PREFIX}" "${prefixed_files}" "" "")
\ No newline at end of file
diff --git a/runtime/FreeStanding/Makefile.cmake.bitcode b/runtime/FreeStanding/Makefile.cmake.bitcode
deleted file mode 100644
index 0ad434d6..00000000
--- a/runtime/FreeStanding/Makefile.cmake.bitcode
+++ /dev/null
@@ -1,15 +0,0 @@
-#===--------------------------------------------------------*- Makefile -*--===#
-#
-#                     The KLEE Symbolic Virtual Machine
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-#===------------------------------------------------------------------------===#
-LEVEL := ../
-
-include $(LEVEL)/Makefile.cmake.bitcode.config
-
-ARCHIVE_NAME=kleeRuntimeFreeStanding
-
-include $(LEVEL)/Makefile.cmake.bitcode.rules