blob: 3c203d4b18aac24d9e0d40bbd0b2e01cc30ebb74 [file] [log] [blame]
Carl Shapiro7b216702011-06-17 15:09:26 -07001#
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 Carlstromcdc8de42011-07-19 14:23:17 -070017ART_CPP_EXTENSION := .cc
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070018
Elliott Hughes0af55432011-08-17 18:37:28 -070019ART_C_INCLUDES := \
20 external/gtest/include \
21 external/icu4c/common \
22 external/icu4c/i18n \
buzbeec143c552011-08-20 17:38:58 -070023 external/zlib \
24 art/src \
25 dalvik/libdex
Brian Carlstromb0460ea2011-07-29 10:08:05 -070026
Brian Carlstromcdc8de42011-07-19 14:23:17 -070027ART_CFLAGS := \
Elliott Hughes7f40ffc2011-09-04 10:50:01 -070028 -O2 \
Carl Shapiro1fb86202011-06-27 17:43:13 -070029 -ggdb3 \
30 -Wall \
31 -Werror \
32 -Wextra \
33 -Wno-unused-parameter \
Carl Shapiro1fb86202011-06-27 17:43:13 -070034 -Wstrict-aliasing=2 \
35 -fno-align-jumps \
36 -fstrict-aliasing
37
Brian Carlstrom69b15fb2011-09-03 12:25:21 -070038DEX2OAT_SRC_FILES := \
39 src/dex2oat.cc
40
41OATEXEC_SRC_FILES := \
42 src/oatexec.cc
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070043
Brian Carlstrom934486c2011-07-12 23:42:50 -070044LIBART_COMMON_SRC_FILES := \
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070045 src/assembler.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -070046 src/assembler_arm.cc \
47 src/assembler_x86.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070048 src/calling_convention.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -070049 src/calling_convention_arm.cc \
50 src/calling_convention_x86.cc \
Elliott Hughesa2501992011-08-26 19:39:54 -070051 src/check_jni.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070052 src/class_linker.cc \
Brian Carlstrom1f870082011-08-23 16:02:11 -070053 src/class_loader.cc \
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -070054 src/compiler.cc \
Brian Carlstrom2cc022b2011-08-25 10:05:39 -070055 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 Carlstrom7e49dca2011-07-22 18:07:34 -070067 src/dex_cache.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070068 src/dex_file.cc \
Carl Shapiro12eb78e2011-06-24 14:51:06 -070069 src/dex_instruction.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070070 src/dex_verifier.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -070071 src/file.cc \
72 src/file_linux.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070073 src/heap.cc \
Brian Carlstrom4a289ed2011-08-16 17:17:49 -070074 src/image.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -070075 src/image_writer.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -070076 src/indirect_reference_table.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -070077 src/intern_table.cc \
Elliott Hughesbf86d042011-08-31 17:53:14 -070078 src/java_lang_Object.cc \
79 src/java_lang_Runtime.cc \
80 src/java_lang_String.cc \
81 src/java_lang_System.cc \
Elliott Hughes1240dad2011-09-09 16:24:50 -070082 src/java_lang_Throwable.cc \
Elliott Hughesbf86d042011-08-31 17:53:14 -070083 src/java_util_concurrent_atomic_AtomicLong.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070084 src/jni_compiler.cc \
Ian Rogersdf20fe02011-07-20 20:34:16 -070085 src/jni_internal.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -070086 src/jni_internal_arm.cc \
87 src/jni_internal_x86.cc \
Elliott Hughes42ee1422011-09-06 12:33:32 -070088 src/logging.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070089 src/mark_stack.cc \
90 src/mark_sweep.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -070091 src/managed_register_arm.cc \
92 src/managed_register_x86.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070093 src/memory_region.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070094 src/mspace.c \
Carl Shapiro3ee755d2011-06-28 12:11:04 -070095 src/object.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070096 src/object_bitmap.cc \
97 src/offsets.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -070098 src/os_linux.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -070099 src/reference_table.cc \
Carl Shapirod4e48fd2011-06-30 18:53:29 -0700100 src/runtime.cc \
Elliott Hughese27955c2011-08-26 15:21:24 -0700101 src/signal_catcher.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -0700102 src/space.cc \
Carl Shapirob5573532011-07-12 18:22:59 -0700103 src/stringpiece.cc \
Elliott Hugheseb4f6142011-07-15 17:43:51 -0700104 src/stringprintf.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700105 src/thread.cc \
Elliott Hughes814e4032011-08-23 12:07:56 -0700106 src/utf.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700107 src/utils.cc \
buzbee54330722011-08-23 16:46:55 -0700108 src/zip_archive.cc \
109 src/runtime_support.S
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -0700110
Brian Carlstrom934486c2011-07-12 23:42:50 -0700111LIBART_TARGET_SRC_FILES := \
112 $(LIBART_COMMON_SRC_FILES) \
Elliott Hughesffe67362011-07-17 12:09:27 -0700113 src/logging_android.cc \
Ian Rogersb033c752011-07-20 12:22:35 -0700114 src/runtime_android.cc \
115 src/thread_arm.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -0700116
Brian Carlstrom934486c2011-07-12 23:42:50 -0700117LIBART_HOST_SRC_FILES := \
118 $(LIBART_COMMON_SRC_FILES) \
Elliott Hughesffe67362011-07-17 12:09:27 -0700119 src/logging_linux.cc \
Ian Rogersb033c752011-07-20 12:22:35 -0700120 src/runtime_linux.cc \
121 src/thread_x86.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -0700122
Brian Carlstromcdc8de42011-07-19 14:23:17 -0700123LIBARTTEST_COMMON_SRC_FILES := \
124 src/base64.cc
125
Brian Carlstrom934486c2011-07-12 23:42:50 -0700126TEST_COMMON_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700127 src/class_linker_test.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -0700128 src/dex_cache_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -0700129 src/dex_file_test.cc \
130 src/dex_instruction_visitor_test.cc \
jeffhaoba5ebb92011-08-25 17:24:37 -0700131 src/dex_verifier_test.cc \
Shih-wei Liao2fb97532011-08-11 16:17:23 -0700132 src/exception_test.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700133 src/file_test.cc \
Brian Carlstrom1f870082011-08-23 16:02:11 -0700134 src/heap_test.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -0700135 src/image_test.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -0700136 src/indirect_reference_table_test.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -0700137 src/intern_table_test.cc \
Ian Rogerscd2764f2011-09-02 15:38:24 -0700138 src/jni_internal_test.cc \
139 src/jni_compiler_test.cc \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700140 src/managed_register_arm_test.cc \
141 src/managed_register_x86_test.cc \
Carl Shapiro894d0fa2011-06-30 14:48:49 -0700142 src/object_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700143 src/reference_table_test.cc \
Carl Shapirofc322c72011-07-27 00:20:01 -0700144 src/runtime_test.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700145 src/space_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700146 src/utils_test.cc \
buzbeec143c552011-08-20 17:38:58 -0700147 src/zip_archive_test.cc \
148 src/compiler_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -0700149
Brian Carlstrom934486c2011-07-12 23:42:50 -0700150TEST_TARGET_SRC_FILES := \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700151 $(TEST_COMMON_SRC_FILES)
Carl Shapiro008e4122011-06-23 17:27:46 -0700152
Brian Carlstrom934486c2011-07-12 23:42:50 -0700153TEST_HOST_SRC_FILES := \
154 $(TEST_COMMON_SRC_FILES) \
Ian Rogers2c8f6532011-09-02 17:16:34 -0700155 src/assembler_x86_test.cc
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700156
157# subdirectories of test/
158TEST_DEX_DIRECTORIES := \
159 AllFields \
160 CreateMethodDescriptor \
161 Fibonacci \
Brian Carlstrom69b15fb2011-09-03 12:25:21 -0700162 HelloWorld \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700163 IntMath \
164 Interfaces \
165 Main \
166 MyClass \
167 MyClassNatives \
168 Nested \
169 ProtoCompare \
170 ProtoCompare2 \
171 StaticLeafMethods \
172 Statics \
Elliott Hughes0f4c41d2011-09-04 14:58:03 -0700173 SystemMethods \
buzbee109bd6a2011-09-06 13:58:41 -0700174 Invoke \
Brian Carlstrom9f30b382011-08-28 22:41:38 -0700175 XandY
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700176
177ART_BUILD_TARGET := false
178ART_BUILD_HOST := false
179ifeq ($(ART_BUILD_TARGET_NDEBUG),true)
180 ART_BUILD_TARGET := true
181endif
182ifeq ($(ART_BUILD_TARGET_DEBUG),true)
183 ART_BUILD_TARGET := true
184endif
185ifeq ($(ART_BUILD_HOST_NDEBUG),true)
186 ART_BUILD_HOST := true
187endif
188ifeq ($(ART_BUILD_HOST_DEBUG),true)
189 ART_BUILD_HOST := true
190endif