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 := \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 28 | -O0 \ |
| 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 | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 38 | AEXEC_SRC_FILES := \ |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 39 | src/main.cc |
| 40 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 41 | LIBART_COMMON_SRC_FILES := \ |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 42 | src/assembler.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 43 | src/calling_convention.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 44 | src/class_linker.cc \ |
Brian Carlstrom | 9ea1cb1 | 2011-08-24 23:18:18 -0700 | [diff] [blame^] | 45 | src/compiler.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 46 | src/dex_cache.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 47 | src/dex_file.cc \ |
Carl Shapiro | 12eb78e | 2011-06-24 14:51:06 -0700 | [diff] [blame] | 48 | src/dex_instruction.cc \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 49 | src/dex_verifier.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 50 | src/file.cc \ |
| 51 | src/file_linux.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 52 | src/heap.cc \ |
Brian Carlstrom | 4a289ed | 2011-08-16 17:17:49 -0700 | [diff] [blame] | 53 | src/image.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 54 | src/image_writer.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 55 | src/indirect_reference_table.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 56 | src/intern_table.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 57 | src/jni_compiler.cc \ |
Ian Rogers | df20fe0 | 2011-07-20 20:34:16 -0700 | [diff] [blame] | 58 | src/jni_internal.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 59 | src/mark_stack.cc \ |
| 60 | src/mark_sweep.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 61 | src/memory_region.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 62 | src/mspace.c \ |
Carl Shapiro | 3ee755d | 2011-06-28 12:11:04 -0700 | [diff] [blame] | 63 | src/object.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 64 | src/object_bitmap.cc \ |
| 65 | src/offsets.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 66 | src/os_linux.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 67 | src/reference_table.cc \ |
Carl Shapiro | d4e48fd | 2011-06-30 18:53:29 -0700 | [diff] [blame] | 68 | src/runtime.cc \ |
Carl Shapiro | 69759ea | 2011-07-21 18:13:35 -0700 | [diff] [blame] | 69 | src/space.cc \ |
Carl Shapiro | b557353 | 2011-07-12 18:22:59 -0700 | [diff] [blame] | 70 | src/stringpiece.cc \ |
Elliott Hughes | eb4f614 | 2011-07-15 17:43:51 -0700 | [diff] [blame] | 71 | src/stringprintf.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 72 | src/thread.cc \ |
Elliott Hughes | 814e403 | 2011-08-23 12:07:56 -0700 | [diff] [blame] | 73 | src/utf.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 74 | src/utils.cc \ |
buzbee | 5433072 | 2011-08-23 16:46:55 -0700 | [diff] [blame] | 75 | src/zip_archive.cc \ |
| 76 | src/runtime_support.S |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 77 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 78 | LIBART_TARGET_SRC_FILES := \ |
| 79 | $(LIBART_COMMON_SRC_FILES) \ |
buzbee | 67bf885 | 2011-08-17 17:51:35 -0700 | [diff] [blame] | 80 | src/compiler/Utility.cc \ |
| 81 | src/compiler/SSATransformation.cc \ |
| 82 | src/compiler/Dataflow.cc \ |
| 83 | src/compiler/IntermediateRep.cc \ |
| 84 | src/compiler/Ralloc.cc \ |
| 85 | src/compiler/Frontend.cc \ |
| 86 | src/compiler/codegen/RallocUtil.cc \ |
| 87 | src/compiler/codegen/arm/Assemble.cc \ |
| 88 | src/compiler/codegen/arm/ArchUtility.cc \ |
| 89 | src/compiler/codegen/arm/LocalOptimizations.cc \ |
| 90 | src/compiler/codegen/arm/ArmRallocUtil.cc \ |
| 91 | src/compiler/codegen/arm/armv7-a/Codegen.cc \ |
Elliott Hughes | eb4f614 | 2011-07-15 17:43:51 -0700 | [diff] [blame] | 92 | src/assembler_arm.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 93 | src/calling_convention_arm.cc \ |
Carl Shapiro | 9b9ba28 | 2011-08-14 15:30:39 -0700 | [diff] [blame] | 94 | src/jni_internal_arm.cc \ |
Elliott Hughes | ffe6736 | 2011-07-17 12:09:27 -0700 | [diff] [blame] | 95 | src/logging_android.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 96 | src/managed_register_arm.cc \ |
| 97 | src/runtime_android.cc \ |
| 98 | src/thread_arm.cc |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 99 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 100 | LIBART_HOST_SRC_FILES := \ |
| 101 | $(LIBART_COMMON_SRC_FILES) \ |
Elliott Hughes | eb4f614 | 2011-07-15 17:43:51 -0700 | [diff] [blame] | 102 | src/assembler_x86.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 103 | src/calling_convention_x86.cc \ |
Carl Shapiro | 9b9ba28 | 2011-08-14 15:30:39 -0700 | [diff] [blame] | 104 | src/jni_internal_x86.cc \ |
Elliott Hughes | ffe6736 | 2011-07-17 12:09:27 -0700 | [diff] [blame] | 105 | src/logging_linux.cc \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 106 | src/managed_register_x86.cc \ |
| 107 | src/runtime_linux.cc \ |
| 108 | src/thread_x86.cc |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 109 | |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 110 | LIBARTTEST_COMMON_SRC_FILES := \ |
| 111 | src/base64.cc |
| 112 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 113 | TEST_COMMON_SRC_FILES := \ |
Carl Shapiro | 0e5d75d | 2011-07-06 18:28:37 -0700 | [diff] [blame] | 114 | src/class_linker_test.cc \ |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 115 | src/dex_cache_test.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 116 | src/dex_file_test.cc \ |
| 117 | src/dex_instruction_visitor_test.cc \ |
Shih-wei Liao | 2fb9753 | 2011-08-11 16:17:23 -0700 | [diff] [blame] | 118 | src/exception_test.cc \ |
Brian Carlstrom | db4d540 | 2011-08-09 12:18:28 -0700 | [diff] [blame] | 119 | src/file_test.cc \ |
| 120 | src/image_test.cc \ |
Elliott Hughes | 6c1a394 | 2011-08-17 15:00:06 -0700 | [diff] [blame] | 121 | src/indirect_reference_table_test.cc \ |
Brian Carlstrom | 7e93b50 | 2011-08-04 14:16:22 -0700 | [diff] [blame] | 122 | src/intern_table_test.cc \ |
Carl Shapiro | 9b9ba28 | 2011-08-14 15:30:39 -0700 | [diff] [blame] | 123 | src/jni_internal_test.cc.arm \ |
Carl Shapiro | e2d373e | 2011-07-25 15:20:06 -0700 | [diff] [blame] | 124 | src/jni_compiler_test.cc.arm \ |
Carl Shapiro | 894d0fa | 2011-06-30 14:48:49 -0700 | [diff] [blame] | 125 | src/object_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 126 | src/reference_table_test.cc \ |
Carl Shapiro | fc322c7 | 2011-07-27 00:20:01 -0700 | [diff] [blame] | 127 | src/runtime_test.cc \ |
Brian Carlstrom | b0460ea | 2011-07-29 10:08:05 -0700 | [diff] [blame] | 128 | src/space_test.cc \ |
Elliott Hughes | 11e4507 | 2011-08-16 17:40:46 -0700 | [diff] [blame] | 129 | src/utils_test.cc \ |
buzbee | c143c55 | 2011-08-20 17:38:58 -0700 | [diff] [blame] | 130 | src/zip_archive_test.cc \ |
| 131 | src/compiler_test.cc |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 132 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 133 | TEST_TARGET_SRC_FILES := \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 134 | $(TEST_COMMON_SRC_FILES) \ |
| 135 | src/managed_register_arm_test.cc |
Carl Shapiro | 008e412 | 2011-06-23 17:27:46 -0700 | [diff] [blame] | 136 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 137 | TEST_HOST_SRC_FILES := \ |
| 138 | $(TEST_COMMON_SRC_FILES) \ |
Ian Rogers | b033c75 | 2011-07-20 12:22:35 -0700 | [diff] [blame] | 139 | src/assembler_x86_test.cc \ |
| 140 | src/managed_register_x86_test.cc |