blob: f92bc093b716356372d80751b0b6cf4a2e3406aa [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 Carlstromcdc8de42011-07-19 14:23:17 -070019ART_CFLAGS := \
Carl Shapiro1fb86202011-06-27 17:43:13 -070020 -O0 \
21 -ggdb3 \
22 -Wall \
23 -Werror \
24 -Wextra \
25 -Wno-unused-parameter \
Carl Shapiro1fb86202011-06-27 17:43:13 -070026 -Wstrict-aliasing=2 \
27 -fno-align-jumps \
28 -fstrict-aliasing
29
Brian Carlstrom934486c2011-07-12 23:42:50 -070030AEXEC_SRC_FILES := \
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070031 src/main.cc
32
Brian Carlstrom934486c2011-07-12 23:42:50 -070033LIBART_COMMON_SRC_FILES := \
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070034 src/assembler.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070035 src/calling_convention.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070036 src/class_linker.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -070037 src/dex_cache.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070038 src/dex_file.cc \
Carl Shapiro12eb78e2011-06-24 14:51:06 -070039 src/dex_instruction.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070040 src/dex_verifier.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070041 src/heap.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070042 src/jni_compiler.cc \
Ian Rogersdf20fe02011-07-20 20:34:16 -070043 src/jni_internal.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070044 src/mark_stack.cc \
45 src/mark_sweep.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070046 src/memory_region.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070047 src/mspace.c \
Carl Shapiro3ee755d2011-06-28 12:11:04 -070048 src/object.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070049 src/object_bitmap.cc \
50 src/offsets.cc \
Carl Shapirod4e48fd2011-06-30 18:53:29 -070051 src/runtime.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070052 src/space.cc \
Carl Shapirob5573532011-07-12 18:22:59 -070053 src/stringpiece.cc \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070054 src/stringprintf.cc \
Carl Shapirob5573532011-07-12 18:22:59 -070055 src/thread.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070056
Brian Carlstrom934486c2011-07-12 23:42:50 -070057LIBART_TARGET_SRC_FILES := \
58 $(LIBART_COMMON_SRC_FILES) \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070059 src/assembler_arm.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070060 src/calling_convention_arm.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -070061 src/logging_android.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070062 src/managed_register_arm.cc \
63 src/runtime_android.cc \
64 src/thread_arm.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070065
Brian Carlstrom934486c2011-07-12 23:42:50 -070066LIBART_HOST_SRC_FILES := \
67 $(LIBART_COMMON_SRC_FILES) \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070068 src/assembler_x86.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070069 src/calling_convention_x86.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -070070 src/logging_linux.cc \
Ian Rogersb033c752011-07-20 12:22:35 -070071 src/managed_register_x86.cc \
72 src/runtime_linux.cc \
73 src/thread_x86.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070074
Brian Carlstromcdc8de42011-07-19 14:23:17 -070075LIBARTTEST_COMMON_SRC_FILES := \
76 src/base64.cc
77
Brian Carlstrom934486c2011-07-12 23:42:50 -070078TEST_COMMON_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070079 src/class_linker_test.cc \
Brian Carlstrom7e49dca2011-07-22 18:07:34 -070080 src/dex_cache_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070081 src/dex_file_test.cc \
82 src/dex_instruction_visitor_test.cc \
Carl Shapiroe2d373e2011-07-25 15:20:06 -070083 src/jni_compiler_test.cc.arm \
Carl Shapiro894d0fa2011-06-30 14:48:49 -070084 src/object_test.cc \
Carl Shapirofc322c72011-07-27 00:20:01 -070085 src/runtime_test.cc \
Carl Shapiro69759ea2011-07-21 18:13:35 -070086 src/space_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070087
Brian Carlstrom934486c2011-07-12 23:42:50 -070088TEST_TARGET_SRC_FILES := \
Ian Rogersb033c752011-07-20 12:22:35 -070089 $(TEST_COMMON_SRC_FILES) \
90 src/managed_register_arm_test.cc
Carl Shapiro008e4122011-06-23 17:27:46 -070091
Brian Carlstrom934486c2011-07-12 23:42:50 -070092TEST_HOST_SRC_FILES := \
93 $(TEST_COMMON_SRC_FILES) \
Ian Rogersb033c752011-07-20 12:22:35 -070094 src/assembler_x86_test.cc \
95 src/managed_register_x86_test.cc