blob: fd0acf254605a3872b0725779514404921f7491e [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
Brian Carlstromb0460ea2011-07-29 10:08:05 -070019ART_C_INCLUDES := external/gtest/include external/zlib
20
Brian Carlstromcdc8de42011-07-19 14:23:17 -070021ART_CFLAGS := \
Carl Shapiro1fb86202011-06-27 17:43:13 -070022 -O0 \
23 -ggdb3 \
24 -Wall \
25 -Werror \
26 -Wextra \
27 -Wno-unused-parameter \
Carl Shapiro1fb86202011-06-27 17:43:13 -070028 -Wstrict-aliasing=2 \
29 -fno-align-jumps \
30 -fstrict-aliasing
31
Brian Carlstrom934486c2011-07-12 23:42:50 -070032AEXEC_SRC_FILES := \
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070033 src/main.cc
34
Brian Carlstrom934486c2011-07-12 23:42:50 -070035LIBART_COMMON_SRC_FILES := \
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070036 src/assembler.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070037 src/calling_convention.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070038 src/class_linker.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -070039 src/dex_cache.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070040 src/dex_file.cc \
Carl Shapiro12eb78e2011-06-24 14:51:06 -070041 src/dex_instruction.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070042 src/dex_verifier.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -070043 src/file.cc \
44 src/file_linux.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070045 src/heap.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -070046 src/image_writer.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -070047 src/indirect_reference_table.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -070048 src/intern_table.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070049 src/jni_compiler.cc \
Ian Rogersdf20fe02011-07-20 20:34:16 -070050 src/jni_internal.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070051 src/mark_stack.cc \
52 src/mark_sweep.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070053 src/memory_region.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070054 src/mspace.c \
Carl Shapiro3ee755d2011-06-28 12:11:04 -070055 src/object.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070056 src/object_bitmap.cc \
57 src/offsets.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -070058 src/os_linux.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -070059 src/reference_table.cc \
Carl Shapirod4e48fd2011-06-30 18:53:29 -070060 src/runtime.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070061 src/space.cc \
Carl Shapirob5573532011-07-12 18:22:59 -070062 src/stringpiece.cc \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070063 src/stringprintf.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -070064 src/thread.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -070065 src/utils.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -070066 src/zip_archive.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070067
Brian Carlstrom934486c2011-07-12 23:42:50 -070068LIBART_TARGET_SRC_FILES := \
69 $(LIBART_COMMON_SRC_FILES) \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070070 src/assembler_arm.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070071 src/calling_convention_arm.cc \
Carl Shapiro9b9ba282011-08-14 15:30:39 -070072 src/jni_internal_arm.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -070073 src/logging_android.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070074 src/managed_register_arm.cc \
75 src/runtime_android.cc \
76 src/thread_arm.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070077
Brian Carlstrom934486c2011-07-12 23:42:50 -070078LIBART_HOST_SRC_FILES := \
79 $(LIBART_COMMON_SRC_FILES) \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070080 src/assembler_x86.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070081 src/calling_convention_x86.cc \
Carl Shapiro9b9ba282011-08-14 15:30:39 -070082 src/jni_internal_x86.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -070083 src/logging_linux.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070084 src/managed_register_x86.cc \
85 src/runtime_linux.cc \
86 src/thread_x86.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070087
Brian Carlstromcdc8de42011-07-19 14:23:17 -070088LIBARTTEST_COMMON_SRC_FILES := \
89 src/base64.cc
90
Brian Carlstrom934486c2011-07-12 23:42:50 -070091TEST_COMMON_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070092 src/class_linker_test.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -070093 src/dex_cache_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070094 src/dex_file_test.cc \
95 src/dex_instruction_visitor_test.cc \
Shih-wei Liao2fb97532011-08-11 16:17:23 -070096 src/exception_test.cc \
Brian Carlstromdb4d5402011-08-09 12:18:28 -070097 src/file_test.cc \
98 src/image_test.cc \
Elliott Hughes6c1a3942011-08-17 15:00:06 -070099 src/indirect_reference_table_test.cc \
Brian Carlstrom7e93b502011-08-04 14:16:22 -0700100 src/intern_table_test.cc \
Carl Shapiro9b9ba282011-08-14 15:30:39 -0700101 src/jni_internal_test.cc.arm \
Carl Shapiroe2d373e2011-07-25 15:20:06 -0700102 src/jni_compiler_test.cc.arm \
Carl Shapiro894d0fa2011-06-30 14:48:49 -0700103 src/object_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700104 src/reference_table_test.cc \
Carl Shapirofc322c72011-07-27 00:20:01 -0700105 src/runtime_test.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700106 src/space_test.cc \
Elliott Hughes11e45072011-08-16 17:40:46 -0700107 src/utils_test.cc \
Brian Carlstromb0460ea2011-07-29 10:08:05 -0700108 src/zip_archive_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -0700109
Brian Carlstrom934486c2011-07-12 23:42:50 -0700110TEST_TARGET_SRC_FILES := \
Ian Rogersb033c752011-07-20 12:22:35 -0700111 $(TEST_COMMON_SRC_FILES) \
112 src/managed_register_arm_test.cc
Carl Shapiro008e4122011-06-23 17:27:46 -0700113
Brian Carlstrom934486c2011-07-12 23:42:50 -0700114TEST_HOST_SRC_FILES := \
115 $(TEST_COMMON_SRC_FILES) \
Ian Rogersb033c752011-07-20 12:22:35 -0700116 src/assembler_x86_test.cc \
117 src/managed_register_x86_test.cc