Carl Shapiro | 7b21670 | 2011-06-17 15:09:26 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
Brian Carlstrom | 06809ed | 2012-09-17 14:19:20 -0700 | [diff] [blame] | 17 | ART_USE_PORTABLE_COMPILER := false |
| 18 | ifneq ($(wildcard art/USE_PORTABLE_COMPILER),) |
| 19 | $(info Enabling ART_USE_PORTABLE_COMPILER because of existence of art/USE_PORTABLE_COMPILER) |
| 20 | ART_USE_PORTABLE_COMPILER := true |
| 21 | endif |
| 22 | ifeq ($(WITH_ART_USE_PORTABLE_COMPILER),true) |
| 23 | $(info Enabling ART_USE_PORTABLE_COMPILER because WITH_ART_USE_PORTABLE_COMPILER=true) |
| 24 | ART_USE_PORTABLE_COMPILER := true |
| 25 | endif |
| 26 | ifeq ($(ART_USE_PORTABLE_COMPILER),true) |
Brian Carlstrom | 06809ed | 2012-09-17 14:19:20 -0700 | [diff] [blame] | 27 | WITH_ART_USE_LLVM_COMPILER := true |
| 28 | endif |
| 29 | |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 30 | # Use llvm as the backend |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 31 | ART_USE_LLVM_COMPILER := false |
Brian Carlstrom | 9ba4f47 | 2012-07-18 23:04:15 -0700 | [diff] [blame] | 32 | ifneq ($(wildcard art/USE_LLVM_COMPILER),) |
| 33 | $(info Enabling ART_USE_LLVM_COMPILER because of existence of art/USE_LLVM_COMPILER) |
| 34 | ART_USE_LLVM_COMPILER := true |
| 35 | endif |
| 36 | ifeq ($(WITH_ART_USE_LLVM_COMPILER),true) |
| 37 | $(info Enabling ART_USE_LLVM_COMPILER because WITH_ART_USE_LLVM_COMPILER=true) |
| 38 | ART_USE_LLVM_COMPILER := true |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 39 | endif |
| 40 | |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 41 | LLVM_ROOT_PATH := external/llvm |
| 42 | include $(LLVM_ROOT_PATH)/llvm.mk |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 43 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 44 | # directory used for gtests on device |
| 45 | ART_NATIVETEST_DIR := /data/nativetest/art |
| 46 | ART_NATIVETEST_OUT := $(TARGET_OUT_DATA_NATIVE_TESTS)/art |
| 47 | |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 48 | # directory used for tests on device |
| 49 | ART_TEST_DIR := /data/art-test |
| 50 | ART_TEST_OUT := $(TARGET_OUT_DATA)/art-test |
| 51 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 52 | ART_CPP_EXTENSION := .cc |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 53 | |
Elliott Hughes | 0af5543 | 2011-08-17 18:37:28 -0700 | [diff] [blame] | 54 | ART_C_INCLUDES := \ |
| 55 | external/gtest/include \ |
Elliott Hughes | 8d768a9 | 2011-09-14 16:35:25 -0700 | [diff] [blame] | 56 | external/valgrind/dynamic_annotations \ |
buzbee | c143c55 | 2011-08-20 17:38:58 -0700 | [diff] [blame] | 57 | external/zlib \ |
Elliott Hughes | adb8c67 | 2012-03-06 16:49:32 -0800 | [diff] [blame] | 58 | art/src |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 59 | |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 60 | art_cflags := \ |
Ian Rogers | 646c3d7 | 2012-02-17 23:55:19 -0800 | [diff] [blame] | 61 | -O2 \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 62 | -ggdb3 \ |
| 63 | -Wall \ |
| 64 | -Werror \ |
| 65 | -Wextra \ |
Elliott Hughes | eaa200d | 2012-01-05 16:30:31 -0800 | [diff] [blame] | 66 | -Wstrict-aliasing=3 \ |
Elliott Hughes | f834936 | 2012-06-18 15:00:06 -0700 | [diff] [blame] | 67 | -Wthread-safety \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 68 | -fstrict-aliasing |
| 69 | |
Brian Carlstrom | 69d7a6b | 2011-12-15 17:31:21 -0800 | [diff] [blame] | 70 | ifeq ($(HOST_OS),linux) |
Shih-wei Liao | 24782c6 | 2012-01-08 12:46:11 -0800 | [diff] [blame] | 71 | art_non_debug_cflags := \ |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 72 | -Wframe-larger-than=1728 |
Brian Carlstrom | 69d7a6b | 2011-12-15 17:31:21 -0800 | [diff] [blame] | 73 | endif |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 74 | |
| 75 | art_debug_cflags := \ |
Elliott Hughes | 06e3ad4 | 2012-02-07 14:51:57 -0800 | [diff] [blame] | 76 | -DDYNAMIC_ANNOTATIONS_ENABLED=1 \ |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 77 | -UNDEBUG |
| 78 | |
jeffhao | 8161c03 | 2012-10-31 15:50:00 -0700 | [diff] [blame] | 79 | # start of image reserved address space |
| 80 | IMG_HOST_BASE_ADDRESS := 0x60000000 |
| 81 | |
| 82 | ifeq ($(TARGET_ARCH),mips) |
| 83 | IMG_TARGET_BASE_ADDRESS := 0x30000000 |
| 84 | else |
| 85 | IMG_TARGET_BASE_ADDRESS := 0x60000000 |
| 86 | endif |
| 87 | |
| 88 | ART_HOST_CFLAGS := $(art_cflags) -DANDROID_SMP=1 -DART_BASE_ADDRESS=$(IMG_HOST_BASE_ADDRESS) |
Elliott Hughes | f834936 | 2012-06-18 15:00:06 -0700 | [diff] [blame] | 89 | # The host GCC isn't necessarily new enough to support -Wthread-safety (GCC 4.4). |
| 90 | ART_HOST_CFLAGS := $(filter-out -Wthread-safety,$(ART_HOST_CFLAGS)) |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 91 | |
jeffhao | 8161c03 | 2012-10-31 15:50:00 -0700 | [diff] [blame] | 92 | ART_TARGET_CFLAGS := $(art_cflags) -DART_TARGET -DART_BASE_ADDRESS=$(IMG_TARGET_BASE_ADDRESS) |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 93 | ifeq ($(TARGET_CPU_SMP),true) |
| 94 | ART_TARGET_CFLAGS += -DANDROID_SMP=1 |
| 95 | else |
| 96 | ART_TARGET_CFLAGS += -DANDROID_SMP=0 |
| 97 | endif |
| 98 | |
Brian Carlstrom | 8952189 | 2011-12-07 22:05:07 -0800 | [diff] [blame] | 99 | # To use oprofile_android --callgraph, uncomment this and recompile with "mmm art -B -j16" |
| 100 | # ART_TARGET_CFLAGS += -fno-omit-frame-pointer -marm -mapcs |
| 101 | |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 102 | ART_HOST_NON_DEBUG_CFLAGS := $(art_non_debug_cflags) |
| 103 | ART_TARGET_NON_DEBUG_CFLAGS := $(art_non_debug_cflags) |
| 104 | |
Brian Carlstrom | fd2ec54 | 2012-05-02 15:08:57 -0700 | [diff] [blame] | 105 | # TODO: move -fkeep-inline-functions to art_debug_cflags when target gcc > 4.4 (and -lsupc++) |
Elliott Hughes | 1ba2714 | 2012-01-20 15:32:00 -0800 | [diff] [blame] | 106 | ART_HOST_DEBUG_CFLAGS := $(art_debug_cflags) -fkeep-inline-functions |
Brian Carlstrom | fd2ec54 | 2012-05-02 15:08:57 -0700 | [diff] [blame] | 107 | ART_HOST_DEBUG_LDLIBS := -lsupc++ |
Elliott Hughes | ad6c9c3 | 2012-01-19 17:39:12 -0800 | [diff] [blame] | 108 | |
| 109 | ifneq ($(HOST_OS),linux) |
| 110 | # Some Mac OS pthread header files are broken with -fkeep-inline-functions. |
Elliott Hughes | 34cf514 | 2012-01-20 16:39:13 -0800 | [diff] [blame] | 111 | ART_HOST_DEBUG_CFLAGS := $(filter-out -fkeep-inline-functions,$(ART_HOST_DEBUG_CFLAGS)) |
Elliott Hughes | 6023456 | 2012-06-01 12:25:59 -0700 | [diff] [blame] | 112 | # Mac OS doesn't have libsupc++. |
| 113 | ART_HOST_DEBUG_LDLIBS := $(filter-out -lsupc++,$(ART_HOST_DEBUG_LDLIBS)) |
Elliott Hughes | ad6c9c3 | 2012-01-19 17:39:12 -0800 | [diff] [blame] | 114 | endif |
| 115 | |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 116 | ART_TARGET_DEBUG_CFLAGS := $(art_debug_cflags) |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 117 | |
TDYa127 | 58e63f9 | 2012-04-24 13:16:47 -0700 | [diff] [blame] | 118 | ifeq ($(ART_USE_LLVM_COMPILER),true) |
| 119 | PARALLEL_ART_COMPILE_JOBS := -j8 |
| 120 | endif |
| 121 | |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 122 | DEX2OAT_SRC_FILES := \ |
| 123 | src/dex2oat.cc |
| 124 | |
Brian Carlstrom | 78128a6 | 2011-09-15 17:21:19 -0700 | [diff] [blame] | 125 | OATDUMP_SRC_FILES := \ |
Elliott Hughes | 3e778f7 | 2012-05-21 15:29:52 -0700 | [diff] [blame] | 126 | src/oatdump.cc |
Brian Carlstrom | 78128a6 | 2011-09-15 17:21:19 -0700 | [diff] [blame] | 127 | |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 128 | OATEXEC_SRC_FILES := \ |
| 129 | src/oatexec.cc |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 130 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 131 | LIBART_COMMON_SRC_FILES := \ |
Elliott Hughes | 5ea047b | 2011-09-13 14:38:18 -0700 | [diff] [blame] | 132 | src/atomic.cc.arm \ |
Elliott Hughes | 07ed66b | 2012-12-12 18:34:25 -0800 | [diff] [blame] | 133 | src/base/logging.cc \ |
Elliott Hughes | 76b6167 | 2012-12-12 17:47:30 -0800 | [diff] [blame] | 134 | src/base/mutex.cc \ |
Elliott Hughes | e222ee0 | 2012-12-13 14:41:43 -0800 | [diff] [blame] | 135 | src/base/stringpiece.cc \ |
| 136 | src/base/stringprintf.cc \ |
Elliott Hughes | 7616005 | 2012-12-12 16:31:20 -0800 | [diff] [blame] | 137 | src/base/unix_file/fd_file.cc \ |
| 138 | src/base/unix_file/mapped_file.cc \ |
| 139 | src/base/unix_file/null_file.cc \ |
| 140 | src/base/unix_file/random_access_file_utils.cc \ |
| 141 | src/base/unix_file/string_file.cc \ |
Mathieu Chartier | 0e4627e | 2012-10-23 16:13:36 -0700 | [diff] [blame] | 142 | src/barrier.cc \ |
Elliott Hughes | a250199 | 2011-08-26 19:39:54 -0700 | [diff] [blame] | 143 | src/check_jni.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 144 | src/class_linker.cc \ |
Ian Rogers | 87e552d | 2012-08-31 15:54:48 -0700 | [diff] [blame] | 145 | src/common_throws.cc \ |
Brian Carlstrom | 3320cf4 | 2011-10-04 14:58:28 -0700 | [diff] [blame] | 146 | src/compiled_method.cc \ |
Brian Carlstrom | 9ea1cb1 | 2011-08-24 23:18:18 -0700 | [diff] [blame] | 147 | src/compiler.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 148 | src/debugger.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 149 | src/dex_cache.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 150 | src/dex_file.cc \ |
jeffhao | 10037c8 | 2012-01-23 15:06:23 -0800 | [diff] [blame] | 151 | src/dex_file_verifier.cc \ |
Carl Shapiro | 12eb78e | 2011-06-24 14:51:06 -0700 | [diff] [blame] | 152 | src/dex_instruction.cc \ |
Elliott Hughes | 3e778f7 | 2012-05-21 15:29:52 -0700 | [diff] [blame] | 153 | src/disassembler.cc \ |
| 154 | src/disassembler_arm.cc \ |
| 155 | src/disassembler_mips.cc \ |
| 156 | src/disassembler_x86.cc \ |
Ian Rogers | 15bf2d3 | 2012-08-28 17:33:04 -0700 | [diff] [blame] | 157 | src/dlmalloc.cc \ |
Mathieu Chartier | 7469ebf | 2012-09-24 16:28:36 -0700 | [diff] [blame] | 158 | src/gc/card_table.cc \ |
Mathieu Chartier | 2b82db4 | 2012-11-14 17:29:05 -0800 | [diff] [blame] | 159 | src/gc/garbage_collector.cc \ |
Mathieu Chartier | 7469ebf | 2012-09-24 16:28:36 -0700 | [diff] [blame] | 160 | src/gc/heap_bitmap.cc \ |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 161 | src/gc/large_object_space.cc \ |
Mathieu Chartier | 7469ebf | 2012-09-24 16:28:36 -0700 | [diff] [blame] | 162 | src/gc/mark_sweep.cc \ |
| 163 | src/gc/mod_union_table.cc \ |
Mathieu Chartier | 2b82db4 | 2012-11-14 17:29:05 -0800 | [diff] [blame] | 164 | src/gc/partial_mark_sweep.cc \ |
Mathieu Chartier | 7469ebf | 2012-09-24 16:28:36 -0700 | [diff] [blame] | 165 | src/gc/space.cc \ |
| 166 | src/gc/space_bitmap.cc \ |
Mathieu Chartier | 2b82db4 | 2012-11-14 17:29:05 -0800 | [diff] [blame] | 167 | src/gc/sticky_mark_sweep.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 168 | src/heap.cc \ |
Jesse Wilson | c4824e6 | 2011-11-01 14:39:04 -0400 | [diff] [blame] | 169 | src/hprof/hprof.cc \ |
Brian Carlstrom | 4a289ed | 2011-08-16 17:17:49 -0700 | [diff] [blame] | 170 | src/image.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 171 | src/image_writer.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 172 | src/indirect_reference_table.cc \ |
jeffhao | 725a957 | 2012-11-13 18:20:12 -0800 | [diff] [blame] | 173 | src/instrumentation.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 174 | src/intern_table.cc \ |
Ian Rogers | 2fa6b2e | 2012-10-17 00:10:17 -0700 | [diff] [blame] | 175 | src/interpreter/interpreter.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 176 | src/jdwp/jdwp_event.cc \ |
| 177 | src/jdwp/jdwp_expand_buf.cc \ |
| 178 | src/jdwp/jdwp_handler.cc \ |
| 179 | src/jdwp/jdwp_main.cc \ |
| 180 | src/jdwp/jdwp_socket.cc \ |
Ian Rogers | df20fe0 | 2011-07-20 20:34:16 -0700 | [diff] [blame] | 181 | src/jni_internal.cc \ |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 182 | src/jobject_comparator.cc \ |
Ian Rogers | 81d425b | 2012-09-27 16:03:43 -0700 | [diff] [blame] | 183 | src/locks.cc \ |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 184 | src/mem_map.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 185 | src/memory_region.cc \ |
Elliott Hughes | 54e7df1 | 2011-09-16 11:47:04 -0700 | [diff] [blame] | 186 | src/monitor.cc \ |
Ian Rogers | 0dae08e | 2012-04-14 13:55:11 -0700 | [diff] [blame] | 187 | src/native/dalvik_system_DexFile.cc \ |
| 188 | src/native/dalvik_system_VMDebug.cc \ |
| 189 | src/native/dalvik_system_VMRuntime.cc \ |
| 190 | src/native/dalvik_system_VMStack.cc \ |
| 191 | src/native/dalvik_system_Zygote.cc \ |
| 192 | src/native/java_lang_Class.cc \ |
| 193 | src/native/java_lang_Object.cc \ |
| 194 | src/native/java_lang_Runtime.cc \ |
| 195 | src/native/java_lang_String.cc \ |
| 196 | src/native/java_lang_System.cc \ |
| 197 | src/native/java_lang_Thread.cc \ |
| 198 | src/native/java_lang_Throwable.cc \ |
| 199 | src/native/java_lang_VMClassLoader.cc \ |
| 200 | src/native/java_lang_reflect_Array.cc \ |
| 201 | src/native/java_lang_reflect_Constructor.cc \ |
| 202 | src/native/java_lang_reflect_Field.cc \ |
| 203 | src/native/java_lang_reflect_Method.cc \ |
| 204 | src/native/java_lang_reflect_Proxy.cc \ |
| 205 | src/native/java_util_concurrent_atomic_AtomicLong.cc \ |
| 206 | src/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc \ |
| 207 | src/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \ |
| 208 | src/native/sun_misc_Unsafe.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 209 | src/oat/runtime/arm/stub_arm.cc \ |
jeffhao | 7fbee07 | 2012-08-24 17:56:54 -0700 | [diff] [blame] | 210 | src/oat/runtime/mips/stub_mips.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 211 | src/oat/runtime/x86/stub_x86.cc \ |
jeffhao | 7fbee07 | 2012-08-24 17:56:54 -0700 | [diff] [blame] | 212 | src/oat/utils/assembler.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 213 | src/oat/utils/arm/assembler_arm.cc \ |
| 214 | src/oat/utils/arm/managed_register_arm.cc \ |
jeffhao | 7fbee07 | 2012-08-24 17:56:54 -0700 | [diff] [blame] | 215 | src/oat/utils/mips/assembler_mips.cc \ |
| 216 | src/oat/utils/mips/managed_register_mips.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 217 | src/oat/utils/x86/assembler_x86.cc \ |
| 218 | src/oat/utils/x86/managed_register_x86.cc \ |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 219 | src/oat.cc \ |
| 220 | src/oat_file.cc \ |
| 221 | src/oat_writer.cc \ |
Carl Shapiro | 3ee755d | 2011-06-28 12:11:04 -0700 | [diff] [blame] | 222 | src/object.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 223 | src/offsets.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 224 | src/os_linux.cc \ |
Brian Carlstrom | ae82698 | 2011-11-09 01:33:42 -0800 | [diff] [blame] | 225 | src/primitive.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 226 | src/reference_table.cc \ |
Elliott Hughes | 418d20f | 2011-09-22 14:00:39 -0700 | [diff] [blame] | 227 | src/reflection.cc \ |
Carl Shapiro | d4e48fd | 2011-06-30 18:53:29 -0700 | [diff] [blame] | 228 | src/runtime.cc \ |
Shih-wei Liao | a8a9c34 | 2012-03-03 22:35:16 -0800 | [diff] [blame] | 229 | src/runtime_support.cc \ |
Elliott Hughes | e27955c | 2011-08-26 15:21:24 -0700 | [diff] [blame] | 230 | src/signal_catcher.cc \ |
Elliott Hughes | 68e7652 | 2011-10-05 13:22:16 -0700 | [diff] [blame] | 231 | src/stack.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 232 | src/thread.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 233 | src/thread_list.cc \ |
Mathieu Chartier | 0e4627e | 2012-10-23 16:13:36 -0700 | [diff] [blame] | 234 | src/thread_pool.cc \ |
jeffhao | e343b76 | 2011-12-05 16:36:44 -0800 | [diff] [blame] | 235 | src/trace.cc \ |
Elliott Hughes | 814e403 | 2011-08-23 12:07:56 -0700 | [diff] [blame] | 236 | src/utf.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 237 | src/utils.cc \ |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 238 | src/well_known_classes.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 239 | src/zip_archive.cc \ |
Ian Rogers | 0c7abda | 2012-09-19 13:33:42 -0700 | [diff] [blame] | 240 | src/verifier/dex_gc_map.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 241 | src/verifier/method_verifier.cc \ |
| 242 | src/verifier/reg_type.cc \ |
| 243 | src/verifier/reg_type_cache.cc \ |
| 244 | src/verifier/register_line.cc |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 245 | |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 246 | ifeq ($(ART_USE_LLVM_COMPILER),true) |
| 247 | LIBART_COMMON_SRC_FILES += \ |
TDYa127 | 89f9605 | 2012-07-12 20:49:53 -0700 | [diff] [blame] | 248 | src/greenland/inferred_reg_category_map.cc \ |
Logan Chien | 67008a6 | 2012-06-06 18:23:12 +0800 | [diff] [blame] | 249 | src/compiler_llvm/procedure_linkage_table.cc \ |
Logan Chien | 937105a | 2012-04-02 02:37:37 +0800 | [diff] [blame] | 250 | src/compiler_llvm/runtime_support_llvm.cc |
Shih-wei Liao | 6e94f14 | 2012-04-16 18:14:14 -0700 | [diff] [blame] | 251 | endif |
| 252 | |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 253 | LIBART_COMMON_SRC_FILES += \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 254 | src/oat/runtime/context.cc \ |
| 255 | src/oat/runtime/support_alloc.cc \ |
| 256 | src/oat/runtime/support_cast.cc \ |
| 257 | src/oat/runtime/support_debug.cc \ |
| 258 | src/oat/runtime/support_dexcache.cc \ |
Ian Rogers | 306057f | 2012-11-26 12:45:53 -0800 | [diff] [blame] | 259 | src/oat/runtime/support_deoptimize.cc \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 260 | src/oat/runtime/support_field.cc \ |
| 261 | src/oat/runtime/support_fillarray.cc \ |
jeffhao | 725a957 | 2012-11-13 18:20:12 -0800 | [diff] [blame] | 262 | src/oat/runtime/support_instrumentation.cc \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 263 | src/oat/runtime/support_invoke.cc \ |
| 264 | src/oat/runtime/support_jni.cc \ |
| 265 | src/oat/runtime/support_locks.cc \ |
| 266 | src/oat/runtime/support_math.cc \ |
| 267 | src/oat/runtime/support_proxy.cc \ |
| 268 | src/oat/runtime/support_stubs.cc \ |
| 269 | src/oat/runtime/support_thread.cc \ |
jeffhao | 725a957 | 2012-11-13 18:20:12 -0800 | [diff] [blame] | 270 | src/oat/runtime/support_throw.cc |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 271 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 272 | LIBART_TARGET_SRC_FILES := \ |
| 273 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | 07ed66b | 2012-12-12 18:34:25 -0800 | [diff] [blame] | 274 | src/base/logging_android.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 275 | src/jdwp/jdwp_adb.cc \ |
Elliott Hughes | fc86162 | 2011-10-17 17:57:47 -0700 | [diff] [blame] | 276 | src/monitor_android.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 277 | src/runtime_android.cc \ |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 278 | src/thread_android.cc |
| 279 | |
| 280 | ifeq ($(TARGET_ARCH),arm) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 281 | LIBART_TARGET_SRC_FILES += \ |
| 282 | src/oat/runtime/arm/context_arm.cc.arm \ |
| 283 | src/oat/runtime/arm/oat_support_entrypoints_arm.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 284 | src/oat/runtime/arm/runtime_support_arm.S |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 285 | else # TARGET_ARCH != arm |
| 286 | ifeq ($(TARGET_ARCH),x86) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 287 | LIBART_TARGET_SRC_FILES += \ |
| 288 | src/oat/runtime/x86/context_x86.cc \ |
| 289 | src/oat/runtime/x86/oat_support_entrypoints_x86.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 290 | src/oat/runtime/x86/runtime_support_x86.S |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 291 | else # TARGET_ARCH != x86 |
| 292 | ifeq ($(TARGET_ARCH),mips) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 293 | LIBART_TARGET_SRC_FILES += \ |
jeffhao | 7fbee07 | 2012-08-24 17:56:54 -0700 | [diff] [blame] | 294 | src/oat/runtime/mips/context_mips.cc \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 295 | src/oat/runtime/mips/oat_support_entrypoints_mips.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 296 | src/oat/runtime/mips/runtime_support_mips.S |
| 297 | else # TARGET_ARCH != mips |
| 298 | $(error unsupported TARGET_ARCH=$(TARGET_ARCH)) |
| 299 | endif # TARGET_ARCH != mips |
| 300 | endif # TARGET_ARCH != x86 |
| 301 | endif # TARGET_ARCH != arm |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 302 | |
| 303 | ifeq ($(TARGET_ARCH),arm) |
| 304 | LIBART_TARGET_SRC_FILES += src/thread_arm.cc |
| 305 | else # TARGET_ARCH != arm |
| 306 | ifeq ($(TARGET_ARCH),x86) |
| 307 | LIBART_TARGET_SRC_FILES += src/thread_x86.cc |
| 308 | else # TARGET_ARCH != x86 |
| 309 | ifeq ($(TARGET_ARCH),mips) |
| 310 | LIBART_TARGET_SRC_FILES += src/thread_mips.cc |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 311 | else # TARGET_ARCH != mips |
| 312 | $(error unsupported TARGET_ARCH=$(TARGET_ARCH)) |
| 313 | endif # TARGET_ARCH != mips |
| 314 | endif # TARGET_ARCH != x86 |
| 315 | endif # TARGET_ARCH != arm |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 316 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 317 | LIBART_HOST_SRC_FILES := \ |
| 318 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | 07ed66b | 2012-12-12 18:34:25 -0800 | [diff] [blame] | 319 | src/base/logging_linux.cc \ |
Elliott Hughes | fc86162 | 2011-10-17 17:57:47 -0700 | [diff] [blame] | 320 | src/monitor_linux.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 321 | src/runtime_linux.cc \ |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 322 | src/thread_linux.cc |
| 323 | |
| 324 | ifeq ($(HOST_ARCH),x86) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 325 | LIBART_HOST_SRC_FILES += \ |
| 326 | src/oat/runtime/x86/oat_support_entrypoints_x86.cc \ |
| 327 | src/oat/runtime/x86/context_x86.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 328 | src/oat/runtime/x86/runtime_support_x86.S |
| 329 | else # HOST_ARCH != x86 |
| 330 | $(error unsupported HOST_ARCH=$(HOST_ARCH)) |
| 331 | endif # HOST_ARCH != x86 |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 332 | |
| 333 | ifeq ($(HOST_ARCH),x86) |
| 334 | LIBART_HOST_SRC_FILES += src/thread_x86.cc |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 335 | else # HOST_ARCH != x86 |
| 336 | $(error unsupported HOST_ARCH=$(HOST_ARCH)) |
| 337 | endif # HOST_ARCH != x86 |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 338 | |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 339 | |
Elliott Hughes | 0e57ccb | 2012-04-03 16:04:52 -0700 | [diff] [blame] | 340 | LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := \ |
Elliott Hughes | 76b6167 | 2012-12-12 17:47:30 -0800 | [diff] [blame] | 341 | src/base/mutex.h \ |
Brian Carlstrom | 88f3654 | 2012-10-16 23:24:21 -0700 | [diff] [blame] | 342 | src/dex_file.h \ |
Ian Rogers | a75a013 | 2012-09-28 11:41:42 -0700 | [diff] [blame] | 343 | src/dex_instruction.h \ |
Mathieu Chartier | 7469ebf | 2012-09-24 16:28:36 -0700 | [diff] [blame] | 344 | src/gc/space.h \ |
Mathieu Chartier | fd678be | 2012-08-30 14:50:54 -0700 | [diff] [blame] | 345 | src/heap.h \ |
Elliott Hughes | 0e57ccb | 2012-04-03 16:04:52 -0700 | [diff] [blame] | 346 | src/indirect_reference_table.h \ |
| 347 | src/instruction_set.h \ |
| 348 | src/invoke_type.h \ |
Elliott Hughes | 460384f | 2012-04-04 16:53:10 -0700 | [diff] [blame] | 349 | src/jdwp/jdwp.h \ |
| 350 | src/jdwp/jdwp_constants.h \ |
Ian Rogers | 81d425b | 2012-09-27 16:03:43 -0700 | [diff] [blame] | 351 | src/locks.h \ |
Elliott Hughes | 4825756 | 2012-06-06 17:42:44 -0700 | [diff] [blame] | 352 | src/object.h \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 353 | src/thread.h \ |
buzbee | cbd6d44 | 2012-11-17 14:11:25 -0800 | [diff] [blame] | 354 | src/verifier/method_verifier.h \ |
| 355 | src/compiler/compiler_enums.h |
Elliott Hughes | 0e57ccb | 2012-04-03 16:04:52 -0700 | [diff] [blame] | 356 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 357 | LIBARTTEST_COMMON_SRC_FILES := \ |
Shih-wei Liao | a6af3c3 | 2011-10-17 15:25:11 -0700 | [diff] [blame] | 358 | test/StackWalk/stack_walk_jni.cc \ |
| 359 | test/ReferenceMap/stack_walk_refmap_jni.cc |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 360 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 361 | TEST_COMMON_SRC_FILES := \ |
Mathieu Chartier | 0e4627e | 2012-10-23 16:13:36 -0700 | [diff] [blame] | 362 | src/barrier_test.cc \ |
Elliott Hughes | 76b6167 | 2012-12-12 17:47:30 -0800 | [diff] [blame] | 363 | src/base/mutex_test.cc \ |
Elliott Hughes | 7616005 | 2012-12-12 16:31:20 -0800 | [diff] [blame] | 364 | src/base/unix_file/fd_file_test.cc \ |
| 365 | src/base/unix_file/mapped_file_test.cc \ |
| 366 | src/base/unix_file/null_file_test.cc \ |
| 367 | src/base/unix_file/random_access_file_utils_test.cc \ |
| 368 | src/base/unix_file/string_file_test.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 369 | src/class_linker_test.cc \ |
Brian Carlstrom | aded5f7 | 2011-10-07 17:15:04 -0700 | [diff] [blame] | 370 | src/compiler_test.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 371 | src/dex_cache_test.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 372 | src/dex_file_test.cc \ |
| 373 | src/dex_instruction_visitor_test.cc \ |
Shih-wei Liao | 2fb9753 | 2011-08-11 16:17:23 -0700 | [diff] [blame] | 374 | src/exception_test.cc \ |
Mathieu Chartier | 7469ebf | 2012-09-24 16:28:36 -0700 | [diff] [blame] | 375 | src/gc/space_bitmap_test.cc \ |
| 376 | src/gc/space_test.cc \ |
Brian Carlstrom | 4b2966b | 2012-05-22 08:54:52 -0700 | [diff] [blame] | 377 | src/gtest_test.cc \ |
Brian Carlstrom | 1f87008 | 2011-08-23 16:02:11 -0700 | [diff] [blame] | 378 | src/heap_test.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 379 | src/image_test.cc \ |
Ian Rogers | 2bcb4a4 | 2012-11-08 10:39:18 -0800 | [diff] [blame] | 380 | src/indenter_test.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 381 | src/indirect_reference_table_test.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 382 | src/intern_table_test.cc \ |
Ian Rogers | cd2764f | 2011-09-02 15:38:24 -0700 | [diff] [blame] | 383 | src/jni_internal_test.cc \ |
| 384 | src/jni_compiler_test.cc \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 385 | src/oat/utils/arm/managed_register_arm_test.cc \ |
| 386 | src/oat/utils/x86/managed_register_x86_test.cc \ |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 387 | src/oat_test.cc \ |
Carl Shapiro | 894d0fa | 2011-06-30 14:48:49 -0700 | [diff] [blame] | 388 | src/object_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 389 | src/reference_table_test.cc \ |
Logan Chien | 008fa51 | 2012-06-22 08:09:57 -0700 | [diff] [blame] | 390 | src/runtime_support_test.cc \ |
Carl Shapiro | fc322c7 | 2011-07-27 00:20:01 -0700 | [diff] [blame] | 391 | src/runtime_test.cc \ |
Mathieu Chartier | 0e4627e | 2012-10-23 16:13:36 -0700 | [diff] [blame] | 392 | src/thread_pool_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 393 | src/utils_test.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 394 | src/zip_archive_test.cc \ |
| 395 | src/verifier/method_verifier_test.cc \ |
| 396 | src/verifier/reg_type_test.cc |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 397 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 398 | TEST_TARGET_SRC_FILES := \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 399 | $(TEST_COMMON_SRC_FILES) |
Carl Shapiro | 008e412 | 2011-06-23 17:27:46 -0700 | [diff] [blame] | 400 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 401 | TEST_HOST_SRC_FILES := \ |
| 402 | $(TEST_COMMON_SRC_FILES) \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 403 | src/oat/utils/x86/assembler_x86_test.cc |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 404 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 405 | # subdirectories of test/ which are used as inputs for gtests |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 406 | TEST_DEX_DIRECTORIES := \ |
Shih-wei Liao | 303b01e | 2011-09-14 00:46:13 -0700 | [diff] [blame] | 407 | AbstractMethod \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 408 | AllFields \ |
Ian Rogers | 0571d35 | 2011-11-03 19:51:38 -0700 | [diff] [blame] | 409 | CreateMethodSignature \ |
Brian Carlstrom | 33f741e | 2011-10-03 11:24:05 -0700 | [diff] [blame] | 410 | ExceptionHandle \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 411 | IntMath \ |
| 412 | Interfaces \ |
| 413 | Main \ |
| 414 | MyClass \ |
| 415 | MyClassNatives \ |
| 416 | Nested \ |
Elliott Hughes | 7740579 | 2012-03-15 15:22:12 -0700 | [diff] [blame] | 417 | NonStaticLeafMethods \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 418 | ProtoCompare \ |
| 419 | ProtoCompare2 \ |
| 420 | StaticLeafMethods \ |
| 421 | Statics \ |
jeffhao | abcfde3 | 2011-09-29 15:05:18 -0700 | [diff] [blame] | 422 | StaticsFromCode \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 423 | XandY |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 424 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 425 | # subdirectories of test/ which are used with test-art-target-oat |
| 426 | # Declare the simplest tests (Main, HelloWorld, and Fibonacci) first, the rest are alphabetical |
| 427 | TEST_OAT_DIRECTORIES := \ |
| 428 | Main \ |
| 429 | HelloWorld \ |
| 430 | Fibonacci \ |
| 431 | \ |
| 432 | ExceptionTest \ |
| 433 | GrowthLimit \ |
Mathieu Chartier | bba47a4 | 2012-05-30 10:53:58 -0700 | [diff] [blame] | 434 | ConcurrentGC \ |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 435 | IntMath \ |
| 436 | Invoke \ |
| 437 | MemUsage \ |
| 438 | ParallelGC \ |
| 439 | ReferenceMap \ |
| 440 | ReflectionTest \ |
| 441 | StackWalk \ |
| 442 | ThreadStress |
| 443 | |
| 444 | # TODO: Enable when the StackWalk2 tests are passing |
| 445 | # StackWalk2 \ |
| 446 | |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 447 | ART_BUILD_TARGET := false |
| 448 | ART_BUILD_HOST := false |
| 449 | ifeq ($(ART_BUILD_TARGET_NDEBUG),true) |
| 450 | ART_BUILD_TARGET := true |
| 451 | endif |
| 452 | ifeq ($(ART_BUILD_TARGET_DEBUG),true) |
| 453 | ART_BUILD_TARGET := true |
| 454 | endif |
| 455 | ifeq ($(ART_BUILD_HOST_NDEBUG),true) |
| 456 | ART_BUILD_HOST := true |
| 457 | endif |
| 458 | ifeq ($(ART_BUILD_HOST_DEBUG),true) |
| 459 | ART_BUILD_HOST := true |
| 460 | endif |