-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.common.in
executable file
·36 lines (27 loc) · 1.05 KB
/
Makefile.common.in
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
35
36
# Set this variable to the top of the LLVM source tree.
LLVM_SRC_ROOT = @LLVM_SRC@
# Set this variable to the top level directory where LLVM was built
# (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
LLVM_OBJ_ROOT = @LLVM_OBJ@
# Define BYTECODE_LIBRARY before including LLVM's Makefile.common to get
# dependencies right.
BYTECODE_LIBRARY = 1
LLVMCC_OPTION = "clang"
ENABLE_BUILT_CLANG = 1
LLVMCC_EMITIR_FLAG = "-emit-llvm"
ifeq ($(BUILD_FRAMETABLE), 1)
BUILT_SOURCES = FrametablesSymbols.inc FrametablesExterns.inc
endif
# Include LLVM's Master Makefile.
include $(LLVM_OBJ_ROOT)/Makefile.common
CXX.Flags += @GC_FLAGS@ -fno-exceptions -Wno-variadic-macros -fno-omit-frame-pointer -fno-strict-aliasing -Wno-deprecated -ansi -fno-rtti
# GNU Classpath flags
CLASSPATH_FLAGS =
GLIBJ = @classpathglibj@
# Using conditional compilation for now, until a proper interface/architecture
# is figured out and implemented.
ifeq (@classpathimpl@,openjdk)
CXX.Flags += -DUSE_OPENJDK
endif
LIBS += -lz
include $(VMKIT_SRC_ROOT)/Makefile.rules