This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile.common.in
executable file
·109 lines (90 loc) · 2.67 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
###############################################################################
# options
###############################################################################
MMTK_PLAN = @MMTK_PLAN@
LLVM_RTTI = @LLVM_RTTI@
CLASSPATH_IMPL = @classpathimpl@
ifeq ($(CLASSPATH_IMPL),gnuclasspath)
CLASSPATH_DIR = GNUClasspath
else
ifeq ($(CLASSPATH_IMPL),openjdk)
CLASSPATH_DIR = OpenJDK
else
$(error Unsupported classpath implementation "$(CLASSPATH_IMPL)")
endif
endif
OPTIMIZED=@OPTIMIZED@
DEBUG=@DEBUG@
ASSERT=@ASSERT@
JAVAC_TARGET := 1.5
GLIBJ = @classpathglibj@
# Using conditional compilation for now, until a proper interface/architecture
# is figured out and implemented.
ifeq (@classpathimpl@,openjdk)
COMMON_CFLAGS+=-DUSE_OPENJDK
endif
###############################################################################
# host dependent configurations
###############################################################################
SHOPT=@SHOPT@
LDOPT=@LDOPT@
EXEEXT=@EXEEXT@
SHLIBEXT=@SHLIBEXT@
WITH_64 = @WITH_64@
###############################################################################
# binaries
###############################################################################
LLVM_CONFIG=@LLVM_CONFIG@
LLVM_BIN=$(shell $(LLVM_CONFIG) --bindir)
CLANG=@CLANG_PATH@/clang
CLANGXX=@CLANG_PATH@/clang++
LLVMAS=$(LLVM_BIN)/llvm-as
LLC=$(LLVM_BIN)/llc
LOPT=$(LLVM_BIN)/opt
LLVMLINK=$(LLVM_BIN)/llvm-link
ANT=@ANT@
JAVAC=@JAVAC@
ZIP=@ZIP@
MV=@MV@
RM=@RM@
CP=@CP@
Archive=@AR@ cru
Ranlib=@RANLIB@
NM=@NM@
LD=@LD@
MKDIR=@MKDIR_P@
TOUCH=@TOUCH@
GREP=@GREP@
###############################################################################
# Common build system data
###############################################################################
ifeq ($(OPTIMIZED),1)
VMKIT_BUILD_NAME:=Release
ifeq ($(DEBUG),1)
VMKIT_BUILD_NAME:=$(VMKIT_BUILD_NAME)+Debug
endif
else
ifeq ($(DEBUG),1)
VMKIT_BUILD_NAME:=Debug
else
VMKIT_BUILD_NAME:=Unoptimized
endif
endif
ifeq ($(ASSERT),1)
VMKIT_BUILD_NAME:=$(VMKIT_BUILD_NAME)+Asserts
endif
ifndef OPTIONS_ONLY
###############################################################################
# VMKit build system data
###############################################################################
PROJECT_NAME := @PACKAGE_NAME@
PROJ_VERSION := @PACKAGE_VERSION@
realpath=$(shell cd $(1); $(PWD))
PROJ_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
PROJ_OBJ_ROOT := $(subst //,/,@abs_top_builddir@)
PROJ_OBJ_CWD:= $(call realpath, .)
PROJ_SRC_CWD:= $(call realpath, $(patsubst $(PROJ_OBJ_ROOT)%,$(PROJ_SRC_ROOT)%,$(PROJ_OBJ_CWD)))
CONFIG_FILES=@ac_config_files@
CONFIG_HEADERS=@ac_config_headers@
include $(PROJ_SRC_ROOT)/Makefile.rules
endif