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 | |
Elliott Hughes | f1eedca | 2012-04-20 16:00:32 -0700 | [diff] [blame] | 17 | # TODO: move the LLVM compiler out into a separate shared library too... |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 18 | # Use llvm as the backend |
| 19 | ifneq ($(wildcard art/USE_LLVM_COMPILER),) |
| 20 | ART_USE_LLVM_COMPILER := true |
| 21 | else |
| 22 | ART_USE_LLVM_COMPILER := false |
| 23 | endif |
| 24 | |
Shih-wei Liao | e94d9b2 | 2012-05-22 09:01:24 -0700 | [diff] [blame] | 25 | ifneq ($(wildcard art/USE_GREENLAND_COMPILER),) |
| 26 | ART_USE_GREENLAND_COMPILER := true |
| 27 | else |
| 28 | ART_USE_GREENLAND_COMPILER := false |
| 29 | endif |
| 30 | |
| 31 | ifeq ($(filter-out true,$(ART_USE_LLVM_COMPILER) $(ART_USE_GREENLAND_COMPILER)),) |
| 32 | $(error Cannot enable art-greenland and art-llvm compiler simultaneously!) |
| 33 | endif |
| 34 | |
| 35 | ifeq ($(filter true,$(ART_USE_LLVM_COMPILER) $(ART_USE_GREENLAND_COMPILER)),true) |
| 36 | ART_REQUIRE_LLVM := true |
| 37 | else |
| 38 | ART_REQUIRE_LLVM := false |
| 39 | endif |
| 40 | |
| 41 | ifeq ($(ART_REQUIRE_LLVM),true) |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 42 | LLVM_ROOT_PATH := external/llvm |
| 43 | include $(LLVM_ROOT_PATH)/llvm.mk |
| 44 | endif |
| 45 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 46 | # directory used for gtests on device |
| 47 | ART_NATIVETEST_DIR := /data/nativetest/art |
| 48 | ART_NATIVETEST_OUT := $(TARGET_OUT_DATA_NATIVE_TESTS)/art |
| 49 | |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 50 | # directory used for tests on device |
| 51 | ART_TEST_DIR := /data/art-test |
| 52 | ART_TEST_OUT := $(TARGET_OUT_DATA)/art-test |
| 53 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 54 | ART_CPP_EXTENSION := .cc |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 55 | |
Elliott Hughes | 0af5543 | 2011-08-17 18:37:28 -0700 | [diff] [blame] | 56 | ART_C_INCLUDES := \ |
| 57 | external/gtest/include \ |
| 58 | external/icu4c/common \ |
| 59 | external/icu4c/i18n \ |
Elliott Hughes | 8d768a9 | 2011-09-14 16:35:25 -0700 | [diff] [blame] | 60 | external/valgrind/dynamic_annotations \ |
buzbee | c143c55 | 2011-08-20 17:38:58 -0700 | [diff] [blame] | 61 | external/zlib \ |
Elliott Hughes | adb8c67 | 2012-03-06 16:49:32 -0800 | [diff] [blame] | 62 | art/src |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 63 | |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 64 | art_cflags := \ |
Ian Rogers | 646c3d7 | 2012-02-17 23:55:19 -0800 | [diff] [blame] | 65 | -O2 \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 66 | -ggdb3 \ |
| 67 | -Wall \ |
| 68 | -Werror \ |
| 69 | -Wextra \ |
Elliott Hughes | eaa200d | 2012-01-05 16:30:31 -0800 | [diff] [blame] | 70 | -Wstrict-aliasing=3 \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 71 | -fno-align-jumps \ |
| 72 | -fstrict-aliasing |
| 73 | |
Brian Carlstrom | 69d7a6b | 2011-12-15 17:31:21 -0800 | [diff] [blame] | 74 | ifeq ($(HOST_OS),linux) |
Shih-wei Liao | 24782c6 | 2012-01-08 12:46:11 -0800 | [diff] [blame] | 75 | art_non_debug_cflags := \ |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 76 | -Wframe-larger-than=1728 |
Brian Carlstrom | 69d7a6b | 2011-12-15 17:31:21 -0800 | [diff] [blame] | 77 | endif |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 78 | |
| 79 | art_debug_cflags := \ |
Elliott Hughes | 06e3ad4 | 2012-02-07 14:51:57 -0800 | [diff] [blame] | 80 | -DDYNAMIC_ANNOTATIONS_ENABLED=1 \ |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 81 | -UNDEBUG |
| 82 | |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 83 | ART_HOST_CFLAGS := $(art_cflags) -DANDROID_SMP=1 |
| 84 | |
Logan Chien | 08e1ba3 | 2012-05-08 15:08:51 +0800 | [diff] [blame] | 85 | ART_TARGET_CFLAGS := $(art_cflags) -DART_TARGET |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 86 | ifeq ($(TARGET_CPU_SMP),true) |
| 87 | ART_TARGET_CFLAGS += -DANDROID_SMP=1 |
| 88 | else |
| 89 | ART_TARGET_CFLAGS += -DANDROID_SMP=0 |
| 90 | endif |
| 91 | |
Brian Carlstrom | 8952189 | 2011-12-07 22:05:07 -0800 | [diff] [blame] | 92 | # To use oprofile_android --callgraph, uncomment this and recompile with "mmm art -B -j16" |
| 93 | # ART_TARGET_CFLAGS += -fno-omit-frame-pointer -marm -mapcs |
| 94 | |
Elliott Hughes | 3b6baaa | 2011-10-14 19:13:56 -0700 | [diff] [blame] | 95 | ART_HOST_NON_DEBUG_CFLAGS := $(art_non_debug_cflags) |
| 96 | ART_TARGET_NON_DEBUG_CFLAGS := $(art_non_debug_cflags) |
| 97 | |
Brian Carlstrom | fd2ec54 | 2012-05-02 15:08:57 -0700 | [diff] [blame^] | 98 | # 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] | 99 | ART_HOST_DEBUG_CFLAGS := $(art_debug_cflags) -fkeep-inline-functions |
Brian Carlstrom | fd2ec54 | 2012-05-02 15:08:57 -0700 | [diff] [blame^] | 100 | ART_HOST_DEBUG_LDLIBS := -lsupc++ |
Elliott Hughes | ad6c9c3 | 2012-01-19 17:39:12 -0800 | [diff] [blame] | 101 | |
| 102 | ifneq ($(HOST_OS),linux) |
| 103 | # Some Mac OS pthread header files are broken with -fkeep-inline-functions. |
Elliott Hughes | 34cf514 | 2012-01-20 16:39:13 -0800 | [diff] [blame] | 104 | ART_HOST_DEBUG_CFLAGS := $(filter-out -fkeep-inline-functions,$(ART_HOST_DEBUG_CFLAGS)) |
Elliott Hughes | ad6c9c3 | 2012-01-19 17:39:12 -0800 | [diff] [blame] | 105 | endif |
| 106 | |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 107 | ART_TARGET_DEBUG_CFLAGS := $(art_debug_cflags) |
Elliott Hughes | 1d3f114 | 2011-09-13 12:00:00 -0700 | [diff] [blame] | 108 | |
TDYa127 | 58e63f9 | 2012-04-24 13:16:47 -0700 | [diff] [blame] | 109 | ifeq ($(ART_USE_LLVM_COMPILER),true) |
| 110 | PARALLEL_ART_COMPILE_JOBS := -j8 |
| 111 | endif |
| 112 | |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 113 | DEX2OAT_SRC_FILES := \ |
| 114 | src/dex2oat.cc |
| 115 | |
Brian Carlstrom | 78128a6 | 2011-09-15 17:21:19 -0700 | [diff] [blame] | 116 | OATDUMP_SRC_FILES := \ |
Elliott Hughes | 3e778f7 | 2012-05-21 15:29:52 -0700 | [diff] [blame] | 117 | src/oatdump.cc |
Brian Carlstrom | 78128a6 | 2011-09-15 17:21:19 -0700 | [diff] [blame] | 118 | |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 119 | OATEXEC_SRC_FILES := \ |
| 120 | src/oatexec.cc |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 121 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 122 | LIBART_COMMON_SRC_FILES := \ |
Elliott Hughes | 5ea047b | 2011-09-13 14:38:18 -0700 | [diff] [blame] | 123 | src/atomic.cc.arm \ |
Ian Rogers | 5d76c43 | 2011-10-31 21:42:49 -0700 | [diff] [blame] | 124 | src/card_table.cc \ |
Elliott Hughes | a250199 | 2011-08-26 19:39:54 -0700 | [diff] [blame] | 125 | src/check_jni.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 126 | src/class_linker.cc \ |
Brian Carlstrom | 1f87008 | 2011-08-23 16:02:11 -0700 | [diff] [blame] | 127 | src/class_loader.cc \ |
Brian Carlstrom | 3320cf4 | 2011-10-04 14:58:28 -0700 | [diff] [blame] | 128 | src/compiled_method.cc \ |
Brian Carlstrom | 9ea1cb1 | 2011-08-24 23:18:18 -0700 | [diff] [blame] | 129 | src/compiler.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 130 | src/debugger.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 131 | src/dex_cache.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 132 | src/dex_file.cc \ |
jeffhao | 10037c8 | 2012-01-23 15:06:23 -0800 | [diff] [blame] | 133 | src/dex_file_verifier.cc \ |
Carl Shapiro | 12eb78e | 2011-06-24 14:51:06 -0700 | [diff] [blame] | 134 | src/dex_instruction.cc \ |
Elliott Hughes | 3e778f7 | 2012-05-21 15:29:52 -0700 | [diff] [blame] | 135 | src/disassembler.cc \ |
| 136 | src/disassembler_arm.cc \ |
| 137 | src/disassembler_mips.cc \ |
| 138 | src/disassembler_x86.cc \ |
Ian Rogers | 30fab40 | 2012-01-23 15:43:46 -0800 | [diff] [blame] | 139 | src/dlmalloc.c \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 140 | src/file.cc \ |
| 141 | src/file_linux.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 142 | src/heap.cc \ |
Elliott Hughes | 5e71b52 | 2011-10-20 13:12:32 -0700 | [diff] [blame] | 143 | src/heap_bitmap.cc \ |
Jesse Wilson | c4824e6 | 2011-11-01 14:39:04 -0400 | [diff] [blame] | 144 | src/hprof/hprof.cc \ |
Jesse Wilson | 0c54ac1 | 2011-11-09 15:14:05 -0500 | [diff] [blame] | 145 | src/hprof/hprof_record.cc \ |
Brian Carlstrom | 4a289ed | 2011-08-16 17:17:49 -0700 | [diff] [blame] | 146 | src/image.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 147 | src/image_writer.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 148 | src/indirect_reference_table.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 149 | src/intern_table.cc \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 150 | src/jdwp/jdwp_event.cc \ |
| 151 | src/jdwp/jdwp_expand_buf.cc \ |
| 152 | src/jdwp/jdwp_handler.cc \ |
| 153 | src/jdwp/jdwp_main.cc \ |
| 154 | src/jdwp/jdwp_socket.cc \ |
Ian Rogers | df20fe0 | 2011-07-20 20:34:16 -0700 | [diff] [blame] | 155 | src/jni_internal.cc \ |
Elliott Hughes | 42ee142 | 2011-09-06 12:33:32 -0700 | [diff] [blame] | 156 | src/logging.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 157 | src/mark_stack.cc \ |
| 158 | src/mark_sweep.cc \ |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 159 | src/mem_map.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 160 | src/memory_region.cc \ |
Elliott Hughes | 54e7df1 | 2011-09-16 11:47:04 -0700 | [diff] [blame] | 161 | src/monitor.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 162 | src/mutex.cc \ |
Ian Rogers | 0dae08e | 2012-04-14 13:55:11 -0700 | [diff] [blame] | 163 | src/native/dalvik_system_DexFile.cc \ |
| 164 | src/native/dalvik_system_VMDebug.cc \ |
| 165 | src/native/dalvik_system_VMRuntime.cc \ |
| 166 | src/native/dalvik_system_VMStack.cc \ |
| 167 | src/native/dalvik_system_Zygote.cc \ |
| 168 | src/native/java_lang_Class.cc \ |
| 169 | src/native/java_lang_Object.cc \ |
| 170 | src/native/java_lang_Runtime.cc \ |
| 171 | src/native/java_lang_String.cc \ |
| 172 | src/native/java_lang_System.cc \ |
| 173 | src/native/java_lang_Thread.cc \ |
| 174 | src/native/java_lang_Throwable.cc \ |
| 175 | src/native/java_lang_VMClassLoader.cc \ |
| 176 | src/native/java_lang_reflect_Array.cc \ |
| 177 | src/native/java_lang_reflect_Constructor.cc \ |
| 178 | src/native/java_lang_reflect_Field.cc \ |
| 179 | src/native/java_lang_reflect_Method.cc \ |
| 180 | src/native/java_lang_reflect_Proxy.cc \ |
| 181 | src/native/java_util_concurrent_atomic_AtomicLong.cc \ |
| 182 | src/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc \ |
| 183 | src/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc \ |
| 184 | src/native/sun_misc_Unsafe.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 185 | src/oat/runtime/arm/stub_arm.cc \ |
| 186 | src/oat/runtime/x86/stub_x86.cc \ |
| 187 | src/oat/utils/arm/assembler_arm.cc \ |
| 188 | src/oat/utils/arm/managed_register_arm.cc \ |
| 189 | src/oat/utils/assembler.cc \ |
| 190 | src/oat/utils/x86/assembler_x86.cc \ |
| 191 | src/oat/utils/x86/managed_register_x86.cc \ |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 192 | src/oat.cc \ |
| 193 | src/oat_file.cc \ |
| 194 | src/oat_writer.cc \ |
Carl Shapiro | 3ee755d | 2011-06-28 12:11:04 -0700 | [diff] [blame] | 195 | src/object.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 196 | src/offsets.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 197 | src/os_linux.cc \ |
Brian Carlstrom | ae82698 | 2011-11-09 01:33:42 -0800 | [diff] [blame] | 198 | src/primitive.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 199 | src/reference_table.cc \ |
Elliott Hughes | 418d20f | 2011-09-22 14:00:39 -0700 | [diff] [blame] | 200 | src/reflection.cc \ |
Carl Shapiro | d4e48fd | 2011-06-30 18:53:29 -0700 | [diff] [blame] | 201 | src/runtime.cc \ |
Shih-wei Liao | a8a9c34 | 2012-03-03 22:35:16 -0800 | [diff] [blame] | 202 | src/runtime_support.cc \ |
Elliott Hughes | 88c5c35 | 2012-03-15 18:49:48 -0700 | [diff] [blame] | 203 | src/scoped_thread_list_lock.cc \ |
Elliott Hughes | e27955c | 2011-08-26 15:21:24 -0700 | [diff] [blame] | 204 | src/signal_catcher.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 205 | src/space.cc \ |
Elliott Hughes | 68e7652 | 2011-10-05 13:22:16 -0700 | [diff] [blame] | 206 | src/stack.cc \ |
Carl Shapiro | b557353 | 2011-07-12 18:22:59 -0700 | [diff] [blame] | 207 | src/stringpiece.cc \ |
Elliott Hughes | eb4f614 | 2011-07-15 17:43:51 -0700 | [diff] [blame] | 208 | src/stringprintf.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 209 | src/thread.cc \ |
Elliott Hughes | 8daa092 | 2011-09-11 13:46:25 -0700 | [diff] [blame] | 210 | src/thread_list.cc \ |
jeffhao | e343b76 | 2011-12-05 16:36:44 -0800 | [diff] [blame] | 211 | src/trace.cc \ |
Elliott Hughes | 814e403 | 2011-08-23 12:07:56 -0700 | [diff] [blame] | 212 | src/utf.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 213 | src/utils.cc \ |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 214 | src/well_known_classes.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 215 | src/zip_archive.cc \ |
| 216 | src/verifier/gc_map.cc \ |
| 217 | src/verifier/method_verifier.cc \ |
| 218 | src/verifier/reg_type.cc \ |
| 219 | src/verifier/reg_type_cache.cc \ |
| 220 | src/verifier/register_line.cc |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 221 | |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 222 | ifeq ($(ART_USE_LLVM_COMPILER),true) |
| 223 | LIBART_COMMON_SRC_FILES += \ |
Logan Chien | 3fe0c60 | 2012-03-27 21:14:37 +0800 | [diff] [blame] | 224 | src/compiler_llvm/elf_loader.cc \ |
Logan Chien | fca7e87 | 2011-12-20 20:08:22 +0800 | [diff] [blame] | 225 | src/compiler_llvm/inferred_reg_category_map.cc \ |
Logan Chien | 937105a | 2012-04-02 02:37:37 +0800 | [diff] [blame] | 226 | src/compiler_llvm/runtime_support_llvm.cc |
Shih-wei Liao | 6e94f14 | 2012-04-16 18:14:14 -0700 | [diff] [blame] | 227 | endif |
| 228 | |
Shih-wei Liao | e94d9b2 | 2012-05-22 09:01:24 -0700 | [diff] [blame] | 229 | ifeq ($(ART_USE_GREENLAND_COMPILER),true) |
| 230 | LIBART_COMMON_SRC_FILES += \ |
| 231 | src/greenland/inferred_reg_category_map.cc |
| 232 | endif |
| 233 | |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 234 | LIBART_COMMON_SRC_FILES += \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 235 | src/oat/runtime/context.cc \ |
| 236 | src/oat/runtime/support_alloc.cc \ |
| 237 | src/oat/runtime/support_cast.cc \ |
| 238 | src/oat/runtime/support_debug.cc \ |
| 239 | src/oat/runtime/support_dexcache.cc \ |
| 240 | src/oat/runtime/support_field.cc \ |
| 241 | src/oat/runtime/support_fillarray.cc \ |
| 242 | src/oat/runtime/support_invoke.cc \ |
| 243 | src/oat/runtime/support_jni.cc \ |
| 244 | src/oat/runtime/support_locks.cc \ |
| 245 | src/oat/runtime/support_math.cc \ |
| 246 | src/oat/runtime/support_proxy.cc \ |
| 247 | src/oat/runtime/support_stubs.cc \ |
| 248 | src/oat/runtime/support_thread.cc \ |
| 249 | src/oat/runtime/support_throw.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 250 | src/oat/runtime/support_trace.cc |
Shih-wei Liao | d1fec81 | 2012-02-13 09:51:10 -0800 | [diff] [blame] | 251 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 252 | LIBART_TARGET_SRC_FILES := \ |
| 253 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 254 | src/jdwp/jdwp_adb.cc \ |
Elliott Hughes | ffe6736 | 2011-07-17 12:09:27 -0700 | [diff] [blame] | 255 | src/logging_android.cc \ |
Elliott Hughes | fc86162 | 2011-10-17 17:57:47 -0700 | [diff] [blame] | 256 | src/monitor_android.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 257 | src/runtime_android.cc \ |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 258 | src/thread_android.cc |
| 259 | |
| 260 | ifeq ($(TARGET_ARCH),arm) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 261 | LIBART_TARGET_SRC_FILES += \ |
| 262 | src/oat/runtime/arm/context_arm.cc.arm \ |
| 263 | src/oat/runtime/arm/oat_support_entrypoints_arm.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 264 | src/oat/runtime/arm/runtime_support_arm.S |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 265 | else # TARGET_ARCH != arm |
| 266 | ifeq ($(TARGET_ARCH),x86) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 267 | LIBART_TARGET_SRC_FILES += \ |
| 268 | src/oat/runtime/x86/context_x86.cc \ |
| 269 | src/oat/runtime/x86/oat_support_entrypoints_x86.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 270 | src/oat/runtime/x86/runtime_support_x86.S |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 271 | else # TARGET_ARCH != x86 |
| 272 | ifeq ($(TARGET_ARCH),mips) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 273 | LIBART_TARGET_SRC_FILES += \ |
| 274 | src/oat/runtime/mips/oat_support_entrypoints_mips.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 275 | src/oat/runtime/mips/runtime_support_mips.S |
| 276 | else # TARGET_ARCH != mips |
| 277 | $(error unsupported TARGET_ARCH=$(TARGET_ARCH)) |
| 278 | endif # TARGET_ARCH != mips |
| 279 | endif # TARGET_ARCH != x86 |
| 280 | endif # TARGET_ARCH != arm |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 281 | |
| 282 | ifeq ($(TARGET_ARCH),arm) |
| 283 | LIBART_TARGET_SRC_FILES += src/thread_arm.cc |
| 284 | else # TARGET_ARCH != arm |
| 285 | ifeq ($(TARGET_ARCH),x86) |
| 286 | LIBART_TARGET_SRC_FILES += src/thread_x86.cc |
| 287 | else # TARGET_ARCH != x86 |
| 288 | ifeq ($(TARGET_ARCH),mips) |
| 289 | LIBART_TARGET_SRC_FILES += src/thread_mips.cc |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 290 | else # TARGET_ARCH != mips |
| 291 | $(error unsupported TARGET_ARCH=$(TARGET_ARCH)) |
| 292 | endif # TARGET_ARCH != mips |
| 293 | endif # TARGET_ARCH != x86 |
| 294 | endif # TARGET_ARCH != arm |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 295 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 296 | LIBART_HOST_SRC_FILES := \ |
| 297 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | ffe6736 | 2011-07-17 12:09:27 -0700 | [diff] [blame] | 298 | src/logging_linux.cc \ |
Elliott Hughes | fc86162 | 2011-10-17 17:57:47 -0700 | [diff] [blame] | 299 | src/monitor_linux.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 300 | src/runtime_linux.cc \ |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 301 | src/thread_linux.cc |
| 302 | |
| 303 | ifeq ($(HOST_ARCH),x86) |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 304 | LIBART_HOST_SRC_FILES += \ |
| 305 | src/oat/runtime/x86/oat_support_entrypoints_x86.cc \ |
| 306 | src/oat/runtime/x86/context_x86.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 307 | src/oat/runtime/x86/runtime_support_x86.S |
| 308 | else # HOST_ARCH != x86 |
| 309 | $(error unsupported HOST_ARCH=$(HOST_ARCH)) |
| 310 | endif # HOST_ARCH != x86 |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 311 | |
| 312 | ifeq ($(HOST_ARCH),x86) |
| 313 | LIBART_HOST_SRC_FILES += src/thread_x86.cc |
Brian Carlstrom | 5147733 | 2012-03-25 20:20:26 -0700 | [diff] [blame] | 314 | else # HOST_ARCH != x86 |
| 315 | $(error unsupported HOST_ARCH=$(HOST_ARCH)) |
| 316 | endif # HOST_ARCH != x86 |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 317 | |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 318 | |
Elliott Hughes | 0e57ccb | 2012-04-03 16:04:52 -0700 | [diff] [blame] | 319 | LIBART_ENUM_OPERATOR_OUT_HEADER_FILES := \ |
| 320 | src/indirect_reference_table.h \ |
| 321 | src/instruction_set.h \ |
| 322 | src/invoke_type.h \ |
Elliott Hughes | 460384f | 2012-04-04 16:53:10 -0700 | [diff] [blame] | 323 | src/jdwp/jdwp.h \ |
| 324 | src/jdwp/jdwp_constants.h \ |
Elliott Hughes | 34e0696 | 2012-04-09 13:55:55 -0700 | [diff] [blame] | 325 | src/mutex.h \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 326 | src/thread.h \ |
| 327 | src/verifier/method_verifier.h |
Elliott Hughes | 0e57ccb | 2012-04-03 16:04:52 -0700 | [diff] [blame] | 328 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 329 | LIBARTTEST_COMMON_SRC_FILES := \ |
Shih-wei Liao | a6af3c3 | 2011-10-17 15:25:11 -0700 | [diff] [blame] | 330 | test/StackWalk/stack_walk_jni.cc \ |
| 331 | test/ReferenceMap/stack_walk_refmap_jni.cc |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 332 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 333 | TEST_COMMON_SRC_FILES := \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 334 | src/class_linker_test.cc \ |
Brian Carlstrom | aded5f7 | 2011-10-07 17:15:04 -0700 | [diff] [blame] | 335 | src/compiler_test.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 336 | src/dex_cache_test.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 337 | src/dex_file_test.cc \ |
| 338 | src/dex_instruction_visitor_test.cc \ |
Shih-wei Liao | 2fb9753 | 2011-08-11 16:17:23 -0700 | [diff] [blame] | 339 | src/exception_test.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 340 | src/file_test.cc \ |
Brian Carlstrom | 4b2966b | 2012-05-22 08:54:52 -0700 | [diff] [blame] | 341 | src/gtest_test.cc \ |
Brian Carlstrom | 1f87008 | 2011-08-23 16:02:11 -0700 | [diff] [blame] | 342 | src/heap_test.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 343 | src/image_test.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 344 | src/indirect_reference_table_test.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 345 | src/intern_table_test.cc \ |
Ian Rogers | cd2764f | 2011-09-02 15:38:24 -0700 | [diff] [blame] | 346 | src/jni_internal_test.cc \ |
| 347 | src/jni_compiler_test.cc \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 348 | src/oat/utils/arm/managed_register_arm_test.cc \ |
| 349 | src/oat/utils/x86/managed_register_x86_test.cc \ |
Brian Carlstrom | cd74c4b | 2012-01-23 13:21:00 -0800 | [diff] [blame] | 350 | src/mutex_test.cc \ |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 351 | src/oat_test.cc \ |
Carl Shapiro | 894d0fa | 2011-06-30 14:48:49 -0700 | [diff] [blame] | 352 | src/object_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 353 | src/reference_table_test.cc \ |
Carl Shapiro | fc322c7 | 2011-07-27 00:20:01 -0700 | [diff] [blame] | 354 | src/runtime_test.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 355 | src/space_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 356 | src/utils_test.cc \ |
Ian Rogers | 776ac1f | 2012-04-13 23:36:36 -0700 | [diff] [blame] | 357 | src/zip_archive_test.cc \ |
| 358 | src/verifier/method_verifier_test.cc \ |
| 359 | src/verifier/reg_type_test.cc |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 360 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 361 | TEST_TARGET_SRC_FILES := \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 362 | $(TEST_COMMON_SRC_FILES) |
Carl Shapiro | 008e412 | 2011-06-23 17:27:46 -0700 | [diff] [blame] | 363 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 364 | TEST_HOST_SRC_FILES := \ |
| 365 | $(TEST_COMMON_SRC_FILES) \ |
Ian Rogers | 57b86d4 | 2012-03-27 16:05:41 -0700 | [diff] [blame] | 366 | src/oat/utils/x86/assembler_x86_test.cc |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 367 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 368 | # subdirectories of test/ which are used as inputs for gtests |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 369 | TEST_DEX_DIRECTORIES := \ |
Shih-wei Liao | 303b01e | 2011-09-14 00:46:13 -0700 | [diff] [blame] | 370 | AbstractMethod \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 371 | AllFields \ |
Ian Rogers | 0571d35 | 2011-11-03 19:51:38 -0700 | [diff] [blame] | 372 | CreateMethodSignature \ |
Brian Carlstrom | 33f741e | 2011-10-03 11:24:05 -0700 | [diff] [blame] | 373 | ExceptionHandle \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 374 | IntMath \ |
| 375 | Interfaces \ |
| 376 | Main \ |
| 377 | MyClass \ |
| 378 | MyClassNatives \ |
| 379 | Nested \ |
Elliott Hughes | 7740579 | 2012-03-15 15:22:12 -0700 | [diff] [blame] | 380 | NonStaticLeafMethods \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 381 | ProtoCompare \ |
| 382 | ProtoCompare2 \ |
| 383 | StaticLeafMethods \ |
| 384 | Statics \ |
jeffhao | abcfde3 | 2011-09-29 15:05:18 -0700 | [diff] [blame] | 385 | StaticsFromCode \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 386 | XandY |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 387 | |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 388 | # subdirectories of test/ which are used with test-art-target-oat |
| 389 | # Declare the simplest tests (Main, HelloWorld, and Fibonacci) first, the rest are alphabetical |
| 390 | TEST_OAT_DIRECTORIES := \ |
| 391 | Main \ |
| 392 | HelloWorld \ |
| 393 | Fibonacci \ |
| 394 | \ |
| 395 | ExceptionTest \ |
| 396 | GrowthLimit \ |
Mathieu Chartier | bba47a4 | 2012-05-30 10:53:58 -0700 | [diff] [blame] | 397 | ConcurrentGC \ |
Brian Carlstrom | 32b4b2a | 2012-01-31 16:21:40 -0800 | [diff] [blame] | 398 | IntMath \ |
| 399 | Invoke \ |
| 400 | MemUsage \ |
| 401 | ParallelGC \ |
| 402 | ReferenceMap \ |
| 403 | ReflectionTest \ |
| 404 | StackWalk \ |
| 405 | ThreadStress |
| 406 | |
| 407 | # TODO: Enable when the StackWalk2 tests are passing |
| 408 | # StackWalk2 \ |
| 409 | |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 410 | ART_BUILD_TARGET := false |
| 411 | ART_BUILD_HOST := false |
| 412 | ifeq ($(ART_BUILD_TARGET_NDEBUG),true) |
| 413 | ART_BUILD_TARGET := true |
| 414 | endif |
| 415 | ifeq ($(ART_BUILD_TARGET_DEBUG),true) |
| 416 | ART_BUILD_TARGET := true |
| 417 | endif |
| 418 | ifeq ($(ART_BUILD_HOST_NDEBUG),true) |
| 419 | ART_BUILD_HOST := true |
| 420 | endif |
| 421 | ifeq ($(ART_BUILD_HOST_DEBUG),true) |
| 422 | ART_BUILD_HOST := true |
| 423 | endif |