about summary refs log tree commit diff homepage
path: root/runtime/klee-libc/Makefile
blob: d059ba8a3be9d3a3adda4241d3f9112e3971ed80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#===-- runtime/klee-libc/Makefile --------------------------*- Makefile -*--===#
#
#                     The KLEE Symbolic Virtual Machine
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#

LEVEL=../..

# Needed for LLVM version
include $(LEVEL)/Makefile.config

ifeq ($(shell python -c "print($(LLVM_VERSION_MAJOR).$(LLVM_VERSION_MINOR) >= 3.3)"), True)
# For these versions of LLVM KLEE expects klee-libc to be a LLVM module rather than an archive
MODULE_NAME=klee-libc
else
# KLEE built against older versions of LLVM expect a library archive instead
BYTECODE_LIBRARY=1
LIBRARYNAME=klee-libc
endif

#DONT_BUILD_RELINKED=1
# Don't strip debug info from the module.
DEBUG_RUNTIME=1
#NO_PEDANTIC=1
NO_BUILD_ARCHIVE=1

# Add __NO_INLINE__ to prevent glibc from using inline definitions of some
# builtins.
C.Flags += -D__NO_INLINE__

include $(LEVEL)/Makefile.common