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 | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 17 | ART_CPP_EXTENSION := .cc |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 18 | |
Elliott Hughes | 0af5543 | 2011-08-17 18:37:28 -0700 | [diff] [blame] | 19 | ART_C_INCLUDES := \ |
| 20 | external/gtest/include \ |
| 21 | external/icu4c/common \ |
| 22 | external/icu4c/i18n \ |
buzbee | c143c55 | 2011-08-20 17:38:58 -0700 | [diff] [blame] | 23 | external/zlib \ |
| 24 | art/src \ |
| 25 | dalvik/libdex |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 26 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 27 | ART_CFLAGS := \ |
Elliott Hughes | 7f40ffc | 2011-09-04 10:50:01 -0700 | [diff] [blame] | 28 | -O2 \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 29 | -ggdb3 \ |
| 30 | -Wall \ |
| 31 | -Werror \ |
| 32 | -Wextra \ |
| 33 | -Wno-unused-parameter \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 34 | -Wstrict-aliasing=2 \ |
| 35 | -fno-align-jumps \ |
| 36 | -fstrict-aliasing |
| 37 | |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 38 | DEX2OAT_SRC_FILES := \ |
| 39 | src/dex2oat.cc |
| 40 | |
| 41 | OATEXEC_SRC_FILES := \ |
| 42 | src/oatexec.cc |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 43 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 44 | LIBART_COMMON_SRC_FILES := \ |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 45 | src/assembler.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 46 | src/assembler_arm.cc \ |
| 47 | src/assembler_x86.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 48 | src/calling_convention.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 49 | src/calling_convention_arm.cc \ |
| 50 | src/calling_convention_x86.cc \ |
Elliott Hughes | a250199 | 2011-08-26 19:39:54 -0700 | [diff] [blame] | 51 | src/check_jni.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 52 | src/class_linker.cc \ |
Brian Carlstrom | 1f87008 | 2011-08-23 16:02:11 -0700 | [diff] [blame] | 53 | src/class_loader.cc \ |
Brian Carlstrom | 9ea1cb1 | 2011-08-24 23:18:18 -0700 | [diff] [blame] | 54 | src/compiler.cc \ |
Brian Carlstrom | 2cc022b | 2011-08-25 10:05:39 -0700 | [diff] [blame] | 55 | src/compiler/Dataflow.cc \ |
| 56 | src/compiler/Frontend.cc \ |
| 57 | src/compiler/IntermediateRep.cc \ |
| 58 | src/compiler/Ralloc.cc \ |
| 59 | src/compiler/SSATransformation.cc \ |
| 60 | src/compiler/Utility.cc \ |
| 61 | src/compiler/codegen/RallocUtil.cc \ |
| 62 | src/compiler/codegen/arm/ArchUtility.cc \ |
| 63 | src/compiler/codegen/arm/ArmRallocUtil.cc \ |
| 64 | src/compiler/codegen/arm/Assemble.cc \ |
| 65 | src/compiler/codegen/arm/LocalOptimizations.cc \ |
| 66 | src/compiler/codegen/arm/armv7-a/Codegen.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 67 | src/dex_cache.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 68 | src/dex_file.cc \ |
Carl Shapiro | 12eb78e | 2011-06-24 14:51:06 -0700 | [diff] [blame] | 69 | src/dex_instruction.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 70 | src/dex_verifier.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 71 | src/file.cc \ |
| 72 | src/file_linux.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 73 | src/heap.cc \ |
Brian Carlstrom | 4a289ed | 2011-08-16 17:17:49 -0700 | [diff] [blame] | 74 | src/image.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 75 | src/image_writer.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 76 | src/indirect_reference_table.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 77 | src/intern_table.cc \ |
Elliott Hughes | bf86d04 | 2011-08-31 17:53:14 -0700 | [diff] [blame] | 78 | src/java_lang_Object.cc \ |
| 79 | src/java_lang_Runtime.cc \ |
| 80 | src/java_lang_String.cc \ |
| 81 | src/java_lang_System.cc \ |
Elliott Hughes | 1240dad | 2011-09-09 16:24:50 -0700 | [diff] [blame] | 82 | src/java_lang_Throwable.cc \ |
Elliott Hughes | bf86d04 | 2011-08-31 17:53:14 -0700 | [diff] [blame] | 83 | src/java_util_concurrent_atomic_AtomicLong.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 84 | src/jni_compiler.cc \ |
Ian Rogers | df20fe0 | 2011-07-20 20:34:16 -0700 | [diff] [blame] | 85 | src/jni_internal.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 86 | src/jni_internal_arm.cc \ |
| 87 | src/jni_internal_x86.cc \ |
Elliott Hughes | 42ee142 | 2011-09-06 12:33:32 -0700 | [diff] [blame] | 88 | src/logging.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 89 | src/mark_stack.cc \ |
| 90 | src/mark_sweep.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 91 | src/managed_register_arm.cc \ |
| 92 | src/managed_register_x86.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 93 | src/memory_region.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 94 | src/mspace.c \ |
Carl Shapiro | 3ee755d | 2011-06-28 12:11:04 -0700 | [diff] [blame] | 95 | src/object.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 96 | src/object_bitmap.cc \ |
| 97 | src/offsets.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 98 | src/os_linux.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 99 | src/reference_table.cc \ |
Carl Shapiro | d4e48fd | 2011-06-30 18:53:29 -0700 | [diff] [blame] | 100 | src/runtime.cc \ |
Elliott Hughes | e27955c | 2011-08-26 15:21:24 -0700 | [diff] [blame] | 101 | src/signal_catcher.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 102 | src/space.cc \ |
Carl Shapiro | b557353 | 2011-07-12 18:22:59 -0700 | [diff] [blame] | 103 | src/stringpiece.cc \ |
Elliott Hughes | eb4f614 | 2011-07-15 17:43:51 -0700 | [diff] [blame] | 104 | src/stringprintf.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 105 | src/thread.cc \ |
Elliott Hughes | 814e403 | 2011-08-23 12:07:56 -0700 | [diff] [blame] | 106 | src/utf.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 107 | src/utils.cc \ |
buzbee | 5433072 | 2011-08-23 16:46:55 -0700 | [diff] [blame] | 108 | src/zip_archive.cc \ |
| 109 | src/runtime_support.S |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 110 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 111 | LIBART_TARGET_SRC_FILES := \ |
| 112 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | ffe6736 | 2011-07-17 12:09:27 -0700 | [diff] [blame] | 113 | src/logging_android.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 114 | src/runtime_android.cc \ |
| 115 | src/thread_arm.cc |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 116 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 117 | LIBART_HOST_SRC_FILES := \ |
| 118 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | ffe6736 | 2011-07-17 12:09:27 -0700 | [diff] [blame] | 119 | src/logging_linux.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 120 | src/runtime_linux.cc \ |
| 121 | src/thread_x86.cc |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 122 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 123 | LIBARTTEST_COMMON_SRC_FILES := \ |
| 124 | src/base64.cc |
| 125 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 126 | TEST_COMMON_SRC_FILES := \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 127 | src/class_linker_test.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 128 | src/dex_cache_test.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 129 | src/dex_file_test.cc \ |
| 130 | src/dex_instruction_visitor_test.cc \ |
jeffhao | ba5ebb9 | 2011-08-25 17:24:37 -0700 | [diff] [blame] | 131 | src/dex_verifier_test.cc \ |
Shih-wei Liao | 2fb9753 | 2011-08-11 16:17:23 -0700 | [diff] [blame] | 132 | src/exception_test.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 133 | src/file_test.cc \ |
Brian Carlstrom | 1f87008 | 2011-08-23 16:02:11 -0700 | [diff] [blame] | 134 | src/heap_test.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 135 | src/image_test.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 136 | src/indirect_reference_table_test.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 137 | src/intern_table_test.cc \ |
Ian Rogers | cd2764f | 2011-09-02 15:38:24 -0700 | [diff] [blame] | 138 | src/jni_internal_test.cc \ |
| 139 | src/jni_compiler_test.cc \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 140 | src/managed_register_arm_test.cc \ |
| 141 | src/managed_register_x86_test.cc \ |
Carl Shapiro | 894d0fa | 2011-06-30 14:48:49 -0700 | [diff] [blame] | 142 | src/object_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 143 | src/reference_table_test.cc \ |
Carl Shapiro | fc322c7 | 2011-07-27 00:20:01 -0700 | [diff] [blame] | 144 | src/runtime_test.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 145 | src/space_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 146 | src/utils_test.cc \ |
buzbee | c143c55 | 2011-08-20 17:38:58 -0700 | [diff] [blame] | 147 | src/zip_archive_test.cc \ |
| 148 | src/compiler_test.cc |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 149 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 150 | TEST_TARGET_SRC_FILES := \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 151 | $(TEST_COMMON_SRC_FILES) |
Carl Shapiro | 008e412 | 2011-06-23 17:27:46 -0700 | [diff] [blame] | 152 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 153 | TEST_HOST_SRC_FILES := \ |
| 154 | $(TEST_COMMON_SRC_FILES) \ |
Ian Rogers | 2c8f653 | 2011-09-02 17:16:34 -0700 | [diff] [blame] | 155 | src/assembler_x86_test.cc |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 156 | |
| 157 | # subdirectories of test/ |
| 158 | TEST_DEX_DIRECTORIES := \ |
| 159 | AllFields \ |
| 160 | CreateMethodDescriptor \ |
| 161 | Fibonacci \ |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 162 | HelloWorld \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 163 | IntMath \ |
| 164 | Interfaces \ |
| 165 | Main \ |
| 166 | MyClass \ |
| 167 | MyClassNatives \ |
| 168 | Nested \ |
| 169 | ProtoCompare \ |
| 170 | ProtoCompare2 \ |
| 171 | StaticLeafMethods \ |
| 172 | Statics \ |
Elliott Hughes | 0f4c41d | 2011-09-04 14:58:03 -0700 | [diff] [blame] | 173 | SystemMethods \ |
buzbee | 109bd6a | 2011-09-06 13:58:41 -0700 | [diff] [blame] | 174 | Invoke \ |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 175 | XandY |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame^] | 176 | |
| 177 | ART_BUILD_TARGET := false |
| 178 | ART_BUILD_HOST := false |
| 179 | ifeq ($(ART_BUILD_TARGET_NDEBUG),true) |
| 180 | ART_BUILD_TARGET := true |
| 181 | endif |
| 182 | ifeq ($(ART_BUILD_TARGET_DEBUG),true) |
| 183 | ART_BUILD_TARGET := true |
| 184 | endif |
| 185 | ifeq ($(ART_BUILD_HOST_NDEBUG),true) |
| 186 | ART_BUILD_HOST := true |
| 187 | endif |
| 188 | ifeq ($(ART_BUILD_HOST_DEBUG),true) |
| 189 | ART_BUILD_HOST := true |
| 190 | endif |